public class OpRule extends RssTSLocationObject implements hec.rss.model.reports.AltInputReportInfc
| Modifier and Type | Field and Description |
|---|---|
static int |
FALLING |
static int |
FALLING_OR_CONST |
static int |
INFLOW |
static int |
NONE |
static int |
POOL_ELEVATION |
static int |
RISING |
static int |
RISING_OR_CONST |
static int |
RULETYPE_FREE
free rule type flag - indicates value unconstrained by a rule
|
static int |
RULETYPE_MAX
Maximum rule type flag
|
static int |
RULETYPE_MIN
Minimum rule type flag
|
static int |
RULETYPE_SPEC
Specified rule type flag
|
_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 |
|---|
OpRule() |
OpRule(OpController controller,
java.lang.String name) |
OpRule(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyHindcastData(HindcastData hd)
applies specific hindcast data for compute
|
boolean |
checkRisingFallingCondition(RunTimeStep rts)
If Rising-Falling condition is enabled for rule, check whether the OpRule should apply
|
java.lang.Object |
clone()
clone method
|
void |
evaluateLimits(RunTimeStep rts,
int iteration)
default implementation calls the old method without the iteration argument
2007-12-27
|
OpValue |
evaluateRule(RunTimeStep rts,
double initialValue)
compares the intial value to rule constraints and returns the adjusted value
|
OpValue |
evaluateRule(RunTimeStep rts,
double initialValue,
int iteration)
compares the intial value to rule constraints and returns the adjusted value
|
OpValue |
evaluateRule(RunTimeStep rts,
double initialValue,
int iteration,
boolean evalDownstream)
compares the intial value to rule constraints and returns the adjusted value
|
void |
evaulatePerformance(RunTimeWindow rtw)
post processing immediately following compute to evalute performance
|
java.util.Vector |
getActiveTSRecordProxies(java.util.Vector vec,
int iotype)
add the time series record proxies associated current compute.
|
int |
getAveragingPeriod() |
OpController |
getController()
get the OpRules Controller
|
double |
getDayOfWeekFactor(RunTimeStep rts)
Get multiplier factor for the day,
accounting for day of the week
|
double |
getDemandScale()
gets the demand scale used for firm yield analysis
|
void |
getElementDependencies(java.util.List elemList)
adds elements upon which the current rule depends to the given list.
|
boolean |
getEnableRiseFallCondition() |
java.lang.Object |
getFieldObject(java.lang.reflect.Field fld)
This method allows access to java.lang.reflect.Field objects within the implementing
class.
|
int |
getGmtOffset()
get the GMT offset
|
java.lang.String |
getKeyStringForObject(java.lang.Object obj)
Takes a object of class Element, Function, RssNode, OpController, or OpRule
and returns a unique string identifying that object
pass request to RssSystem
This should be a TSLocation method
|
double |
getLargestDayOfWeekFactor()
Get largest multiplier factor for any day,
accounting for day of the week
|
double |
getLargestTimeOfDayFactor() |
DayOfWeekMultiplier |
getMultiplier()
Returns a new Day of Week Multiplier object
|
java.lang.Object |
getObjectForKeyString(java.lang.String keystr)
Takes a key string and returns the object of class Element, Function,
Node, OpController, or OpRule
Pass request to RssSystem
This should be a TSLocation method
|
OpValue |
getOpValue(RunTimeStep rts) |
int |
getParameterType() |
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 operating rules
default implementation is to not add any proxies to the list
|
ReservoirElement |
getReservoirElement()
returns the reservoir element associated with this rule.
|
int |
getRiseFallCondition() |
double |
getRiseFallTolerance() |
RssSystem |
getRssSystem()
gets the RssSystem from the reservoir element that this rule
belongs to
|
int |
getRuleLimitType()
get the limit type of this rule
should be implemented by all subclasses of OpRule
|
RssSystem |
getSystem()
get the ResSim Network
|
TSRecordProxy |
getTargetTSRecordProxy()
returns the TSRecordProxy for the time series that is the target for this rule
operation.
|
double |
getTimeOfDayFactor(RunTimeStep rts) |
TimeOfDayMultiplier |
getTimeOfDayMultiplier()
Returns a Time Of Day Multiplier object
|
java.lang.String |
getTSProxyName() |
int |
getUnitSystem()
get the unit system in use
|
boolean |
initializeCompute()
prep for compute
|
int |
initOperationStep(RunTimeStep rts,
int iteration)
initialization call before each operation step, or before recomputing
operations with different options
|
boolean |
isActive(RunTimeStep rts)
returns true if this rule is active (included in the zone rules of the
current OpSet for the parent ReservoirOp).
|
boolean |
isDnstrmRule()
returns true if this rule is a downstream rule
|
boolean |
isLocalRule()
returns true if this rule is local to a reservoir
|
boolean |
isPerAvgRule()
returns true if this rule uses period average evaluation
|
void |
outputReport(hec.rss.model.reports.AlternativeInputReport report,
org.jdom.Element elem)
Alternative Input Report Interface for data.
|
void |
resetChildOwnership() |
void |
restoreFunctionState(int stateid)
restore the state of the rule matching the given
identifier - default behavior is to do nothing
|
void |
restoreHotstartState(OpControllerHotstartState opControllerHotstartState) |
boolean |
riseFallConditionIsValid()
check completeness of rise-fall condition data
|
void |
saveFunctionState(int stateid)
save the current state of the rule with the given
identifier - default behavior is to do nothing
|
void |
saveHotstartState(HotstartState parentState,
int stateId) |
void |
setAveragingPeriod(int seconds) |
void |
setController(OpController controller) |
void |
setDemandScale(double scl)
sets the demand scale used for firm yield analysis
|
void |
setEnableRiseFallCondition(boolean tf) |
boolean |
setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
This allows access to fields withing the implementing object to set there data.
|
void |
setMultiplier(DayOfWeekMultiplier mult)
Sets the Day of Week Mulitplier
|
void |
setParameterType(int type) |
void |
setPeriodAverageLimit(boolean tf) |
void |
setRiseFallCondition(int type) |
void |
setRiseFallTolerance(double tol) |
void |
setSystem(RssSystem sys) |
void |
setTimeOfDayMultiplier(TimeOfDayMultiplier mult)
Sets the Time of Day Mulitplier
|
void |
setUseDayOfWeekMultiplier(boolean tf)
Set flag for Day Of Week Multiplier
|
void |
setUseDemandScale(boolean b)
set the flag to use demand scale for firm yield analysis
|
void |
setUsePeriodAverageLimit(boolean tf)
Set flag for period average limit use
|
void |
setUseTimeOfDayMultiplier(boolean tf)
Set flag for Time Of Day Multiplier
|
java.lang.String |
toString()
return the String representation of the OpRule.
|
void |
updateByDemandScale(double scl) |
void |
updateTSProxyList()
Regenerates the list of all TSProxies required for this location.
|
boolean |
useDayOfWeekMultiplier()
Returns true if Day Of Week Multiplier to be used
|
boolean |
useDemandScale()
return flag to use demand scale for firm yield analysis
|
boolean |
usePeriodAverageLimit() |
boolean |
useTimeOfDayMultiplier()
Returns true if Time Of Day Multiplier to be used
|
addTSRecord, 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 NONE
public static final int RISING
public static final int RISING_OR_CONST
public static final int FALLING_OR_CONST
public static final int FALLING
public static final int POOL_ELEVATION
public static final int INFLOW
public static final int RULETYPE_MAX
public static final int RULETYPE_SPEC
public static final int RULETYPE_MIN
public static final int RULETYPE_FREE
public OpRule()
public OpRule(java.lang.String name)
public OpRule(OpController controller, java.lang.String name)
public TSRecordProxy getTargetTSRecordProxy()
public void updateByDemandScale(double scl)
public void setUseDemandScale(boolean b)
public boolean useDemandScale()
public void setDemandScale(double scl)
public double getDemandScale()
public void getElementDependencies(java.util.List elemList)
public OpValue getOpValue(RunTimeStep rts)
public void evaluateLimits(RunTimeStep rts, int iteration)
rts - iteration - public void evaulatePerformance(RunTimeWindow rtw)
rtw - public int getRuleLimitType()
public java.util.Vector getActiveTSRecordProxies(java.util.Vector vec,
int iotype)
getActiveTSRecordProxies in class RssTSLocationObjectpublic void updateTSProxyList()
updateTSProxyList in class RssTSLocationObjectpublic java.lang.String getTSProxyName()
public void getReferencedStateVariables(java.util.List svlist)
svlist - unique list of state variablespublic java.util.Vector getRequiredTSRecordProxies(java.util.Vector v)
public void saveFunctionState(int stateid)
stateid - identifier for the statepublic void restoreFunctionState(int stateid)
stateid - identifier for the statepublic ReservoirElement getReservoirElement()
public boolean isActive(RunTimeStep rts)
RunTimeStep - public void setSystem(RssSystem sys)
public RssSystem getSystem()
getSystem in class RssTSLocationObjectpublic void applyHindcastData(HindcastData hd)
public java.lang.String toString()
public void resetChildOwnership()
public int getGmtOffset()
public int getUnitSystem()
public java.lang.Object clone()
RssTSLocationObjectclone in class RssTSLocationObjectpublic boolean initializeCompute()
public int initOperationStep(RunTimeStep rts, int iteration)
public OpValue evaluateRule(RunTimeStep rts, double initialValue, int iteration, boolean evalDownstream)
public OpValue evaluateRule(RunTimeStep rts, double initialValue, int iteration)
public OpValue evaluateRule(RunTimeStep rts, double initialValue)
public void setController(OpController controller)
public OpController getController()
public boolean isLocalRule()
public boolean isDnstrmRule()
public boolean isPerAvgRule()
public java.lang.String getKeyStringForObject(java.lang.Object obj)
public java.lang.Object getObjectForKeyString(java.lang.String keystr)
public RssSystem getRssSystem()
public boolean checkRisingFallingCondition(RunTimeStep rts)
public boolean riseFallConditionIsValid()
public void setEnableRiseFallCondition(boolean tf)
public boolean getEnableRiseFallCondition()
public void setRiseFallCondition(int type)
public int getRiseFallCondition()
public void setAveragingPeriod(int seconds)
public int getAveragingPeriod()
public void setRiseFallTolerance(double tol)
public double getRiseFallTolerance()
public void setParameterType(int type)
public int getParameterType()
public boolean useDayOfWeekMultiplier()
public void setUseDayOfWeekMultiplier(boolean tf)
public void setPeriodAverageLimit(boolean tf)
public DayOfWeekMultiplier getMultiplier()
public void setMultiplier(DayOfWeekMultiplier mult)
public double getDayOfWeekFactor(RunTimeStep rts)
public double getLargestDayOfWeekFactor()
public boolean useTimeOfDayMultiplier()
public boolean usePeriodAverageLimit()
public void setUseTimeOfDayMultiplier(boolean tf)
public void setUsePeriodAverageLimit(boolean tf)
tf - public TimeOfDayMultiplier getTimeOfDayMultiplier()
public void setTimeOfDayMultiplier(TimeOfDayMultiplier mult)
public double getTimeOfDayFactor(RunTimeStep rts)
public double getLargestTimeOfDayFactor()
public void saveHotstartState(HotstartState parentState, int stateId)
public void restoreHotstartState(OpControllerHotstartState opControllerHotstartState)
public java.lang.Object getFieldObject(java.lang.reflect.Field fld)
FieldAccessorgetFieldObject in interface FieldAccessorgetFieldObject in class RssTSLocationObjectfld - The field to get.public boolean setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
FieldAccessorsetFieldObject in interface FieldAccessorsetFieldObject in class RssTSLocationObjectfld - The java field object representing the member field to be setfobj - The data to set in that fieldpublic void outputReport(hec.rss.model.reports.AlternativeInputReport report,
org.jdom.Element elem)
hec.rss.model.reports.AltInputReportInfcoutputReport in interface hec.rss.model.reports.AltInputReportInfc