Package hec.rss.model
Class HindcastData
java.lang.Object
hec.rss.model.HindcastData
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable,Cloneable
Data structure for hindcast data in elements
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the HindcastData objectHindcastData(String key, int vid, int type) -
Method Summary
Modifier and TypeMethodDescriptionclone()getFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.Returns the name of the location for the hindcast dataintgetType()doublegetValue()intSets the name of the parameter for the hindcast databooleanreturns true if the object key and variable ids of the given HindcastData match this HindcastDatabooleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetObjectKey(String key) Sets the name of the location for the hindcast datavoidsetType(int type) voidsetValue(double value) voidvoidsetVariableId(int vid)
-
Field Details
-
TIME_SERIES_TYPE
-
CONSTANT_TYPE
-
COMPUTED_TYPE
-
GUIDE_CURVE_TYPE
-
LOOKBACK_ELEV_TYPE
-
LOOKBACK_RELEASE_CONST_TYPE
-
LOOKBACK_RELEASE_TS_TYPE
-
LOOKBACK_RELEASE_GC_TYPE
-
TIME_SERIES_TYPE_ID
public static final int TIME_SERIES_TYPE_ID- See Also:
-
CONSTANT_TYPE_ID
public static final int CONSTANT_TYPE_ID- See Also:
-
COMPUTED_TYPE_ID
public static final int COMPUTED_TYPE_ID- See Also:
-
GUIDE_CURVE_ID
public static final int GUIDE_CURVE_ID- See Also:
-
LOOKBACK_ELEV_ID
public static final int LOOKBACK_ELEV_ID- See Also:
-
LOOKBACK_RELEASE_CONST_ID
public static final int LOOKBACK_RELEASE_CONST_ID- See Also:
-
LOOKBACK_RELEASE_TS_ID
public static final int LOOKBACK_RELEASE_TS_ID- See Also:
-
LOOKBACK_RELEASE_GC_ID
public static final int LOOKBACK_RELEASE_GC_ID- See Also:
-
-
Constructor Details
-
HindcastData
public HindcastData()Constructor for the HindcastData object -
HindcastData
-
-
Method Details
-
clone
-
matchesKey
returns true if the object key and variable ids of the given HindcastData match this HindcastData -
setObjectKey
Sets the name of the location for the hindcast data -
getObjectKey
Returns the name of the location for the hindcast data -
getVariableId
public int getVariableId()Sets the name of the parameter for the hindcast data -
setVariableId
public void setVariableId(int vid) -
setType
public void setType(int type) -
getType
public int getType() -
getTypeName
-
setValue
-
setValue
public void setValue(double value) -
getValue
public double getValue() -
getValueString
-
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
-