public class StorageZone extends NamedType implements java.lang.Cloneable, ZoneObjectParent, hec.rss.model.reports.AltInputReportInfc
_description, _index, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT| Constructor and Description |
|---|
StorageZone() |
StorageZone(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
ConditionalBlockRef |
addConditionalBlock(ConditionalBlock cblock) |
OpRuleRef |
addRule(OpRule rule)
Add an OpRuleRef to this zone's rule list
|
java.lang.Object |
clone()
Creates a new object of the same class as this object.
|
void |
decreaseZoneObjectPriority(java.lang.Object obj) |
java.util.List |
getActiveRules(RunTimeStep rts,
java.util.List ruleList)
return the active rules for the given time step
|
java.util.List |
getAllRuleRefs(int controllerIndex,
int ruleRefIndex,
java.util.List refList) |
ConditionalBlockRef |
getConditionalBlockRef(ConditionalBlock cBlock) |
java.util.List |
getConditionalBlockRefs(java.util.List clist) |
java.util.List |
getControllerRules(int controllerId,
java.util.List ruleList)
adds all rules used in this operation set to the given List
|
void |
getElementDependencies(java.util.List<Element> elemList)
adds elements upon which the zone depends to evaluate the storage zone value to
the given list.
|
double |
getElevation(RunTimeStep time)
returns the elevation at a given time step using the seasonal data or time series override
|
double |
getElevation(RunTimeStep time,
java.util.Hashtable overrideTable)
returns the elevation at a given time step using the seasonal data or time series override
|
java.lang.Object |
getFieldObject(java.lang.reflect.Field fld)
This method allows access to java.lang.reflect.Field objects within the implementing
class.
|
double |
getFirstElevation()
gets the first elevation in the seasonal record
|
java.lang.String |
getFullZoneName(StorageZone z)
returns a fully qualified name for a zone
|
java.lang.Object |
getFunctionElevation() |
IndependentVariable |
getIndependentVariable()
returns current zone's independent variable
|
double |
getIndpVarValue(RunTimeStep rts,
boolean hasElevTS) |
double |
getInterpolateElev(HecTime htime) |
OpSet |
getOpSet() |
java.util.List |
getPrimaryRules(java.util.List ruleList)
gets the list of OpRules held directy by zone
|
void |
getReferencedStateVariables(java.util.List svlist)
adds all downstream rules to the given vector
|
double |
getReferenceElevation() |
ReservoirElement |
getReservoirElement()
returns the reservoir element associated with this rule.
|
ReservoirOp |
getReservoirOp()
Gets the ReservoirOp that owns the parent.
|
java.util.List<OpRuleRef> |
getRuleRefs(java.util.List<OpRuleRef> ruleRefList)
gets the unique list of all OpRules used by this zone
|
java.util.List |
getRules(java.util.List ruleList)
gets the unique list of all OpRules used by this zone
|
SeasonalRecord |
getSeasonalRecord()
zone is a function of date or date/time
|
int |
getStartYear() |
RssSystem |
getSystem()
gets the parent system
|
IndependentVariable |
getTVColIndependentVariable() |
IndependentVariable |
getTVRowIndependentVariable() |
double |
getTwoVarValue(IndependentVariable ivRow,
IndependentVariable ivCol,
RunTimeStep rts,
boolean hasElevTS)
Compute elevation for Two Independent Variable function
|
int |
getUnitSystem() |
java.lang.String[] |
getUserDefinedColumnValues() |
PairedValuesExt |
getUserDefinedPairedValuesExt() |
SeasonalRecordExt |
getUserDefinedSeasonalRecordExt() |
java.util.List |
getZoneObjectsList()
return the zone object list - does not return copy!
|
boolean |
hasSeasonalVariation() |
void |
increaseZoneObjectPriority(java.lang.Object obj) |
void |
initializeCompute() |
boolean |
isMultiYearData() |
boolean |
isTimeSeries() |
void |
moveZoneObjectToBottomPriority(java.lang.Object obj) |
void |
moveZoneObjectToTopPriority(java.lang.Object obj) |
void |
outputReport(hec.rss.model.reports.AlternativeInputReport report,
org.jdom.Element elem)
Alternative Input Report Interface for data.
|
void |
removeAllConditionalBlockRefs(int cbBlockIndex) |
void |
removeAllIfBlocks()
remove all If Blocks from the StorageZone
|
void |
removeAllRuleRefs(int controllerIndex,
int ruleRefIndex) |
void |
removeAllRules() |
ConditionalBlockRef |
removeConditionalBlock(ConditionalBlock cblock) |
void |
removeControllerRefs(int ctrlId) |
void |
removeIfBlock(ConditionalBlock ifBlock)
remove the if block from the Zone.
|
OpRuleRef |
removeRule(OpRule oprule)
remove the OpRule from the StorageZone
|
OpRuleRef |
removeRule(OpRuleRef opruleRef)
remove the OpRuleRef from the StorageZone
|
void |
setConstantElevation(double elev)
set the zone elevation to a constant value
|
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 |
setFunctionElevation(PairedValuesExt pve)
Zone Elevation as a function of some parameter value.
|
void |
setFunctionElevation(SeasonalPairedValues spv)
Zone Elevation as a function of some parameter value.
|
void |
setFunctionElevation(SeasonalRecordExt sre)
Zone Elevation as a function of some parameter value.
|
void |
setIfBlockDisabled(ConditionalBlock ifBlock,
boolean disabled) |
void |
setIndependentVariable(IndependentVariable independentVariable)
sets zone's independent variable to the given independentVariable
|
void |
setKnownElevTS(doubleArrayContainer ts) |
void |
setOpSet(OpSet opset) |
void |
setOpSetForElevOverride(OpSet opset) |
void |
setReferenceElevation(double elev)
sets reference elevation value
|
void |
setRuleDisabled(OpRule oprule,
boolean disabled) |
void |
setRuleDisabled(OpRuleRef opruleRef,
boolean disabled) |
void |
setSeasonalRecord(SeasonalRecord sr) |
void |
setStartYear(int startYear) |
void |
setStorageFunction(Storage stor) |
void |
setTVColIndependentVariable(IndependentVariable colIV) |
void |
setTVRowIndependentVariable(IndependentVariable rowIV) |
void |
setUnitSysetm(int unitSystem) |
void |
setUserDefinedColumnValues(java.lang.String[] columnValues) |
void |
setUserDefinedValues(PairedValuesExt userDefinedValues) |
void |
setUserDefinedValues(SeasonalRecordExt userDefinedValues) |
void |
setUseReferenceElevation(boolean use) |
void |
setUseTwoVariableIndependentVariable(boolean use) |
void |
setZoneElevTSContainer(doubleArrayContainer ts) |
boolean |
setZonePriority(java.lang.Object obj,
int index) |
void |
setZoneStorTSContainer(doubleArrayContainer ts) |
java.lang.String |
toString()
to string for display in combo boxes
|
void |
useMultiYearData(boolean useMYearData) |
boolean |
useRefernceElevation() |
boolean |
usesConditionalBlock(ConditionalBlock cblock,
boolean recurse)
test to see if the given conditional block is used in the zone rule set.
|
boolean |
usesOpRule(OpRule rule,
boolean recurse)
test to see if the given rule is used in the zone rule set.
|
void |
useTimeSeries(boolean useTimeSeries) |
boolean |
useTwoVariableIndependentVariable() |
addModifiableListener, compareTo, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, removeModifiableListener, rename, set, setDescription, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, update, useRecursiveModifiedTestpublic StorageZone()
public StorageZone(java.lang.String name)
public void getElementDependencies(java.util.List<Element> elemList)
public void getReferencedStateVariables(java.util.List svlist)
public void initializeCompute()
public java.util.List getActiveRules(RunTimeStep rts, java.util.List ruleList)
rts - public java.util.List getPrimaryRules(java.util.List ruleList)
public java.util.List getRules(java.util.List ruleList)
public java.util.List<OpRuleRef> getRuleRefs(java.util.List<OpRuleRef> ruleRefList)
public void decreaseZoneObjectPriority(java.lang.Object obj)
public void increaseZoneObjectPriority(java.lang.Object obj)
public boolean setZonePriority(java.lang.Object obj,
int index)
userObject - index - public void moveZoneObjectToBottomPriority(java.lang.Object obj)
public void moveZoneObjectToTopPriority(java.lang.Object obj)
public java.util.List getZoneObjectsList()
public OpRuleRef addRule(OpRule rule)
rule - the rule to referencepublic void removeAllRules()
public void removeAllIfBlocks()
public void removeIfBlock(ConditionalBlock ifBlock)
ifBlock - public OpRuleRef removeRule(OpRuleRef opruleRef)
opruleRef - the OpRuleRef to removepublic OpRuleRef removeRule(OpRule oprule)
oprule - the OpRule to removepublic java.util.List getControllerRules(int controllerId,
java.util.List ruleList)
public void removeControllerRefs(int ctrlId)
public java.util.List getConditionalBlockRefs(java.util.List clist)
public java.util.List getAllRuleRefs(int controllerIndex,
int ruleRefIndex,
java.util.List refList)
public void removeAllRuleRefs(int controllerIndex,
int ruleRefIndex)
public void removeAllConditionalBlockRefs(int cbBlockIndex)
public boolean usesOpRule(OpRule rule, boolean recurse)
public ConditionalBlockRef addConditionalBlock(ConditionalBlock cblock)
public ConditionalBlockRef removeConditionalBlock(ConditionalBlock cblock)
public boolean usesConditionalBlock(ConditionalBlock cblock, boolean recurse)
public void setOpSet(OpSet opset)
public OpSet getOpSet()
public java.lang.String getFullZoneName(StorageZone z)
public ReservoirOp getReservoirOp()
ZoneObjectParentgetReservoirOp in interface ZoneObjectParentpublic void setOpSetForElevOverride(OpSet opset)
public void setKnownElevTS(doubleArrayContainer ts)
public void setZoneElevTSContainer(doubleArrayContainer ts)
public void setZoneStorTSContainer(doubleArrayContainer ts)
public void setStorageFunction(Storage stor)
public RssSystem getSystem()
public ReservoirElement getReservoirElement()
public void setUnitSysetm(int unitSystem)
public void useMultiYearData(boolean useMYearData)
public boolean isMultiYearData()
public void useTimeSeries(boolean useTimeSeries)
public boolean isTimeSeries()
public void setIndependentVariable(IndependentVariable independentVariable)
IndependentVariable - independentVariablepublic IndependentVariable getIndependentVariable()
public void setStartYear(int startYear)
public int getStartYear()
public int getUnitSystem()
public java.lang.String toString()
public double getInterpolateElev(HecTime htime)
public double getElevation(RunTimeStep time)
time - time steppublic double getIndpVarValue(RunTimeStep rts, boolean hasElevTS)
public double getTwoVarValue(IndependentVariable ivRow, IndependentVariable ivCol, RunTimeStep rts, boolean hasElevTS)
ivRow - Row IndependentVariableivCol - Column IndependentVariablerts - hasElevTS - public double getElevation(RunTimeStep time, java.util.Hashtable overrideTable)
time - time stepoverrideTable - Hashtable with user elevation overridespublic double getFirstElevation()
public double getReferenceElevation()
public void setReferenceElevation(double elev)
elev - public boolean useRefernceElevation()
public void setUseReferenceElevation(boolean use)
public void setConstantElevation(double elev)
public boolean useTwoVariableIndependentVariable()
public void setUseTwoVariableIndependentVariable(boolean use)
public IndependentVariable getTVRowIndependentVariable()
public void setTVRowIndependentVariable(IndependentVariable rowIV)
public IndependentVariable getTVColIndependentVariable()
public void setTVColIndependentVariable(IndependentVariable colIV)
public void setUserDefinedValues(PairedValuesExt userDefinedValues)
public void setUserDefinedValues(SeasonalRecordExt userDefinedValues)
public void setUserDefinedColumnValues(java.lang.String[] columnValues)
public PairedValuesExt getUserDefinedPairedValuesExt()
public SeasonalRecordExt getUserDefinedSeasonalRecordExt()
public java.lang.String[] getUserDefinedColumnValues()
public boolean hasSeasonalVariation()
public void setSeasonalRecord(SeasonalRecord sr)
public void setFunctionElevation(SeasonalPairedValues spv)
spv - public void setFunctionElevation(PairedValuesExt pve)
spv - public void setFunctionElevation(SeasonalRecordExt sre)
spv - public java.lang.Object getFunctionElevation()
public SeasonalRecord getSeasonalRecord()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
public java.lang.Object getFieldObject(java.lang.reflect.Field fld)
FieldAccessorgetFieldObject in interface FieldAccessorgetFieldObject in class NamedTypefld - The field to get.public boolean setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
FieldAccessorsetFieldObject in interface FieldAccessorsetFieldObject in class NamedTypefld - 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.AltInputReportInfcpublic ConditionalBlockRef getConditionalBlockRef(ConditionalBlock cBlock)
cBlock - public void setRuleDisabled(OpRule oprule, boolean disabled)
currentRule - public void setRuleDisabled(OpRuleRef opruleRef, boolean disabled)
currentRuleRef - public void setIfBlockDisabled(ConditionalBlock ifBlock, boolean disabled)
currentIfBlock - disabled -