cz.cuni.jagrlib.iface
Interface SLEDataStore

All Superinterfaces:
Property, SLEData
All Known Implementing Classes:
SimpleSLEDataStore

public interface SLEDataStore
extends SLEData

Data object holding system of linear equations (SLE) data - writtable variant. Both input (matrix of coefficients and right-hand-side vector) and output (solution vector) data are stored here. For actual data storage (full or sparse SLE matrix).

Since:
0.26

Field Summary
 
Fields inherited from interface cz.cuni.jagrlib.iface.SLEData
NULL
 
Fields inherited from interface cz.cuni.jagrlib.iface.Property
LOGGING, STATISTICS, TEXT_DESCRIPTION
 
Method Summary
 void init(int rows, int columns)
          Initializes the SLE.
 void setCoeff(int row, int col, double value)
          Sets a single matrix coefficient.
 void setColumn(int col, double[] values)
          Sets the whole matrix column.
 void setReflectance(double[] reflectance)
          Sets the whole reflectance vector.
 void setReflectance(int i, double value)
          Sets a single reflectance (radiosity: element albedo).
 void setRight(double[] values)
          Sets the whole right-side vector.
 void setRight(int row, double value)
          Sets a single element of the right-side vector.
 void setRow(int row, double[] values)
          Sets the whole matrix row.
 void setWeight(double[] values)
          Sets the whole weight vector.
 void setWeight(int i, double value)
          Sets a single element weight (radiosity: element area).
 
Methods inherited from interface cz.cuni.jagrlib.iface.SLEData
actualComponent, getCoeff, getColumn, getColumns, getMatrix, getReflectance, getReflectance, getRight, getRight, getRow, getRows, getSolution, getSolution, getWeight, getWeight, nextCoeffInColumnChanged, nextCoeffInRowChanged, nextRightChanged, resetChanges, setComponent, setSolution, setSolution
 
Methods inherited from interface cz.cuni.jagrlib.iface.Property
commit, get, set
 

Method Detail

init

void init(int rows,
          int columns)
Initializes the SLE. All values will be set to 0.0.


setCoeff

void setCoeff(int row,
              int col,
              double value)
Sets a single matrix coefficient. Preferred metod in sparse-matrix implementations..


setRow

void setRow(int row,
            double[] values)
Sets the whole matrix row.


setColumn

void setColumn(int col,
               double[] values)
Sets the whole matrix column.


setRight

void setRight(int row,
              double value)
Sets a single element of the right-side vector.


setRight

void setRight(double[] values)
Sets the whole right-side vector.


setWeight

void setWeight(int i,
               double value)
Sets a single element weight (radiosity: element area).


setWeight

void setWeight(double[] values)
Sets the whole weight vector.


setReflectance

void setReflectance(int i,
                    double value)
Sets a single reflectance (radiosity: element albedo).


setReflectance

void setReflectance(double[] reflectance)
Sets the whole reflectance vector.