Package hec.rss.model
Class TandemOp
java.lang.Object
hec.rss.model.TandemOp
- All Implemented Interfaces:
RssReturnStatusConstants
Transient manager for tandem system operation
-
Field Summary
Fields inherited from interface hec.rss.model.RssReturnStatusConstants
RTN_CANCELED, RTN_NOPROBLEM, RTN_OPCHANGE, RTN_PROBLEM -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddActiveRule(TandemOpRule rule) Adds a tandem rule to the active set for the current decision stepvoidevaluateLimits(RunTimeStep rts, int iteration) evaluate rule limits for given time stepintevaluateTandemOpStep(RunTimeStep rts, int iteration) doublegetBalanceReleaseVol(TandemOpRule rule, RunTimeStep rts) inthec.rss.model.TandemOp.TandemSystemgetTandemSystem(ReservoirElement resUp, ReservoirElement resDn) Get an previously created TandemSystem that contains one or both of the given reservoirs.hec.rss.model.TandemOp.TandemSystemgetTandemSystem(TandemOpRule rule) booleanvoidinitForecast(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 IterationBlockvoidreset data for new forecast time step
-
Constructor Details
-
TandemOp
Constructor that requires an RssSystem- Parameters:
sys-
-
-
Method Details
-
evaluateLimits
evaluate rule limits for given time step- Parameters:
rts-
-
initForecast
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
reset data for new forecast time step- Parameters:
rts-
-
addActiveRule
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 pairresDn- downstream reservoir of a tandem pair- Returns:
- previously created TandemSystem that contains one or both of the reservoirs, or null
-
getTandemSystem
-
evaluateTandemOpStep
-
getBalanceReleaseVol
-
hasReservoirs
public boolean hasReservoirs()- Returns:
-