Package hec.model
Class SeasonalValue
java.lang.Object
hec.model.SeasonalValue
- All Implemented Interfaces:
AsciiSerializable
,FieldAccessor
,Serializable
Contains a set of date-values pairs representing seasonal variation of
a value. Methods include string I/O and interpolation functions.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a date-value pair using a String to represent the datevoid
Clear all datagetFieldObject
(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.double
interpolateStepValue
(RunTime runtime) Interpolate for hec.model.RunTimedouble
Interpolate for RunTimeStepdouble
interpolateValue
(RunTime runtime) Interpolate for hec.model.RunTimedouble
Interpolate for RunTimeStepint
parseString
(String param) boolean
setFieldObject
(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.int
size()
toString()
-
Constructor Details
-
SeasonalValue
public SeasonalValue()
-
-
Method Details
-
clearData
public void clearData()Clear all data -
addValue
Add a date-value pair using a String to represent the date -
interpolateValue
Interpolate for RunTimeStep- Parameters:
rts
-- Returns:
-
interpolateValue
Interpolate for hec.model.RunTime- Parameters:
runtime
-- Returns:
-
interpolateStepValue
Interpolate for RunTimeStep- Parameters:
rts
-- Returns:
-
interpolateStepValue
Interpolate for hec.model.RunTime- Parameters:
runtime
-- Returns:
-
toString
-
parseString
-
size
public int size() -
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
- 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
- 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
-