Package hec.lang
Class DoubleArray2dContainer
java.lang.Object
hec.lang.Array2dContainer
hec.lang.DoubleArray2dContainer
- All Implemented Interfaces:
FieldAccessor,Serializable
- See Also:
-
Field Summary
FieldsFields inherited from class hec.lang.Array2dContainer
cols, rows -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleangetCoordinate(int rowIndex, double[] rowArray) doublegetCoordinate(int rowIndex, int colIndex) getFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.Methods inherited from class hec.lang.Array2dContainer
copyInto, getColumnCount, getRowCount
-
Field Details
-
table
protected double[][] table
-
-
Constructor Details
-
DoubleArray2dContainer
public DoubleArray2dContainer(int cols, int rows)
-
-
Method Details
-
copyInto
-
getCoordinate
public boolean getCoordinate(int rowIndex, double[] rowArray) -
getCoordinate
public double getCoordinate(int rowIndex, int colIndex) -
getFieldObject
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- Overrides:
getFieldObjectin classArray2dContainer- Parameters:
fld- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessorThis allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObjectin interfaceFieldAccessor- Overrides:
setFieldObjectin classArray2dContainer- Parameters:
fld- The java field object representing the member field to be setfobj- The data to set in that field- Returns:
- returns true if successful
-