Package hec.lang
Class FloatArray2dContainer
java.lang.Object
hec.lang.Array2dContainer
hec.lang.FloatArray2dContainer
- All Implemented Interfaces:
FieldAccessor,Serializable
- Direct Known Subclasses:
ProbabilityDistributionFunction
- See Also:
-
Field Summary
FieldsFields inherited from class hec.lang.Array2dContainer
cols, rows -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleangetCoordinate(int rowIndex, float[] rowArray) floatgetCoordinate(int rowIndex, int colIndex) getFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.booleansetCoordinate(int rowIndex, int colIndex, float value) 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 float[][] table
-
-
Constructor Details
-
FloatArray2dContainer
public FloatArray2dContainer(int cols, int rows)
-
-
Method Details
-
copyInto
-
getCoordinate
public boolean getCoordinate(int rowIndex, float[] rowArray) -
getCoordinate
public float getCoordinate(int rowIndex, int colIndex) -
setCoordinate
public boolean setCoordinate(int rowIndex, int colIndex, float value) -
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
-