Package hec.rss.model

Class ConditionalBlockRef

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

public class ConditionalBlockRef extends AbstractConditionalBlockRef implements ZoneObject, AsciiSerializable, Observer, AltInputReportInfc

Title: Hec Java Development

Description:

Copyright: Copyright (c) 2003

Company:

See Also:
  • Constructor Details

  • Method Details

    • getReferencedStateVariables

      public void getReferencedStateVariables(List svlist)
      adds all StateVariables refereced by conditional block to the given List
      Specified by:
      getReferencedStateVariables in interface ZoneObject
    • setParent

      public void setParent(ZoneObjectParent p)
      Specified by:
      setParent in interface ZoneObject
    • getParent

      public ZoneObjectParent getParent()
    • getPriority

      public float getPriority()
      Specified by:
      getPriority in interface ZoneObject
    • setPriority

      public void setPriority(float priority)
      Specified by:
      setPriority in interface ZoneObject
    • getConditionalBlock

      public ConditionalBlock getConditionalBlock()
      Specified by:
      getConditionalBlock in class AbstractConditionalBlockRef
    • removeRuleRef

      public void removeRuleRef(int ruleIndex)
      Specified by:
      removeRuleRef in interface ZoneObject
      Parameters:
      ruleIndex -
    • getActiveRuleRefs

      public List getActiveRuleRefs(RunTimeStep rts)
      Returns a list of rule refs that are active based on a given input.
      Specified by:
      getActiveRuleRefs in interface ZoneObject
      Returns:
    • getRuleRefs

      public List getRuleRefs()
      Returns a list of all rule refs.
      Specified by:
      getRuleRefs in interface ZoneObject
      Returns:
    • clone

      public Object clone()
      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.
      Specified by:
      clone in interface ZoneObject
      Overrides:
      clone in class NamedType
    • getFieldObject

      public Object getFieldObject(Field fld)
      Description copied from interface: FieldAccessor
      This method allows access to java.lang.reflect.Field objects within the implementing class.
      Specified by:
      getFieldObject in interface FieldAccessor
      Overrides:
      getFieldObject in class AbstractConditionalBlockRef
      Parameters:
      fld - The field to get.
      Returns:
      The data object that is stored in the given field
    • setFieldObject

      public boolean setFieldObject(Field fld, Object fobj)
      Description copied from interface: FieldAccessor
      This allows access to fields withing the implementing object to set there data.
      Specified by:
      setFieldObject in interface FieldAccessor
      Overrides:
      setFieldObject in class AbstractConditionalBlockRef
      Parameters:
      fld - The java field object representing the member field to be set
      fobj - The data to set in that field
      Returns:
      returns true if successful
    • outputReport

      public void outputReport(AlternativeInputReport report, org.jdom.Element elem)
      Description copied from interface: AltInputReportInfc
      Alternative Input Report Interface for data.
      Specified by:
      outputReport in interface AltInputReportInfc
    • updateReference

      public void updateReference()
    • shouldTreeNodeExpand

      public boolean shouldTreeNodeExpand()
      Returns:
    • setTreeNodeExpanded

      public void setTreeNodeExpanded(boolean expanded)
      Parameters:
      expanded -
    • setDisabled

      public void setDisabled(boolean disabled)
      Parameters:
      disabled -
    • isDisabled

      public boolean isDisabled()