Package hec.model

Class AbstractConditionalBlockRef

java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.model.AbstractConditionalBlockRef
All Implemented Interfaces:
hec.io.AsciiSerializable, Serializable, Cloneable, Comparable, Observer, Modifiable

public abstract class AbstractConditionalBlockRef extends NamedType implements hec.io.AsciiSerializable
See Also:
  • Field Details

    • _conditionalBlock

      protected transient ConditionalBlock _conditionalBlock
    • m_conditionalBlockId

      protected int m_conditionalBlockId
  • Constructor Details

    • AbstractConditionalBlockRef

      public AbstractConditionalBlockRef()
    • AbstractConditionalBlockRef

      public AbstractConditionalBlockRef(ConditionalBlock cb)
      Parameters:
      cb -
  • Method Details

    • getConditionalBlockId

      public int getConditionalBlockId()
    • getName

      public String getName()
      Description copied from class: NamedType
      get the NameType's name
      Overrides:
      getName in class NamedType
      Returns:
      the name
    • toString

      public String toString()
      Overrides:
      toString in class NamedType
    • update

      public void update(Observable o, Object arg)
      This is a callback method that gets called when any object that this reference is listening too is changed.
      Specified by:
      update in interface Observer
      Overrides:
      update in class NamedType
    • getFieldObject

      public Object getFieldObject(Field fld)
      Specified by:
      getFieldObject in interface hec.io.AsciiSerializable
      Overrides:
      getFieldObject in class NamedType
    • setFieldObject

      public boolean setFieldObject(Field fld, Object fobj)
      Specified by:
      setFieldObject in interface hec.io.AsciiSerializable
      Overrides:
      setFieldObject in class NamedType
    • getConditionalBlock

      public abstract ConditionalBlock getConditionalBlock()