public class InducedSurchargeOpRule extends OpRule implements AsciiSerializable, java.io.Serializable, java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
static int |
AVG_RELEASE_AND_INFLOW
Description of the Field
|
static int |
PEAK_GATE_OPENING
Description of the Field
|
static int |
PEAK_RELEASE
Description of the Field
|
static int |
RATIO_OF_INFLOW
Description of the Field
|
static int |
UNDEF_OPTION
Description of the Field
|
FALLING, FALLING_OR_CONST, INFLOW, NONE, POOL_ELEVATION, RISING, RISING_OR_CONST, RULETYPE_FREE, RULETYPE_MAX, RULETYPE_MIN, RULETYPE_SPEC_description, _index, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENTRTN_CANCELED, RTN_NOPROBLEM, RTN_OPCHANGE, RTN_PROBLEMCUMLOC_OUTPUT_DATA, GRPID_DIVERSION, GRPID_JUNCTION, GRPID_REACH, GRPID_RESERVOIR, HINDCAST_IDS, HOLDOUT_OUTPUT_DATA, INPUT_DATA, OUTPUT_DATA, PULSE_OUTPUT_DATA, UNREG_OUTPUT_DATA, VID_ADJPARAM_FLOW, VID_CAPACITY_FACTOR, VID_CTRLOUT_HINDFLW, VID_CTRLOUT_RELEASE, VID_DAM_LEAK, VID_DAM_RELEASE, VID_DIV_FLOW, VID_DIV_FLOW_ROUTED, VID_DIV_HINDFLW, VID_DIV_RELEASE, VID_DIVOUT_FLOW, VID_DIVOUT_FLOW_ROUTED, VID_ENERGYREQUIRED_TSINPUT, VID_FIRST, VID_FOREBAY_ELEV, VID_FOREBAY_HEADLOSS, VID_GATE_OPENING, VID_GATE_PERCENTOPEN, VID_JUNC_ELEV, VID_JUNC_FLOW_CUMLOC, VID_JUNC_FLOW_DIV, VID_JUNC_FLOW_HOLD, VID_JUNC_FLOW_IN, VID_JUNC_FLOW_LIMIT, VID_JUNC_FLOW_LOCAL, VID_JUNC_FLOW_PULSE, VID_JUNC_FLOW_REG, VID_JUNC_FLOW_UNREG, VID_JUNC_FLOW_VIOL, VID_JUNC_HINDFLOW, VID_JUNC_INFLOW, VID_JUNC_INFLOW_LOCAL_TOTAL, VID_JUNC_STAGE, VID_JUNC_STAGE_LIMIT, VID_JUNC_STAGE_REG, VID_JUNC_STAGE_UNREG, VID_JUNC_STAGE_VIOL, VID_LAST, VID_NODE_FLOW, VID_NODE_HINDFLW, VID_NODE_HINDSTG, VID_NODE_KNOWNFLOW, VID_NODE_STAGE, VID_OPCTRL_CONSTRAINTID, VID_OPCTRL_DECISION, VID_OPCTRL_MAXLIMIT, VID_OPCTRL_MINLIMIT, VID_OPCTRL_RULEID, VID_OPCTRL_ZONEID, VID_OPRULE_FLOW_SPACE, VID_OPRULE_MAX, VID_OPRULE_MAX_STAGE, VID_OPRULE_MIN, VID_OPRULE_MIN_STAGE, VID_OPRULE_SPEC, VID_OPRULE_STOR_BAL, VID_OPRULE_STOR_BAL_INDEX, VID_OPRULE_VIOL_ELEV, VID_OPRULE_VIOL_FLOW, VID_OPRULE_VIOL_STAGE, VID_OPRULE_VIOL_STOR, VID_OPRULEFL_CUMLOC, VID_OPRULETS_TSINPUT, VID_OPSET_ACTIVEZONE, VID_OPSET_GC_ELEV, VID_OPSET_GC_STOR, VID_OPSET_KNOWNZONEELEV, VID_OPSET_PROJECTEDELEV, VID_OPSET_ZONEELEV, VID_OPSET_ZONESTOR, VID_OUTGRP_RELEASE, VID_POOL_AREA, VID_POOL_ELEV, VID_POOL_ELEVROC, VID_POOL_EVAP, VID_POOL_HINDELEV, VID_POOL_HINDSTOR, VID_POOL_HOLDOUT, VID_POOL_INFLOW, VID_POOL_INPUTEVAP, VID_POOL_NETINFLOW, VID_POOL_OUTFLOW, VID_POOL_SEEP, VID_POOL_STOR, VID_PULSE_BACKQ, VID_PULSE_PULSEQ, VID_PUMP_FLOWAVG, VID_PUMP_VOL, VID_PUMPRULE_FLOWAVG, VID_PUMPRULE_FLOWAVG_CAP, VID_PUMPRULE_FLOWINST, VID_PUMPRULE_FLOWINST_CAP, VID_PUMPRULE_HOURS, VID_PUMPRULE_HOURS_CAP, VID_PUMPRULE_NUMPUMP, VID_PUMPRULE_NUMPUMP_CAP, VID_PUMPRULE_UNITHOURS, VID_PUMPRULE_UNITHOURS_CAP, VID_PUMPRULE_VOL, VID_PUMPRULE_VOL_CAP, VID_PWR_CAPABILITY, VID_PWR_EFF, VID_PWR_ENGYGEN, VID_PWR_ENGYPATTERN, VID_PWR_ENGYPERGEN, VID_PWR_ENGYPERREQD, VID_PWR_ENGYREQD, VID_PWR_ENGYVIOL, VID_PWR_FLWPWR, VID_PWR_HDPWR, VID_PWR_HYDLSS, VID_PWR_MAXCAPACITY, VID_PWR_PER_BALGEN, VID_PWR_PER_GCGEN, VID_PWR_PER_MINPUMPGEN, VID_PWR_PER_MINRELGEN, VID_PWR_PER_POWGEN, VID_PWR_PER_PUMPGEN, VID_PWR_PLNTFAC, VID_PWR_PWRCAP, VID_PWR_REQUIRED, VID_PWR_SPILL, VID_PWR_VIOL, VID_RCH_SEEP, VID_REACH_FLOW_CUMLOC, VID_REACH_FLOW_IN, VID_REACH_FLOW_REG, VID_REACH_FLOW_UNREG, VID_RES_GCRELEASE, VID_RES_HOLDOUT, VID_RES_RELEASE, VID_SPILL_FLOW, VID_SPILL_HINDFLOW, VID_STATE_VAR, VID_STATE_VAR_HIND, VID_TAIL_ELEV, VID_UNCTOUT_FLOW, VID_UNCTOUT_HINDFLW, VID_WA_ACCOUNT_DEMAND, VID_WA_ACCOUNT_INFLOW, VID_WA_CURRENT_MAX_VOLUME, VID_WA_CURRENT_VOLUME, VID_WA_HINDSTOR, VID_WA_RULE_DEMAND| Constructor and Description |
|---|
InducedSurchargeOpRule()
Constructor for the InducedSurchargeOpRule object
|
InducedSurchargeOpRule(java.lang.String name)
Constructor for the InducedSurchargeOpRule object
|
| Modifier and Type | Method and Description |
|---|---|
double |
averageInflow(RunTimeStep rts,
double avgPeriod)
Description of the Method
|
java.lang.Object |
clone()
Description of the Method
|
void |
evaluateLimits(RunTimeStep rts,
int iteration)
calculates the limiting value for this rule for the given time step.
|
OpValue |
evaluateRule(RunTimeStep rts,
double initialValue)
compares the intial value to rule constraints and returns the adjusted
value
|
boolean |
fallingPoolOptionsValid()
Description of the Method
|
double |
fq(double s1,
double qin,
Storage storage,
double q)
error function for solving for discharge flow q = current estimate for
induced surcharge discharge flow qin = reservoir inflow s1 = current
reservoir storage tr = time of recession constant ( seconds )
|
java.util.Vector |
getActiveTSRecordProxies(java.util.Vector vec,
int iotype)
add the time series record proxies associated current compute.
|
double |
getDischargeValue(double qin,
double elev)
Compute induced surcharge discharge qin is inflow to reservoir, elev is
current reservoir elevation
|
double |
getElevationForInflowRelease(double qin,
double release)
Compute elevation value for induced surcharge given reservoir inflow and
release.
|
double |
getElevationForRateOfRise(double rateOfRise,
double release)
Compute elevation value for induced surcharge given reservoir rate of
rise and release.
|
int |
getFallingPoolOption()
Gets the fallingPoolOption attribute of the InducedSurchargeOpRule
object
|
double |
getFallingPoolThresholdTime()
time threshold for determining falling pool
|
java.lang.Object |
getFieldObject(java.lang.reflect.Field fld)
This method allows access to java.lang.reflect.Field objects within the implementing
class.
|
IndependentVariable |
getIndependentVariable()
get IndependentVariable of inflow for
setting time averaging and offset options
|
double |
getInflowAvgPeriod()
release is the previous period release plus inflow averaged over time
|
InflowTimeSeriesOptionModel |
getInflowTimeSeriesOption()
Gets the inflowTimeSeriesOption attribute of the InducedSurchargeOpRule
object
|
double[] |
getInflowValues() |
OpValue |
getOpValue(RunTimeStep rts)
returns the operation value based on the previously computed rule limit.
|
OutletUsageModel |
getOutletUsageModel()
Gets the outletUsageModel attribute of the InducedSurchargeOpRule object
|
double[] |
getPlotInflowValues()
Inflow values for family of curves on induced surcharge reference plot
|
double |
getPlotRateOfRiseLookbackHours()
lookback time for computing rate of rise for surcharge plotting
|
double[] |
getPlotRateOfRiseValues()
Rate of rise values for family of curves on induced surcharge reference
plot
|
double |
getRatio()
release ratio of inflow
|
double |
getRatioPeriod()
Gets the ratioPeriod attribute of the InducedSurchargeOpRule object
|
double |
getRecessionConstant()
Gets the recessionConstant attribute of the InducedSurchargeOpRule
object
|
void |
getReferencedStateVariables(java.util.List svlist)
adds StateVariables refereced by this rule to the given list
|
java.util.Vector |
getRequiredTSRecordProxies(java.util.Vector v)
returns the TSRecordProxies required by independent variable
proxies are only included if they are associated with elements that are
not downstream of this reservoir - if they are downstream, then the dependency
is accomodated by extending the iterationBlock in the ordering logic
|
int |
getRuleLimitType()
get the limit type of this rule
should be implemented by all subclasses of OpRule
|
PairedValues |
getSurchargeCurve()
Gets the surchargeCurve attribute of the InducedSurchargeOpRule object
|
IndependentVariable |
getTableLookupIndependentVariable()
For user defined ESRD curves, get IndependentVariable for table
lookup.
|
double |
getTopOfFloodControlPool()
falling pool elevation below which induced surcharge rule not applied
|
boolean |
getUserCurvesAreRateOfRise() |
PairedValuesExt |
getUserDefinedIsCurves() |
PairedValuesExt |
getUserDefinedIsCurvesForFunctionOfInflow() |
PairedValuesExt |
getUserDefinedIsCurvesForRateOfRise() |
double[] |
getUserDefinedIsInflows() |
double[] |
getUserDefinedIsReservoirInflow() |
double[] |
getUserDefinedRateOfRise() |
boolean |
getUseUserDefinedIsCurves() |
boolean |
initializeCompute()
prep for compute
|
void |
outputReport(hec.rss.model.reports.AlternativeInputReport report,
org.jdom.Element elem)
Alternative Input Report Interface for data.
|
boolean |
reservoirFalling(RunTimeStep rts,
double avgPeriod)
Description of the Method
|
void |
restoreFunctionState(int stateid)
restore the state of the element and its function matching the given
identifier - restores subreach flows
|
void |
saveFunctionState(int stateid)
save the current state of the element and its function with the given
identifier - saves subreach flows
|
void |
saveHotstartState(ElementHotstartState elementHotstartState,
int stateId) |
void |
setFallingPoolOption(int iopt)
Sets the fallingPoolOption attribute of the InducedSurchargeOpRule
object
|
void |
setFallingPoolThresholdTime(double tim)
Sets the fallingPoolThresholdTime attribute of the
InducedSurchargeOpRule object
|
boolean |
setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
Sets the fieldObject attribute of the InducedSurchargeOpRule object
|
void |
setIndependentVariable(IndependentVariable independentVariable)
Set IndependentVariable of inflow for
setting time averaging and offset options
|
void |
setInflowAvgPeriod(double period)
Sets the inflowAvgPeriod attribute of the InducedSurchargeOpRule object
|
void |
setInflowValues(double[] inflowValues) |
void |
setOutletUsageModel(OutletUsageModel model)
Sets the outletUsageModel attribute of the InducedSurchargeOpRule object
|
void |
setPlotInflowValues(double[] inflows)
Sets the plotInflowValues attribute of the InducedSurchargeOpRule object
|
void |
setPlotRateOfRiseLookbackHours(double lookbackHours)
Sets the plotRateOfRiseLookbackHours attribute of the
InducedSurchargeOpRule object
|
void |
setPlotRateOfRiseValues(double[] rateOfRise)
Sets the plotRateOfRiseValues attribute of the InducedSurchargeOpRule
object
|
void |
setRatio(double ratio)
Sets the ratio attribute of the InducedSurchargeOpRule object
|
void |
setRatioPeriod(double period)
Sets the ratioPeriod attribute of the InducedSurchargeOpRule object
|
void |
setRecessionConstant(double d)
Sets the recessionConstant attribute of the InducedSurchargeOpRule
object
|
void |
setSurchargeCurve(PairedValues pv)
Sets the surchargeCurve attribute of the InducedSurchargeOpRule object
|
void |
setTableLookupIndependentVariable(IndependentVariable iv)
For user defined ESRD curves, get additional user defined
IndependentVariable of inflow for
setting time averaging and offset options
|
void |
setTimeSeriesOptionModel(InflowTimeSeriesOptionModel model)
Sets the timeSeriesOptionModel attribute of the InducedSurchargeOpRule
object
|
void |
setTopOfFloodControlPool(double d)
Sets the topOfFloodControlPool attribute of the InducedSurchargeOpRule
object
|
void |
setUseRateOfRise(boolean tf)
return last state of surcharge plot
|
void |
setUserCurvesAreRateOfRise(boolean tf) |
void |
setUserDefinedIsCurves(PairedValuesExt userDefinedIsCurves,
double[] inflows) |
void |
setUserDefinedIsCurvesForFunctionOfInflow(PairedValuesExt userDefinedIsCurves,
double[] inflow)
Stores a copy of the Function Of Reservoir Inflow ESRD curves
|
void |
setUserDefinedIsCurvesForRateOfRise(PairedValuesExt userDefinedIsCurves,
double[] rateOfRise)
Stores a copy of the Rate of Rise ESRD curves
|
void |
setUseTableLookupIndependentVariable(boolean set)
Set true if the ESRD curve uses an additional user defined independent Variable
|
void |
setUseUserDefinedIsCurves(boolean tf) |
void |
updateTSProxyList()
Regenerates the list of all TSProxies required for this location.
|
boolean |
useRateOfRise()
Description of the Method
|
boolean |
useTableLookupIndependentVariable()
If the ESRD curve uses an additional user defined independent Variable
return true
|
applyHindcastData, checkRisingFallingCondition, evaluateRule, evaluateRule, evaulatePerformance, getAveragingPeriod, getController, getDayOfWeekFactor, getDemandScale, getElementDependencies, getEnableRiseFallCondition, getGmtOffset, getKeyStringForObject, getLargestDayOfWeekFactor, getLargestTimeOfDayFactor, getMultiplier, getObjectForKeyString, getParameterType, getReservoirElement, getRiseFallCondition, getRiseFallTolerance, getRssSystem, getSystem, getTargetTSRecordProxy, getTimeOfDayFactor, getTimeOfDayMultiplier, getTSProxyName, getUnitSystem, initOperationStep, isActive, isDnstrmRule, isLocalRule, isPerAvgRule, resetChildOwnership, restoreHotstartState, riseFallConditionIsValid, saveHotstartState, setAveragingPeriod, setController, setDemandScale, setEnableRiseFallCondition, setMultiplier, setParameterType, setPeriodAverageLimit, setRiseFallCondition, setRiseFallTolerance, setSystem, setTimeOfDayMultiplier, setUseDayOfWeekMultiplier, setUseDemandScale, setUsePeriodAverageLimit, setUseTimeOfDayMultiplier, toString, updateByDemandScale, useDayOfWeekMultiplier, useDemandScale, usePeriodAverageLimit, useTimeOfDayMultiplieraddTSRecord, addTSRecordProxy, addTSRecordProxy, addTSRecordProxy, clearTSProxyList, copyInto, getComputedTSRecordProxies, getTSArray, getTSArray, getTSArray, getTSArray, getTSContainer, getTSContainer, getTSDataSet, getTSRecordProxies, getTSRecordProxy, getTSRecordProxy, getTSRecordProxy, getTSRecordProxy, getTSRecordProxy, getTSRecordProxyVec, removeTSRecord, removeTSRecordProxy, removeTSRecordProxyaddModifiableListener, compareTo, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, removeModifiableListener, rename, set, setDescription, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, update, useRecursiveModifiedTestpublic static final int UNDEF_OPTION
public static final int RATIO_OF_INFLOW
public static final int AVG_RELEASE_AND_INFLOW
public static final int PEAK_GATE_OPENING
public static final int PEAK_RELEASE
public InducedSurchargeOpRule()
public InducedSurchargeOpRule(java.lang.String name)
name - Stringpublic void evaluateLimits(RunTimeStep rts, int iteration)
evaluateLimits in class OpRulerts - public OpValue getOpValue(RunTimeStep rts)
getOpValue in class OpRulerts - public void setInflowValues(double[] inflowValues)
inflowValues - public void setRecessionConstant(double d)
d - The new recessionConstant valuepublic void setTopOfFloodControlPool(double d)
d - The new topOfFloodControlPool valuepublic void setFallingPoolThresholdTime(double tim)
tim - The new fallingPoolThresholdTime valuepublic void setFallingPoolOption(int iopt)
iopt - The new fallingPoolOption valuepublic void setRatio(double ratio)
ratio - The new ratio valuepublic void setRatioPeriod(double period)
period - The new ratioPeriod valuepublic void setInflowAvgPeriod(double period)
period - The new inflowAvgPeriod valuepublic void setSurchargeCurve(PairedValues pv)
pv - The new surchargeCurve valuepublic void setPlotInflowValues(double[] inflows)
inflows - The new plotInflowValues valuepublic void setPlotRateOfRiseValues(double[] rateOfRise)
rateOfRise - The new plotRateOfRiseValues valuepublic void setPlotRateOfRiseLookbackHours(double lookbackHours)
lookbackHours - The new plotRateOfRiseLookbackHours valuepublic void setUseRateOfRise(boolean tf)
tf - The new useRateOfRise valuepublic void setOutletUsageModel(OutletUsageModel model)
model - The new outletUsageModel valuepublic void setTimeSeriesOptionModel(InflowTimeSeriesOptionModel model)
model - The new timeSeriesOptionModel valuepublic boolean setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
setFieldObject in interface FieldAccessorsetFieldObject in class OpRulefld - The new fieldObject valuefobj - The new fieldObject valuepublic double[] getInflowValues()
public double getRecessionConstant()
public double getTopOfFloodControlPool()
public double getFallingPoolThresholdTime()
public int getFallingPoolOption()
public double getRatio()
public double getRatioPeriod()
public double getInflowAvgPeriod()
public PairedValues getSurchargeCurve()
public double getDischargeValue(double qin,
double elev)
qin - Description of Parameterelev - Description of Parameterpublic double getElevationForInflowRelease(double qin,
double release)
qin - Description of Parameterrelease - Description of Parameterpublic double getElevationForRateOfRise(double rateOfRise,
double release)
rateOfRise - Description of Parameterrelease - Description of Parameterpublic void setUserDefinedIsCurves(PairedValuesExt userDefinedIsCurves, double[] inflows)
public PairedValuesExt getUserDefinedIsCurves()
public double[] getUserDefinedIsInflows()
public void setUseUserDefinedIsCurves(boolean tf)
public boolean getUseUserDefinedIsCurves()
public void setUserCurvesAreRateOfRise(boolean tf)
public boolean getUserCurvesAreRateOfRise()
public void setUserDefinedIsCurvesForRateOfRise(PairedValuesExt userDefinedIsCurves, double[] rateOfRise)
userDefinedIsCurves - rateOfRise - public PairedValuesExt getUserDefinedIsCurvesForRateOfRise()
public double[] getUserDefinedRateOfRise()
public void setUserDefinedIsCurvesForFunctionOfInflow(PairedValuesExt userDefinedIsCurves, double[] inflow)
userDefinedIsCurves - inflow - public PairedValuesExt getUserDefinedIsCurvesForFunctionOfInflow()
public double[] getUserDefinedIsReservoirInflow()
public double[] getPlotInflowValues()
public double[] getPlotRateOfRiseValues()
public double getPlotRateOfRiseLookbackHours()
public InflowTimeSeriesOptionModel getInflowTimeSeriesOption()
public OutletUsageModel getOutletUsageModel()
public void setIndependentVariable(IndependentVariable independentVariable)
public void setTableLookupIndependentVariable(IndependentVariable iv)
public IndependentVariable getIndependentVariable()
public IndependentVariable getTableLookupIndependentVariable()
public java.lang.Object getFieldObject(java.lang.reflect.Field fld)
FieldAccessorgetFieldObject in interface FieldAccessorgetFieldObject in class OpRulefld - Description of Parameterpublic boolean initializeCompute()
initializeCompute in class OpRulepublic OpValue evaluateRule(RunTimeStep rts, double initialValue)
evaluateRule in class OpRulerts - Description of ParameterinitialValue - Description of Parameterpublic void saveFunctionState(int stateid)
saveFunctionState in class OpRulestateid - identifier for the statepublic void restoreFunctionState(int stateid)
restoreFunctionState in class OpRulestateid - identifier for the statepublic void saveHotstartState(ElementHotstartState elementHotstartState, int stateId)
public java.lang.Object clone()
public boolean fallingPoolOptionsValid()
public double averageInflow(RunTimeStep rts, double avgPeriod)
rts - Description of ParameteravgPeriod - Description of Parameterpublic boolean reservoirFalling(RunTimeStep rts, double avgPeriod)
rts - Description of ParameteravgPeriod - Description of Parameterpublic double fq(double s1,
double qin,
Storage storage,
double q)
s1 - Description of Parameterqin - Description of Parameterstorage - Description of Parameterq - Description of Parameterpublic boolean useRateOfRise()
public int getRuleLimitType()
getRuleLimitType in class OpRulepublic java.util.Vector getActiveTSRecordProxies(java.util.Vector vec,
int iotype)
getActiveTSRecordProxies in class OpRulepublic boolean useTableLookupIndependentVariable()
public void setUseTableLookupIndependentVariable(boolean set)
_useTableLookupIndependentVariable - public void updateTSProxyList()
updateTSProxyList in class OpRulepublic java.util.Vector getRequiredTSRecordProxies(java.util.Vector v)
getRequiredTSRecordProxies in class OpRulepublic void getReferencedStateVariables(java.util.List svlist)
getReferencedStateVariables in class OpRulesvlist - unique list of state variablespublic void outputReport(hec.rss.model.reports.AlternativeInputReport report,
org.jdom.Element elem)
hec.rss.model.reports.AltInputReportInfcoutputReport in interface hec.rss.model.reports.AltInputReportInfcoutputReport in class OpRule