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
tableFields inherited from class hec.lang.Array2dContainer
cols, rowsFields 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 TypeMethodDescriptionvoidgetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.intgetType()Returns the error type.booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.booleansetType(int type) Validates and sets the error type.Methods inherited from class hec.lang.FloatArray2dContainer
copyInto, getCoordinate, getCoordinate, setCoordinateMethods 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:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- Overrides:
getFieldObjectin classFloatArray2dContainer- 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 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
-