public class DownstreamOpRuleBackRoute
extends java.lang.Object
| Constructor and Description |
|---|
DownstreamOpRuleBackRoute() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
computeBackroute(RunTimeStep rts,
double[] dnstrmTS,
double[] routedPrevRel,
double[] upstrmTS,
int lag,
int offset,
double[] routeCoef,
int ruleType)
Object of the method is to determine flow required at upstream end of reach to match the requested downstream flow after linear routing.
|
boolean |
computeSysBackroute(RunTimeStep rts,
double[] dnstrmTS,
java.lang.Object[] routedPrevRel,
java.lang.Object[] upstrmTS,
int minoffset,
java.lang.Object[] resPulseRespArray,
int ruleType,
boolean[] resActive)
Object of the method is to determine flow required releases from all upstream reservoirs to match the requested downstream flow after linear routing.
|
public boolean computeSysBackroute(RunTimeStep rts, double[] dnstrmTS, java.lang.Object[] routedPrevRel, java.lang.Object[] upstrmTS, int minoffset, java.lang.Object[] resPulseRespArray, int ruleType, boolean[] resActive)
rts - the current RunTimeStep for the release decisionstep - the time step at which the downstream flow is expected to match the required flow ???dnstrmTS - array containing the target for the total routed releaseroutedPrevRel - contribution to downstream flow from all previous upstream releasesupstrmTS - array containing the all reservoir releasesminoffset - minimum offset integer shift between upstream and downstream routing for any of the releasesresPulseRespArray - pulse response for all releasesruleType - flag indicating max (1), spec (0), or min (-1) rulepublic boolean computeBackroute(RunTimeStep rts, double[] dnstrmTS, double[] routedPrevRel, double[] upstrmTS, int lag, int offset, double[] routeCoef, int ruleType)
rts - the current RunTimeStep for the release decisionstep - the time step at which the downstream flow is expected to match the required flow ???dnstrmTS - array containing the routed releaseroutedPrevRel - contribution to downstream flow from previous upstream releasesupstrmTS - array containing the reservoir releaselag - approximate integer lag of routingoffset - integer shift between upstream and downstream routingrouteCoef - array of linear routing coefficients