|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DataRow
This interface defines methods for all entries of ExampleTable implementations. It provides a set and get method for the data. Subclasses may use a double array, a sparse representation, a file or a database.
| Method Summary | |
|---|---|
void |
ensureNumberOfColumns(int numberOfColumns)
Ensures that neither get(i) nor put(i,v)
throw a runtime exception for all 0 <= i="i" <="numberOfColumns</i">.=> |
double |
get(Attribute attribute)
Returns the value stored at the given Attribute's index. |
void |
set(Attribute attribute,
double value)
Sets the value of the Attribute to value. |
void |
trim()
Trims the number of columns to the actually needed number. |
| Method Detail |
|---|
double get(Attribute attribute)
Attribute's index.
void set(Attribute attribute,
double value)
Attribute to value.
void ensureNumberOfColumns(int numberOfColumns)
get(i) nor put(i,v)
throw a runtime exception for all 0 <= i="i" <="numberOfColumns</i">.
void trim()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||