Package hec.model
Class ProbabilityDistributionFunction
java.lang.Object
hec.lang.Array2dContainer
hec.lang.FloatArray2dContainer
hec.model.ProbabilityDistributionFunction
- All Implemented Interfaces:
FieldAccessor
,DistributionErrorTypes
,Serializable
public class ProbabilityDistributionFunction
extends FloatArray2dContainer
implements Serializable, FieldAccessor, DistributionErrorTypes
- See Also:
-
Field Summary
Fields inherited from class hec.lang.FloatArray2dContainer
table
Fields inherited from class hec.lang.Array2dContainer
cols, rows
Fields inherited from interface hec.model.DistributionErrorTypes
COLUMN_COUNTS, LOG_NORMAL, LOG_NORMAL_COLUMNS, LOG_NORMAL_STRING, NONE, NONE_COLUMNS, NONE_STRING, NORMAL, NORMAL_COLUMNS, NORMAL_STRING, TRIANGULAR, TRIANGULAR_COLUMNS, TRIANGULAR_STRING, TYPES, TYPES_STRING, UNIFORM, UNIFORM_COLUMNS, UNIFORM_STRING
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
getFieldObject
(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.int
getType()
Returns the error type.boolean
setFieldObject
(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.boolean
setType
(int type) Validates and sets the error type.Methods inherited from class hec.lang.FloatArray2dContainer
copyInto, getCoordinate, getCoordinate, setCoordinate
Methods inherited from class hec.lang.Array2dContainer
copyInto, getColumnCount, getRowCount
-
Constructor Details
-
ProbabilityDistributionFunction
public ProbabilityDistributionFunction(int type, int cols, int rows)
-
-
Method Details
-
copyInto
-
getType
public int getType()Returns the error type.- Returns:
- The error type constant.
- See Also:
-
setType
public boolean setType(int type) Validates and sets the error type.- Parameters:
type
- : The error type.- Returns:
- Returns a boolean indicating success.
- See Also:
-
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 classFloatArray2dContainer
- 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 classFloatArray2dContainer
- 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
-