Package hec.rss.model

Class TandemOp

java.lang.Object
hec.rss.model.TandemOp
All Implemented Interfaces:
RssReturnStatusConstants

public class TandemOp extends Object implements RssReturnStatusConstants
Transient manager for tandem system operation
  • Constructor Details

    • TandemOp

      public TandemOp(RssSystem sys)
      Constructor that requires an RssSystem
      Parameters:
      sys -
  • Method Details

    • evaluateLimits

      public void evaluateLimits(RunTimeStep rts, int iteration)
      evaluate rule limits for given time step
      Parameters:
      rts -
    • initForecast

      public void initForecast(IterationBlock iterblk)
      find the reservoirs in the active iteration block note that reservoirs are added to this list in upstream to downstream order by their order in the IterationBlock
    • getMaxRouteSteps

      public int getMaxRouteSteps()
    • initForecastStep

      public void initForecastStep(RunTimeStep rts)
      reset data for new forecast time step
      Parameters:
      rts -
    • addActiveRule

      public void addActiveRule(TandemOpRule rule)
      Adds a tandem rule to the active set for the current decision step
      Parameters:
      rule -
    • getTandemSystem

      public hec.rss.model.TandemOp.TandemSystem getTandemSystem(ReservoirElement resUp, ReservoirElement resDn)
      Get an previously created TandemSystem that contains one or both of the given reservoirs. If either of the given reservoirs connect two existing TandemSystems, the existing TandemSystems are combined
      Parameters:
      resUp - upstream reservoir of a tandem pair
      resDn - downstream reservoir of a tandem pair
      Returns:
      previously created TandemSystem that contains one or both of the reservoirs, or null
    • getTandemSystem

      public hec.rss.model.TandemOp.TandemSystem getTandemSystem(TandemOpRule rule)
    • evaluateTandemOpStep

      public int evaluateTandemOpStep(RunTimeStep rts, int iteration)
    • getBalanceReleaseVol

      public double getBalanceReleaseVol(TandemOpRule rule, RunTimeStep rts)
    • hasReservoirs

      public boolean hasReservoirs()
      Returns: