Package hec.rss.model

Class RssConditional

All Implemented Interfaces:
AsciiSerializable, FieldAccessor, ZoneObjectParent, Serializable, Cloneable, Comparable, Observer, rma.lang.Modifiable

public class RssConditional extends Conditional implements ZoneObjectParent

Title: Hec Java Development

Description:

Copyright: Copyright (c) 2003

Company:

See Also:
  • Constructor Details

    • RssConditional

      public RssConditional()
    • RssConditional

      public RssConditional(int type)
  • Method Details

    • initializeCompute

      public boolean initializeCompute(RunTimeWindow rtw)
      Overrides:
      initializeCompute in class Conditional
    • getReferencedStateVariables

      public void getReferencedStateVariables(List svlist)
      adds all StateVariables refereced by conditionals to the given List
    • clone

      public RssConditional clone()
      Description copied from class: NamedType
      Creates 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:
      clone in class Conditional
    • updateTSProxyList

      public void updateTSProxyList()
    • getActiveTSRecordProxies

      public void getActiveTSRecordProxies(List list, int iotype)
    • getElementDependencies

      public void getElementDependencies(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. 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:
      updateParentData in class Conditional
    • getElementOp

      public ElementOp getElementOp()
      Description copied from interface: ZoneObjectParent
      Gets the ReservoirOp that owns the parent.
      Specified by:
      getElementOp in interface ZoneObjectParent
      Returns:
      the ReservoirOp
    • removeRule

      public OpRuleRef removeRule(OpRule oprule)
      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

      public OpRuleRef removeRule(OpRuleRef opruleRef)
      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

      public List getActiveRules(RunTimeStep rts, List rList)
      gets the list of active OpRules used by this conditional
    • getPrimaryRules

      public List getPrimaryRules(List ruleList)
      gets the list of OpRules held directy by zone
    • getRules

      public List getRules(List rList)
      gets the unique list of OpRules used by this conditional
    • getRuleRefs

      public List<OpRuleRef> getRuleRefs(List<OpRuleRef> ruleRefList)
      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

      public List getAllRuleRefs(int controllerIndex, int ruleRefIndex, List refList)
    • getControllerRules

      public List getControllerRules(int controllerId, List ruleList)
      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

      public boolean removeCondtionalObject(Object obj)
      Overrides:
      removeCondtionalObject in class Conditional
    • addRule

      public OpRuleRef addRule(OpRule rule, StorageZoneRules szr)
    • addRule

      public OpRuleRef addRule(OpRule rule, int priority, StorageZoneRules szr)
    • addRule

      public OpRuleRef addRule(OpRule rule)
    • addConditionalBlock

      public void addConditionalBlock(ConditionalBlockRef ref)
      Parameters:
      ref -
    • printErrorMessage

      protected void printErrorMessage(String msg)
      Overrides:
      printErrorMessage in class Conditional
      Parameters:
      string -
    • getParentElement

      public NamedType getParentElement()
      Description copied from class: Conditional
      override to return correct Parent element
      Overrides:
      getParentElement in class Conditional
      Returns:
    • updateConditionaBlockWithRef

      public boolean updateConditionaBlockWithRef(ConditionalBlock cblock, ConditionalBlockRef ref)
      Parameters:
      cblock -
      ref -