public class OpSet extends RssTSLocationObject implements hec.rss.model.reports.AltInputReportInfc
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BASE_NAME
Default name for basic operating rule set
|
static java.lang.String |
CONSERVATION_ZONE |
static java.lang.String |
FLOOD_ZONE |
static java.lang.String |
INACTIVE_ZONE
default zone names
|
_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 |
|---|
OpSet() |
OpSet(ReservoirOp resop,
java.lang.String name) |
OpSet(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
StorageZone |
addNewStorageZone(java.lang.String name) |
java.lang.Object |
clone()
Creates a new object of the same class as this object.
|
double |
computeAdjustedZoneElev(StorageZone zone,
RunTimeStep rts,
double baseElev)
Computes the adjusted zone elevation for variable guide curve operation.
|
boolean |
computingProjectedElevation() |
void |
deleteControllerReferences(int ctrlId)
remove all references to a deleted controller
|
void |
deleteReleaseAllocation(int opControllerId)
Deletes the release allocation for a given OpController index
|
void |
deleteReleaseAllocation(OpController opCont)
Deletes the release allocation for a given OpController
|
void |
deleteZone(int index)
Delete a storage zone and all related rule references
|
java.util.Vector |
getActiveTSRecordProxies(java.util.Vector vec,
int iotype)
add the time series record proxies associated current compute.
|
StorageZone |
getActiveZone(double elev,
RunTimeStep time)
Computes and save current elevation of all zones and
returns the zone that is active for the given reservoir state
|
java.util.List |
getAllRuleRefs(int controllerIndex,
int ruleRefIndex,
java.util.List refList) |
OpValue |
getCapacityOutageOrOverride(Element elem,
int currentStep,
OpValue currentValue) |
CapacitySchedule |
getCapacitySchedule() |
int |
getCompProjElevHours() |
java.util.List<ConditionalBlockRef> |
getConditionals(java.util.List<ConditionalBlockRef> condVec)
gets the unique list of Conditionals used by this operation set
|
java.util.List |
getControllerRules(int controllerId,
java.util.List ruleList)
adds all rules used in this operation set to the given List
|
java.util.Vector |
getCreditResRefVec() |
DecisionSch |
getDecisionSchedule()
Gets the Decision Schedule object owned by this OpSet (not a copy)
|
void |
getDownstreamRuleNodes(java.util.Hashtable nodetable)
adds all downstream nodes used as downstream control points to the given vector
|
void |
getDownstreamRules(java.util.List ruleVec)
adds all downstream rules to the given vector
|
java.lang.Object |
getFieldObject(java.lang.reflect.Field fld)
This method allows access to java.lang.reflect.Field objects within the implementing
class.
|
StorageZone |
getFloodZone() |
java.lang.String |
getFullZoneName(StorageZone z)
returns a fully qualified name for a zone
|
StorageZone |
getGuideCurveZone()
Get the StorageZone that represents the reservoir guide curve
|
int |
getGuideCurveZoneIndex()
Get the Index of the StorageZone that represents the reservoir guide curve
|
StorageZone |
getInactiveZone() |
int |
getInactiveZoneIndex() |
int |
getMaxNumDecisionSteps(int dt)
get the maximum number time steps in a decision interval
|
int |
getMaxNumROCSteps(RunTimeWindow rtw,
double limitVal,
int limitType) |
int |
getNumDecisionSteps(RunTimeStep rts)
calculates and returns the number of time steps in the current
decision interval - assume this method is called when isDecisionStep()
has returned true.
|
void |
getReferencedStateVariables(java.util.List svlist)
adds all StateVariables refereced by rules or conditional block to the given List
|
ReleaseAllocation |
getReleaseAllocation(int opControllerId)
Retrieves a ReleaseAllocation object for a given OpController index.
|
ReleaseAllocation |
getReleaseAllocation(OpController opCont)
Retrieves a ReleaseAllocation object for a given OpController.
|
ReservoirOp |
getReservoirOp()
get the parent reservoirOp
|
java.util.List |
getRules(java.util.List rulevec)
gets the unique list of OpRules used by this operation set
|
java.util.Vector |
getSortedZoneVector()
returns a vector of zones sorted by first elevation in their seasonal records
|
java.util.Vector |
getSortedZoneVector(boolean ascending)
returns a vector of zones sorted by first elevation in their seasonal records
|
SeasonalPairedValues |
getStorageCredit()
Get the set of curves for storage credit vs.
|
java.util.List<StorageZone> |
getStorageZones(java.util.List<StorageZone> zoneList)
gets the list of StorageZones used by this operation set
|
RssSystem |
getSystem()
Each subclass must provide a method to return its parent RssSystem
|
void |
getSystemHydropowerOpRules(java.util.List rList)
adds all downstream rules to the given vector
|
StorageZone |
getTopZone()
return the top most zone assuming zone list is in ascending order
|
java.util.Vector |
getTSRecordProxyVec(int varId,
java.util.Vector proxyVec)
override method in RssTSLocationObject to do special handling for Guide Curve time series
|
int |
getUnitSystem() |
boolean |
getUseStorageCredit() |
StorageZone |
getZone(int id)
get an existing storage zone by id
|
StorageZone |
getZone(java.lang.String name)
get an existing storage zone by id
|
java.util.Vector |
getZoneVector()
Get the vector of storage zones
|
boolean |
hasCapacityOutages() |
boolean |
hasDecisionSchedule() |
boolean |
hasDownstreamGoals()
returns true if any rules referenced in the given opset have downstream operating goals
|
boolean |
hasStorageCredit() |
boolean |
hasUserDefinedReleaseAllocation() |
boolean |
initializeCompute(RunTimeWindow rtw)
prepare for computations
|
boolean |
isDecisionStep(RunTimeStep rts)
Determines whether the given time step is a decision step
|
void |
outputReport(hec.rss.model.reports.AlternativeInputReport report,
org.jdom.Element elem)
Alternative Input Report Interface for data.
|
void |
removeAllConditionalBlockRefs(int cbBlockIndex) |
void |
removeAllRuleRef(int controllerIndex,
int ruleRefIndex)
removes a rule reference from all zones in this operation set.
|
void |
setCapacitySchedule(CapacitySchedule cs) |
void |
setCompProjElevHours(int hrs) |
void |
setComputeProjectedElevation(boolean computing) |
void |
setCreditResRefVec(java.util.Vector vec) |
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 |
setGuideCurveZoneIndex(int id)
Sets the index of the Storage Zone representing the reservoir guide curve
|
void |
setHasCapacityOutages(boolean hasEm) |
void |
setHasDecisionSchedule(boolean hasDs) |
void |
setHasStorageCredit(boolean b) |
void |
setHasUserDefinedReleaseAllocation(boolean hasEm) |
void |
setInactiveZoneIndex(int index) |
void |
setReleaseAllocation(int opControllerId,
ReleaseAllocation ra) |
void |
setReleaseAllocation(OpController opCont,
ReleaseAllocation ra)
Saves a release allocation for a given OpController.
|
void |
setReservoirOp(ReservoirOp resop)
set the reservoirOp
|
void |
setStorageCredit(SeasonalPairedValues storageCredit) |
void |
setUseProjectedResElevForOpZone(boolean use) |
void |
setUseStorgeCredit(boolean set) |
java.lang.String |
toString()
over toString to return name - check if ok to move to namedtype
|
void |
updateTSProxyList()
Regenerates the list of all TSProxies required for this location.
|
boolean |
useProjectedResElevForOpZone() |
boolean |
useRecursiveModifiedTest()
Indicates whether object uses recursive modified testing.
|
addTSRecord, addTSRecordProxy, addTSRecordProxy, addTSRecordProxy, clearTSProxyList, copyInto, getComputedTSRecordProxies, getTSArray, getTSArray, getTSArray, getTSArray, getTSContainer, getTSContainer, getTSDataSet, getTSRecordProxies, getTSRecordProxy, getTSRecordProxy, getTSRecordProxy, getTSRecordProxy, getTSRecordProxy, removeTSRecord, removeTSRecordProxy, removeTSRecordProxyaddModifiableListener, compareTo, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, removeModifiableListener, rename, set, setDescription, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, updatepublic static final java.lang.String BASE_NAME
public static final java.lang.String INACTIVE_ZONE
public static final java.lang.String CONSERVATION_ZONE
public static final java.lang.String FLOOD_ZONE
public OpSet()
public OpSet(java.lang.String name)
public OpSet(ReservoirOp resop, java.lang.String name)
public int getMaxNumROCSteps(RunTimeWindow rtw, double limitVal, int limitType)
public ReleaseAllocation getReleaseAllocation(OpController opCont)
opCont - public ReleaseAllocation getReleaseAllocation(int opControllerId)
opControllerId - public void deleteReleaseAllocation(OpController opCont)
opCont - public void deleteReleaseAllocation(int opControllerId)
opCont - public void setReleaseAllocation(OpController opCont, ReleaseAllocation ra)
opCont - ra - public void setReleaseAllocation(int opControllerId,
ReleaseAllocation ra)
public java.util.List<StorageZone> getStorageZones(java.util.List<StorageZone> zoneList)
public java.util.List getRules(java.util.List rulevec)
public java.util.List<ConditionalBlockRef> getConditionals(java.util.List<ConditionalBlockRef> condVec)
public double computeAdjustedZoneElev(StorageZone zone, RunTimeStep rts, double baseElev)
zone - Storage Zone that will be modified. This implementation only
affects the guide curve elevation, although later expansion of the method
may also affect other zones.rts - current RunTimeStepbaseElev - zone elevation at current RunTimeSteppublic StorageZone getGuideCurveZone()
public StorageZone getFloodZone()
public StorageZone getInactiveZone()
public int getGuideCurveZoneIndex()
public int getInactiveZoneIndex()
public void setInactiveZoneIndex(int index)
public boolean getUseStorageCredit()
public void setGuideCurveZoneIndex(int id)
id - guide curve zone indexpublic void setUseStorgeCredit(boolean set)
set - boolean for use storage creditpublic SeasonalPairedValues getStorageCredit()
public void setStorageCredit(SeasonalPairedValues storageCredit)
public java.util.Vector getCreditResRefVec()
public void setCreditResRefVec(java.util.Vector vec)
public DecisionSch getDecisionSchedule()
public boolean isDecisionStep(RunTimeStep rts)
rts - time step to testpublic int getNumDecisionSteps(RunTimeStep rts)
rts - public int getMaxNumDecisionSteps(int dt)
dt - time step in secondpublic java.util.Vector getActiveTSRecordProxies(java.util.Vector vec,
int iotype)
getActiveTSRecordProxies in class RssTSLocationObjectpublic void updateTSProxyList()
updateTSProxyList in class RssTSLocationObjectpublic java.util.Vector getTSRecordProxyVec(int varId,
java.util.Vector proxyVec)
getTSRecordProxyVec in class RssTSLocationObjectpublic java.lang.String getFullZoneName(StorageZone z)
public RssSystem getSystem()
RssTSLocationObjectgetSystem in class RssTSLocationObjectpublic void deleteControllerReferences(int ctrlId)
public int getUnitSystem()
public StorageZone getTopZone()
public StorageZone getActiveZone(double elev, RunTimeStep time)
public java.util.List getControllerRules(int controllerId,
java.util.List ruleList)
public void getDownstreamRuleNodes(java.util.Hashtable nodetable)
public void getDownstreamRules(java.util.List ruleVec)
public void getSystemHydropowerOpRules(java.util.List rList)
public void getReferencedStateVariables(java.util.List svlist)
public boolean hasDownstreamGoals()
public java.util.List getAllRuleRefs(int controllerIndex,
int ruleRefIndex,
java.util.List refList)
public void removeAllConditionalBlockRefs(int cbBlockIndex)
public void removeAllRuleRef(int controllerIndex,
int ruleRefIndex)
public void deleteZone(int index)
public void setReservoirOp(ReservoirOp resop)
public ReservoirOp getReservoirOp()
public java.lang.String toString()
public java.util.Vector getZoneVector()
public boolean initializeCompute(RunTimeWindow rtw)
public OpValue getCapacityOutageOrOverride(Element elem, int currentStep, OpValue currentValue)
public java.util.Vector getSortedZoneVector()
public java.util.Vector getSortedZoneVector(boolean ascending)
public StorageZone getZone(int id)
public StorageZone getZone(java.lang.String name)
public boolean useRecursiveModifiedTest()
useRecursiveModifiedTest in class NamedTypepublic StorageZone addNewStorageZone(java.lang.String name)
public void setCapacitySchedule(CapacitySchedule cs)
public boolean hasUserDefinedReleaseAllocation()
public void setHasUserDefinedReleaseAllocation(boolean hasEm)
public boolean hasCapacityOutages()
public void setHasCapacityOutages(boolean hasEm)
public void setHasDecisionSchedule(boolean hasDs)
public boolean hasDecisionSchedule()
public boolean hasStorageCredit()
public void setHasStorageCredit(boolean b)
public CapacitySchedule getCapacitySchedule()
public java.lang.Object clone()
clone in class RssTSLocationObjectpublic boolean computingProjectedElevation()
public void setComputeProjectedElevation(boolean computing)
public void setCompProjElevHours(int hrs)
public int getCompProjElevHours()
public void setUseProjectedResElevForOpZone(boolean use)
public boolean useProjectedResElevForOpZone()
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