Package hec.rss.model

Class MinMax

All Implemented Interfaces:
AsciiSerializable, FieldAccessor, TSLocation, RssModelVariableConstants, RssReturnStatusConstants, RssTSLocation, Serializable, Cloneable, Comparable, Observer, rma.lang.Modifiable

public class MinMax extends Rule
See Also:
  • Constructor Details

  • Method Details

    • getMinValues

      public String getMinValues()
    • getMaxValues

      public String getMaxValues()
    • getValue

      public double getValue(AdjustableParameter adjparam, RunTimeStep runtime, double val)
      Description copied from class: Rule
      This method should be overriden
      Specified by:
      getValue in class Rule
    • writeData

      public boolean writeData(BufferedWriter out)
      Overrides:
      writeData in class Rule
    • readData

      public boolean readData(BufferedReader input)
      Overrides:
      readData in class Rule
    • setMinValues

      public void setMinValues(String minValues)
    • setMaxValues

      public void setMaxValues(String maxValues)
    • removeAllMinValues

      public void removeAllMinValues()
    • removeAllMaxValues

      public void removeAllMaxValues()
    • 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
      Overrides:
      getFieldObject in class Rule
      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
      Overrides:
      setFieldObject in class Rule
      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