Package hec.rss.model
Class DownstreamOpRuleBackRoute
java.lang.Object
hec.rss.model.DownstreamOpRuleBackRoute
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancomputeBackroute(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.booleancomputeSysBackroute(RunTimeStep rts, double[] dnstrmTS, Object[] routedPrevRel, Object[] upstrmTS, int minoffset, 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.
-
Constructor Details
-
DownstreamOpRuleBackRoute
public DownstreamOpRuleBackRoute()
-
-
Method Details
-
computeSysBackroute
public boolean computeSysBackroute(RunTimeStep rts, double[] dnstrmTS, Object[] routedPrevRel, Object[] upstrmTS, int minoffset, 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. The upstream and downstream flow arrays are provided. The upstream array is changed through this method (the upstream flow is the output from this method). Both arrays are the length of the routing window. The downstream array is offset in time from the upstream array by minoffset steps.- Parameters:
rts- the current RunTimeStep for the release decisiondnstrmTS- 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) rulestep- the time step at which the downstream flow is expected to match the required flow ???- Returns:
- true if successful
-
computeBackroute
public 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. The upstream and downstream flow arrays are provided. The upstream array is changed through this method (the upstream flow is the output from this method). Both arrays are the length of the routing window. The downstream array is offset in time from the upstream array by minoffset steps.- Parameters:
rts- the current RunTimeStep for the release decisiondnstrmTS- 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 coefficientsstep- the time step at which the downstream flow is expected to match the required flow ???- Returns:
- true if successful
-