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 TypeMethodDescriptionvoidAdd a date-value pair using a String to represent the datevoidClear all datagetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.doubleinterpolateStepValue(RunTime runtime) Interpolate for hec.model.RunTimedoubleInterpolate for RunTimeStepdoubleinterpolateValue(RunTime runtime) Interpolate for hec.model.RunTimedoubleInterpolate for RunTimeStepintparseString(String param) booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.intsize()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:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- 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- 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
-