Package hec.rss.model

Class HindcastData

java.lang.Object
hec.rss.model.HindcastData
All Implemented Interfaces:
AsciiSerializable, FieldAccessor, Serializable, Cloneable

public class HindcastData extends Object implements Cloneable, Serializable, AsciiSerializable
Data structure for hindcast data in elements
See Also:
  • Field Details

    • TIME_SERIES_TYPE

      public static String TIME_SERIES_TYPE
    • CONSTANT_TYPE

      public static String CONSTANT_TYPE
    • COMPUTED_TYPE

      public static String COMPUTED_TYPE
    • GUIDE_CURVE_TYPE

      public static String GUIDE_CURVE_TYPE
    • LOOKBACK_ELEV_TYPE

      public static String LOOKBACK_ELEV_TYPE
    • LOOKBACK_RELEASE_CONST_TYPE

      public static String LOOKBACK_RELEASE_CONST_TYPE
    • LOOKBACK_RELEASE_TS_TYPE

      public static String LOOKBACK_RELEASE_TS_TYPE
    • LOOKBACK_RELEASE_GC_TYPE

      public static String 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

      public HindcastData(String key, int vid, int type)
  • Method Details

    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • matchesKey

      public boolean matchesKey(HindcastData hd)
      returns true if the object key and variable ids of the given HindcastData match this HindcastData
    • setObjectKey

      public void setObjectKey(String key)
      Sets the name of the location for the hindcast data
    • getObjectKey

      public String 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

      public String getTypeName()
    • setValue

      public void setValue(String str)
    • setValue

      public void setValue(double value)
    • getValue

      public double getValue()
    • getValueString

      public String getValueString()
    • getFieldObject

      public Object getFieldObject(Field fld)
      Description copied from interface: FieldAccessor
      This method allows access to java.lang.reflect.Field objects within the implementing class.
      Specified by:
      getFieldObject in interface FieldAccessor
      Parameters:
      fld - The field to get.
      Returns:
      The data object that is stored in the given field
    • setFieldObject

      public boolean setFieldObject(Field fld, Object fobj)
      Description copied from interface: FieldAccessor
      This allows access to fields withing the implementing object to set there data.
      Specified by:
      setFieldObject in interface FieldAccessor
      Parameters:
      fld - The java field object representing the member field to be set
      fobj - The data to set in that field
      Returns:
      returns true if successful