Package hec.rss.model

Class TandemSysOpRule

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

public class TandemSysOpRule extends OpRule
OpRule that manages as system of tandem reservoirs. Works in concert with a TandemOpParent
See Also:
  • Constructor Details

    • TandemSysOpRule

      public TandemSysOpRule()
      default constructor
    • TandemSysOpRule

      public TandemSysOpRule(String name)
      constructor that accepts a rule name
      Parameters:
      name -
  • Method Details

    • setParentIndex

      public void setParentIndex(int id)
    • getParentIndex

      public int getParentIndex()
    • copyParentInto

      public void copyParentInto(TandemOpParent top)
    • setReservoirIndex

      public void setReservoirIndex(int resIndex)
      accessor method to set the reservoir index
      Parameters:
      resIndex - reservoir index
    • getReservoirIndex

      public int getReservoirIndex()
      accessor method that returns the reservoir index
      Returns:
      reservoir index
    • initializeCompute

      public boolean initializeCompute()
      called at the begining of the computation
      Overrides:
      initializeCompute in class OpRule
      Returns:
      true if successful
    • evaluateRule

      public OpValue evaluateRule(RunTimeStep rts, double initialValue, int iteration)
      compares the intial value to rule constraints and returns the adjusted value
      Overrides:
      evaluateRule in class OpRule