Package hec.model

Class AbstractConditionalBlockRef

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

public abstract class AbstractConditionalBlockRef extends NamedType implements 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)
      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 NamedType
      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 NamedType
      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
    • getConditionalBlock

      public abstract ConditionalBlock getConditionalBlock()