public class OpController extends RssTSLocationObject implements OpControllable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
CNSTRNT_NAME |
static int |
CNSTRNTID_CAPOUTAGE |
static int |
CNSTRNTID_CAPOVERRIDE |
static int |
CNSTRNTID_CHILDMAX |
static int |
CNSTRNTID_CHILDMIN |
static int |
CNSTRNTID_PHYSDROC |
static int |
CNSTRNTID_PHYSIROC |
static int |
CNSTRNTID_PHYSMAX |
static int |
CNSTRNTID_PHYSMIN |
static int |
CNSTRNTID_UNCONTROLLED |
static int |
DISTMETH_BALANCE
Id indicating controller will balance releases across controllable objects
|
static int |
DISTMETH_SEQUENTIAL
Id indicating controller will apply releases sequentially across controllable objects
|
static int |
OBJECTIVE_EO |
static int |
OBJECTIVE_GC |
static int |
OBJECTIVE_MIN |
static java.lang.String[] |
OBJECTIVE_NAME |
static int |
OBJECTIVE_RO |
static int |
OBJECTIVE_ZB |
static java.lang.String |
PARAMSTR_DECISION |
static java.lang.String |
PARAMSTR_RULEID |
static java.lang.String |
PARAMSTR_ZONEID |
static java.lang.String |
TOP_PARENT_NAME
Default name for top most controller
|
static double |
ZERO_TOL
tolerance when testing for a value to be approximately equal to zero
|
_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_ROUTE_LAG, VID_OPRULE_ROUTE_MAXOFFSET, VID_OPRULE_ROUTE_MINOFFSET, 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 |
|---|
OpController() |
OpController(java.lang.String name) |
OpController(java.lang.String name,
int id) |
| Modifier and Type | Method and Description |
|---|---|
void |
addControllable(Element elem)
add the given element to the controllable vector (if it is not already in the vector)
|
int |
applyElevationOverrides(RunTimeStep rts,
java.util.Hashtable overrideTable)
apply elevation over-rides
|
void |
applyHindcastData(HindcastData hd)
applies specific hindcast data for compute
|
void |
applyPhysicalLimits(RunTimeStep rts,
boolean evalSelf)
Determines and distributes physical min and max limites to all outlets.
|
boolean |
applyPowerRuleLimits(RunTimeStep rts,
OpRule rule,
int iteration)
Evaluates the given power rule and incorporates its limits into the current
min/max values of all power plants that are at this controller or in its
child controller hierarchy
|
boolean |
applyReleaseOverrides(RunTimeStep rts)
apply release over-rides
|
boolean |
applyRuleLimits2(RunTimeStep rts,
OpRule rule,
int iteration)
Evaluates the given rule and incorporates its limits into the current
min/max values
|
double |
applyZoneOperation(RunTimeStep rts,
StorageZone zone)
apply zone operation to release to a specified zone boundary
|
void |
clearTSProxyList()
dumps all ts proxies
|
java.lang.Object |
clone()
Creates a new object of the same class as this object.
|
int |
commitOperation(RunTimeStep rts,
int numsteps)
commit the operating decision for the given step to adjustable parameters
|
int |
computeGCOperationStep(RunTimeStep rts,
java.util.List rulelist)
Evaluates release based on guide curve, only called for top most reservoir
controller
|
int |
computeZoneOperationStep(RunTimeStep rts,
StorageZone zone,
double release)
Evaluates release based on getting to the given zone, only called for top most reservoir
controller
|
void |
deleteRule(int index)
Deletes a rule for the OpControlller
|
void |
deleteRule(java.lang.String name)
Deletes a rule for the OpControlller
|
void |
distributePhysicalLimits(RunTimeStep rts)
apply determine current physical limits
|
java.util.Vector |
getActiveTSRecordProxies(java.util.Vector vec,
int iotype)
add the time series record proxies associated with the active operation set to the given vector
|
AdjustableParameter |
getAdjustableParameter()
returns the composite adjustable parameter associated with the controller,
must be called after initializing the compute
|
double |
getCapacityOutageOrOveride(double curMaxValue,
RunTimeWindow rts) |
void |
getChildControllers(java.util.Vector vec)
return the child controllers and their child controllers in the given vector
|
void |
getChildControllers(java.util.Vector vec,
boolean recurse)
appends child controllers to the given vector
|
java.util.Vector |
getComputedTSRecordProxies(java.util.Vector v)
returns a vector of computed ts record proxies assuming the downstream flow is computed
|
double |
getCurLimitOpValue(int type) |
double |
getCurLimitPowerFlow(int type)
returns the maximum flow limit from the curMaxOpValue for each outlet
that has a power plant.
|
OpValue |
getCurMaxOpValue() |
OpValue |
getCurMinOpValue() |
OpValue |
getCurOpValue() |
OpValue |
getCurrentOpValue(RunTimeStep rts)
returns the current release value with rule type and priority
|
double |
getCurrentParameterValue()
gets the total current adjustable parameter value
|
double |
getDecisionValue(RunTimeStep rts) |
double |
getDecrROCLimit(RunTimeStep rts,
double[] relcap,
double[] dt,
double elev,
java.util.List rulelist)
Returns the approximate overall decreasing rate of change constraint
for this reservoir.
|
java.lang.String |
getDisplayName()
returns the the elements name appended to its parents full name
|
DownstreamCntrlOpRule |
getDownstreamRuleForParent(int dindex,
int pindex) |
PowerPlant |
getElementPowerPlant()
Returns the power plant associated with the release element of this controller,
otherwise returns null.
|
double |
getEstimatedCurLimit(int ruleType,
RunTimeStep rts)
return the best estimate of the release limit for the controlled
element based on this controllers curMXXOpValue and the expected distribution
of release from the parent controller.
|
double |
getEstimatedCurLimitForChild(OpController child,
int ruleType,
RunTimeStep rts)
get the estimated
|
java.lang.Object |
getFieldObject(java.lang.reflect.Field fld)
This method allows access to java.lang.reflect.Field objects within the implementing
class.
|
double |
getFlowForPrevGateHeight(RunTimeStep rts,
double resElev)
returns the estimated flow if the gate openings from the previous time step
are maintained
|
int |
getGmtOffset() |
double |
getIncrROCLimit(RunTimeStep rts,
double[] relcap,
double[] dt,
double elev,
java.util.List rulelist)
Returns the approximate overall increasing rate of change constraint
for this reservoir.
|
double |
getInstFlowCap(RunTimeStep rts,
double elev,
double[] cntrl,
double[] unctrl)
return the instantaneous flow capacity at the given time step and elevation
|
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 |
getMaxReleaseVol(RunTimeStep rts)
return the maximum volume this controller will release for the given interval.
|
double |
getMinReleaseVol(RunTimeStep rts)
return the minum volume this controller will release for the given interval.
|
int |
getNumControlledOutlets()
determines the number of controlled outlets at or below this controller level
|
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
|
java.util.List<PowerPlant> |
getPowerPlantList(boolean refreshList)
Get the list of all power plants at this controller or from all child controllers
This method also saves the list in the class data member _powerPlantList
|
double |
getPreviousParameterValue(RunTimeStep rts)
gets the total current adjustable parameter value
|
double[] |
getReleaseArray()
return the time series array containing total release data
this must be called only after initializing compute
|
Element |
getReleaseElement()
returns the release element associated with this controller
|
int |
getReleaseElementId()
index of release element this contrable is associated with
|
doubleArrayContainer |
getReleaseTSContainer()
return the time series array containing total release data
this must be called only after initializing compute
|
ReservoirOp |
getReservoirOp()
returns the reservoir op that owns this controller
|
OpRule |
getRule(int id)
return the OpRule matching index, or null if it does not exist
|
OpRule |
getRule(java.lang.String name)
return the OpRule matching name, or null if it does not exist
|
java.util.List |
getRuleConnectivityRefs(boolean recurse)
Returns a List of RuleConnectivityRef objects identifying all rule
references to other objects in the network.
|
java.lang.String[] |
getRuleNames()
returns a list of rule names
|
java.util.Vector |
getRules(java.util.Vector rvec)
returns a vector of rules
|
RssSystem |
getSystem()
Each subclass must provide a method to return its parent RssSystem
|
SystemHydropowerOpRule |
getSystemHydropowerRuleForParent(int pindex) |
TandemSysOpRule |
getTandemSysOpRuleForParent(int pindex)
return the TandemSysOpRule for the given Parent index
|
TSRecordProxy |
getTSRecordProxy(int varId)
finds a TSRecordProxy for the given variable id in this TSLocation
|
int |
getUnitSystem() |
WaterAccount |
getWaterAccount(OpRule rule) |
boolean |
hasPowerPlants() |
boolean |
initForPostProcessing()
Prepares this run for post processing in the ResSim Simulation Module.
|
boolean |
initializeCompute(RunTimeWindow rtw)
prepares for computation for this and all child controllers
|
int |
initOperationStep(RunTimeStep rts,
int iteration)
initialization call before each operation step, or before recomputing
operations with different options
|
boolean |
isUncontrolled()
Returns true if this OpController is associated with an uncontrolled release element
|
OpRule |
newRule(java.lang.String type,
java.lang.String name,
int dnstrmNodeIndex)
return a new OpRule with given name
|
void |
recalcPhysicalLimits(RunTimeStep rts,
double[] xt,
double[] et,
int tcnt)
re-evaluate physical flow limits then apply them
|
void |
recalcPhysicalLimitsInst(RunTimeStep rts,
double elev)
re-evaluate physical flow limits for instantaneous simulation then apply them
|
void |
resetChildOwnership() |
void |
restoreFunctionState(int stateid)
restore the state of the rule matching the given
identifier - default behavior is to do nothing
|
boolean |
restoreHotstartState(HotstartState hotstartStateParent) |
void |
saveFunctionState(int stateid)
save the current state of the rule with the given
identifier - default behavior is to do nothing
|
void |
saveHotstartState(HotstartState hotstartStateParent,
int stateId) |
void |
setActiveOperations(OpSet opset)
sets the active rule set for the given OpSet for this and all child controllers
|
void |
setController(OpController controller)
sets the parent controller
|
void |
setCurMaxOpValue(double val,
int ruleId,
int constraintId) |
void |
setCurMinOpValue(double val,
int ruleId,
int constraintId) |
void |
setCurrentOpValue(double val) |
void |
setCurrentOpValue(double val,
int constraintId) |
void |
setCurrentOpValue(double val,
int ruleId,
int constraintId) |
boolean |
setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
This allows access to fields withing the implementing object to set there data.
|
double |
setParameterValue(double val,
RunTimeStep rts)
sets the adjustable parameter value, returns the value actually applied
|
void |
setReleaseElement(Element e)
sets the associated release element and release element id
|
void |
setReleaseElementId(int elementId)
index of release element this contrable is associated with
|
void |
setReservoirOp(ReservoirOp resop)
sets the parent reservoir Op
|
void |
setZone(RunTimeStep rts,
StorageZone zone) |
java.lang.String |
toString()
over toString to return name - check if ok to move to namedtype
|
void |
updateControllerTree(Element elem)
The method recursively updates the tree of OpControllable objects so that it
is in sync with the current version of the reservoir
|
void |
updateTSProxyList()
Have top level controller update the TSRecordProxy set for itself and all
child controllers and rules
|
boolean |
useRecursiveModifiedTest()
Indicates whether object uses recursive modified testing.
|
addTSRecord, addTSRecordProxy, addTSRecordProxy, addTSRecordProxy, copyInto, getTSArray, getTSArray, getTSArray, getTSArray, getTSContainer, getTSContainer, getTSDataSet, getTSRecordProxies, getTSRecordProxy, getTSRecordProxy, getTSRecordProxy, getTSRecordProxy, getTSRecordProxyVec, removeTSRecord, removeTSRecordProxy, removeTSRecordProxyaddModifiableListener, compareTo, getDescription, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, removeModifiableListener, rename, set, setDescription, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, updatepublic static final java.lang.String PARAMSTR_DECISION
public static final java.lang.String PARAMSTR_RULEID
public static final java.lang.String PARAMSTR_ZONEID
public static final int OBJECTIVE_GC
public static final int OBJECTIVE_RO
public static final int OBJECTIVE_EO
public static final int OBJECTIVE_ZB
public static final int OBJECTIVE_MIN
public static final java.lang.String[] OBJECTIVE_NAME
public static final int CNSTRNTID_PHYSMAX
public static final int CNSTRNTID_PHYSMIN
public static final int CNSTRNTID_CHILDMAX
public static final int CNSTRNTID_CHILDMIN
public static final int CNSTRNTID_PHYSIROC
public static final int CNSTRNTID_PHYSDROC
public static final int CNSTRNTID_CAPOUTAGE
public static final int CNSTRNTID_CAPOVERRIDE
public static final int CNSTRNTID_UNCONTROLLED
public static final java.lang.String[] CNSTRNT_NAME
public static final double ZERO_TOL
public static final int DISTMETH_BALANCE
public static final int DISTMETH_SEQUENTIAL
public static final java.lang.String TOP_PARENT_NAME
public OpController()
public OpController(java.lang.String name)
public OpController(java.lang.String name,
int id)
public double getIncrROCLimit(RunTimeStep rts, double[] relcap, double[] dt, double elev, java.util.List rulelist)
getIncrROCLimit in interface OpControllablepublic double getDecrROCLimit(RunTimeStep rts, double[] relcap, double[] dt, double elev, java.util.List rulelist)
getDecrROCLimit in interface OpControllablepublic double getFlowForPrevGateHeight(RunTimeStep rts, double resElev)
getFlowForPrevGateHeight in interface OpControllablepublic double getInstFlowCap(RunTimeStep rts, double elev, double[] cntrl, double[] unctrl)
OpControllablegetInstFlowCap in interface OpControllablepublic double getCurLimitPowerFlow(int type)
public WaterAccount getWaterAccount(OpRule rule)
public boolean applyRuleLimits2(RunTimeStep rts, OpRule rule, int iteration)
rule - OpRule to be consideredpublic double getMinReleaseVol(RunTimeStep rts)
rts - public double getMaxReleaseVol(RunTimeStep rts)
rts - public boolean isUncontrolled()
public boolean hasPowerPlants()
public PowerPlant getElementPowerPlant()
public java.util.List<PowerPlant> getPowerPlantList(boolean refreshList)
refreshList - is a boolean flag that tiggers recreation of the powerPlantList.public java.util.List getRuleConnectivityRefs(boolean recurse)
recurse - true means to recurse through child OpControllerspublic void saveFunctionState(int stateid)
stateid - identifier for the statepublic void restoreFunctionState(int stateid)
stateid - identifier for the statepublic void saveHotstartState(HotstartState hotstartStateParent, int stateId)
public boolean restoreHotstartState(HotstartState hotstartStateParent)
public DownstreamCntrlOpRule getDownstreamRuleForParent(int dindex, int pindex)
public SystemHydropowerOpRule getSystemHydropowerRuleForParent(int pindex)
public TandemSysOpRule getTandemSysOpRuleForParent(int pindex)
pindex - public void setZone(RunTimeStep rts, StorageZone zone)
public int initOperationStep(RunTimeStep rts, int iteration)
initOperationStep in interface OpControllablepublic OpValue getCurrentOpValue(RunTimeStep rts)
rts - requested time steppublic void setCurrentOpValue(double val)
public void setCurrentOpValue(double val,
int constraintId)
public void setCurrentOpValue(double val,
int ruleId,
int constraintId)
public void setCurMaxOpValue(double val,
int ruleId,
int constraintId)
public void setCurMinOpValue(double val,
int ruleId,
int constraintId)
public OpValue getCurMinOpValue()
public OpValue getCurMaxOpValue()
public OpValue getCurOpValue()
public double getDecisionValue(RunTimeStep rts)
public double getEstimatedCurLimit(int ruleType,
RunTimeStep rts)
ruleType - OpRule.RULETYPE_MIN or OpRule.RULETYPE_MAXpublic double getEstimatedCurLimitForChild(OpController child, int ruleType, RunTimeStep rts)
child - public double getCurLimitOpValue(int type)
public void recalcPhysicalLimitsInst(RunTimeStep rts, double elev)
recalcPhysicalLimitsInst in interface OpControllablerts - RunTimeStepelev - elevation at end of time steppublic void recalcPhysicalLimits(RunTimeStep rts, double[] xt, double[] et, int tcnt)
recalcPhysicalLimits in interface OpControllablerts - RunTimeSteppublic void distributePhysicalLimits(RunTimeStep rts)
rts - public void applyPhysicalLimits(RunTimeStep rts, boolean evalSelf)
rts - evalSelf - a flag that determines whether this controller evaluates its own limits.public int getNumControlledOutlets()
public boolean applyReleaseOverrides(RunTimeStep rts)
rts - public int applyElevationOverrides(RunTimeStep rts, java.util.Hashtable overrideTable)
public double applyZoneOperation(RunTimeStep rts, StorageZone zone)
public int commitOperation(RunTimeStep rts, int numsteps)
public void applyHindcastData(HindcastData hd)
public java.lang.Object clone()
clone in interface OpControllableclone in class RssTSLocationObjectpublic int getGmtOffset()
public int getUnitSystem()
public void setController(OpController controller)
setController in interface OpControllablepublic void resetChildOwnership()
public RssSystem getSystem()
RssTSLocationObjectgetSystem in class RssTSLocationObjectpublic java.lang.String getDisplayName()
getDisplayName in class NamedTypepublic java.lang.String getKeyStringForObject(java.lang.Object obj)
public java.lang.Object getObjectForKeyString(java.lang.String keystr)
public void clearTSProxyList()
clearTSProxyList in class RssTSLocationObjectpublic void updateTSProxyList()
updateTSProxyList in class RssTSLocationObjectpublic java.util.Vector getActiveTSRecordProxies(java.util.Vector vec,
int iotype)
getActiveTSRecordProxies in class RssTSLocationObjectpublic double[] getReleaseArray()
public doubleArrayContainer getReleaseTSContainer()
public double getCurrentParameterValue()
getCurrentParameterValue in interface OpControllablepublic double getPreviousParameterValue(RunTimeStep rts)
getPreviousParameterValue in interface OpControllablepublic int computeZoneOperationStep(RunTimeStep rts, StorageZone zone, double release)
public int computeGCOperationStep(RunTimeStep rts, java.util.List rulelist)
public void setReservoirOp(ReservoirOp resop)
public int getReleaseElementId()
getReleaseElementId in interface OpControllablepublic void setReleaseElementId(int elementId)
setReleaseElementId in interface OpControllablepublic Element getReleaseElement()
public void setReleaseElement(Element e)
setReleaseElement in interface OpControllablepublic void updateControllerTree(Element elem)
public ReservoirOp getReservoirOp()
public boolean initializeCompute(RunTimeWindow rtw)
initializeCompute in interface OpControllablertw - public boolean initForPostProcessing()
initForPostProcessing in interface OpControllablepublic AdjustableParameter getAdjustableParameter()
getAdjustableParameter in interface OpControllablepublic void setActiveOperations(OpSet opset)
public void addControllable(Element elem)
public OpRule newRule(java.lang.String type, java.lang.String name, int dnstrmNodeIndex)
public OpRule getRule(int id)
public java.util.Vector getRules(java.util.Vector rvec)
public java.lang.String[] getRuleNames()
public OpRule getRule(java.lang.String name)
public void deleteRule(java.lang.String name)
name - - name of the rule to deletepublic void deleteRule(int index)
index - - index of the rule to deletepublic java.lang.String toString()
public void getChildControllers(java.util.Vector vec)
vec - public void getChildControllers(java.util.Vector vec,
boolean recurse)
recurse - true to return recurse through the child controllerspublic TSRecordProxy getTSRecordProxy(int varId)
getTSRecordProxy in interface RssTSLocationgetTSRecordProxy in class RssTSLocationObjectpublic java.util.Vector getComputedTSRecordProxies(java.util.Vector v)
getComputedTSRecordProxies in class RssTSLocationObjectpublic double setParameterValue(double val,
RunTimeStep rts)
OpControllablesetParameterValue in interface OpControllablepublic boolean useRecursiveModifiedTest()
useRecursiveModifiedTest in class NamedTypepublic double getCapacityOutageOrOveride(double curMaxValue,
RunTimeWindow rts)
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 boolean applyPowerRuleLimits(RunTimeStep rts, OpRule rule, int iteration)
rule - OpRule to be considered