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 TypeMethodDescriptionvoid
boolean
getCoordinate
(int rowIndex, double[] rowArray) double
getCoordinate
(int rowIndex, int colIndex) getFieldObject
(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.boolean
setFieldObject
(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:FieldAccessor
This method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObject
in interfaceFieldAccessor
- Overrides:
getFieldObject
in classArray2dContainer
- Parameters:
fld
- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessor
This allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObject
in interfaceFieldAccessor
- Overrides:
setFieldObject
in 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
-