Package hec.rss.model
Class RssConditional
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.model.Conditional
hec.rss.model.RssConditional
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,ZoneObjectParent,Serializable,Cloneable,Comparable,Observer,rma.lang.Modifiable
Title: Hec Java Development
Description:
Copyright: Copyright (c) 2003
Company:
- See Also:
-
Field Summary
Fields inherited from class hec.model.Conditional
_conditionalBlock, _conditionalList, _rulesList, ELSE_CONDITIONAL, ELSE_IF_CONDITIONAL, IF_CONDITIONALFields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRule(OpRule rule, int priority, StorageZoneRules szr) addRule(OpRule rule, StorageZoneRules szr) clone()Creates a new object of the same class as this object.getActiveRules(RunTimeStep rts, List rList) gets the list of active OpRules used by this conditionalvoidgetActiveTSRecordProxies(List list, int iotype) getAllRuleRefs(int controllerIndex, int ruleRefIndex, List refList) getConditionalBlocks(List<RssConditionalBlock> conditionalBlockList) get the ConditionalBlocks used by this ConditionalgetControllerRules(int controllerId, List ruleList) adds all rules used in this operation set to the given ListvoidgetElementDependencies(RssSystem sys, Element sourceElem, List<Element> lastElemList) Examine all conditional items referenced in this conditional block to determine any elements referenced by conditional value tests.Gets the ReservoirOp that owns the parent.override to return correct Parent elementgetPrimaryRules(List ruleList) gets the list of OpRules held directy by zonevoidgetReferencedStateVariables(List svlist) adds all StateVariables refereced by conditionals to the given ListgetRuleRefs(List<OpRuleRef> ruleRefList) gets the unique list of OpRuleRefs used by this conditionalgets the unique list of OpRules used by this conditionalbooleanprotected voidprintErrorMessage(String msg) voidremoveAllConditionalBlockRefs(int cbBlockIndex) voidremoveAllRuleRefs(int controllerIndex, int ruleRefIndex) booleanvoidremoveControllerRefs(int ctrlId) removeRule(OpRule oprule) Removes a RuleReference from this object and returns it to the caller.removeRule(OpRuleRef opruleRef) Removes a RuleReference from this object and returns it to the caller.booleanvoidvoidMethods inherited from class hec.model.Conditional
addConditionalBlock, addConditionalItem, clearConditionalItems, conditionalTreeToString, decreaseConditionalObjectPriority, deleteConditionalBlock, evaluate, getChildCount, getConditionalChildren, getConditionalItems, getConditionalObjects, getConditionalObjects, getConditionalType, getConditionalTypeString, getContitionalBlocks, getFieldObject, getParent, increaseConditionalObjectPriority, moveToBottomPriority, moveToTopPriority, setFieldObject, setParent, setTreeNodeExpanded, shouldTreeNodeExpand, toStringMethods inherited from class hec.lang.NamedType
addModifiableListener, compareTo, fireModifiedStateChanged, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, readResolve, removeModifiableListener, rename, set, setDescription, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, update, useRecursiveModifiedTestMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Constructor Details
-
RssConditional
public RssConditional() -
RssConditional
public RssConditional(int type)
-
-
Method Details
-
initializeCompute
- Overrides:
initializeComputein classConditional
-
getReferencedStateVariables
adds all StateVariables refereced by conditionals to the given List -
clone
Description copied from class:NamedTypeCreates a new object of the same class as this object.
It then initializes each of the new object's fields by assigning it the same value as the corresponding field in this object. No
constructor is called.- Overrides:
clonein classConditional
-
updateTSProxyList
public void updateTSProxyList() -
getActiveTSRecordProxies
-
getElementDependencies
Examine all conditional items referenced in this conditional block to determine any elements referenced by conditional value tests. Add these referenced elements to the given List. Elements should only be added once to the given list.- Parameters:
lastElemList- list to contain the referenced elements
-
updateParentData
public void updateParentData()- Overrides:
updateParentDatain classConditional
-
getElementOp
Description copied from interface:ZoneObjectParentGets the ReservoirOp that owns the parent.- Specified by:
getElementOpin interfaceZoneObjectParent- Returns:
- the ReservoirOp
-
removeRule
Removes a RuleReference from this object and returns it to the caller. If nothing was removed than a null value is returned.- Parameters:
oprule- the rule to remove- Returns:
- the removed RuleRef or null
-
removeRule
Removes a RuleReference from this object and returns it to the caller. If nothing was removed than a null value is returned.- Parameters:
ruleRefIndex-- Returns:
- the removed RuleRef or null
-
getActiveRules
gets the list of active OpRules used by this conditional -
getPrimaryRules
gets the list of OpRules held directy by zone -
getRules
gets the unique list of OpRules used by this conditional -
getRuleRefs
gets the unique list of OpRuleRefs used by this conditional- Parameters:
ruleRefList- adds OpRuleRefs to, if null creates it- Returns:
- the list of OpRuleRefs
-
getAllRuleRefs
-
getControllerRules
adds all rules used in this operation set to the given List -
getConditionalBlocks
public List<RssConditionalBlock> getConditionalBlocks(List<RssConditionalBlock> conditionalBlockList) get the ConditionalBlocks used by this Conditional- Parameters:
conditionalBlockList-- Returns:
-
removeControllerRefs
public void removeControllerRefs(int ctrlId) -
removeAllRuleRefs
public void removeAllRuleRefs(int controllerIndex, int ruleRefIndex) -
removeAllConditionalBlockRefs
public void removeAllConditionalBlockRefs(int cbBlockIndex) -
removeCondtionalObject
- Overrides:
removeCondtionalObjectin classConditional
-
addRule
-
addRule
-
addRule
-
addConditionalBlock
- Parameters:
ref-
-
printErrorMessage
- Overrides:
printErrorMessagein classConditional- Parameters:
string-
-
getParentElement
Description copied from class:Conditionaloverride to return correct Parent element- Overrides:
getParentElementin classConditional- Returns:
-
updateConditionaBlockWithRef
- Parameters:
cblock-ref-
-