Package hec.rss.model

Class SystemOpRuleRef

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

public class SystemOpRuleRef extends NamedType implements AsciiSerializable, Serializable, Cloneable
SystemOpRuleRef - This class is a wrapper class that contains a reference to a System Operation Rule. Rules are created independant of the Storage Zone, so the Storage Zones contain a set of SystemOpRuleRef's which reference rules.
See Also:
  • Field Details

    • _sysOpRule

      protected transient SystemOpRule _sysOpRule
    • _sysOpRuleID

      protected int _sysOpRuleID
    • _storageZone

      protected SystemStorageZone _storageZone
  • Constructor Details

    • SystemOpRuleRef

      public SystemOpRuleRef()
    • SystemOpRuleRef

      public SystemOpRuleRef(SystemStorageZone parent, SystemOpRule sysOpRule)
      Constructor for the OpSetRef. Sets the parent (the class who ownes this class) and the reference to the Operation Set
  • Method Details

    • setParent

      public void setParent(SystemStorageZone ssz)
    • applyRuleToReservoir

      public void applyRuleToReservoir(ReservoirElement reselem, boolean bool)
      This method takes a ReservoirElement and a boolean value. The boolean value marks whether we want to apply the rule referenced by this object to the given Reservoir Element.
      See Also:
    • applyRuleToReservoir

      public void applyRuleToReservoir(ReservoirElement resElem)
      This method takes a ReservoirElement value and marks that we want to apply the rule referenced by this object to the given Reservoir Element.
      See Also:
    • doesRuleApplyToReservoir

      public boolean doesRuleApplyToReservoir(int resID)
    • doesRuleApplyToReservoir

      public boolean doesRuleApplyToReservoir(ReservoirElement resElem)
    • clearRuleReservoirApplications

      public void clearRuleReservoirApplications()
    • getRuleIndex

      public int getRuleIndex()
      Returns the index of the rule that is being referenced
    • getRule

      public SystemOpRule getRule()
      Deprecated.
      Retrieves the System Operation Rule References by this object
    • toString

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

      public Object clone() throws CloneNotSupportedException
      Returns a copy of this object. The System Rule Id's are copied but a reference between the owner class (Parent) and the System Rule are passed to the clone(); In other words the clone points to the same parent and System Rule as this class
      Overrides:
      clone in class NamedType
      Throws:
      CloneNotSupportedException
    • setPriority

      public void setPriority(float p)
    • getPriority

      public float getPriority()
    • 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