Package hec.rss.model

Class OpControllerZones

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

public class OpControllerZones extends NamedType implements Cloneable
Set of zones with rules defined for a controller within an OpSet.
See Also:
  • Constructor Details

    • OpControllerZones

      public OpControllerZones()
    • OpControllerZones

      public OpControllerZones(OpSet opset, OpController controller)
  • Method Details

    • removeRuleRef

      public void removeRuleRef(int zoneIndex, int ruleRefIndex)
      remove a rule reference from a storage zone rule set for a controller
    • deleteZone

      public void deleteZone(int index)
      Delete storage zone rules by index
    • getSortedZoneRuleRefs

      public Vector getSortedZoneRuleRefs(StorageZone zone)
      gets the rule references for the given zone sorted in priority order
    • getSortedZoneRuleRefs

      public Vector getSortedZoneRuleRefs(StorageZone zone, boolean ascend)
      gets the rule references for the given zone sorted in priority order
    • getZoneRuleRefs

      public Vector getZoneRuleRefs(StorageZone zone, Vector rvec)
      gets the rule references for the given zone, appending them to the given vector
    • getControllerZones

      public StorageZoneRules getControllerZones(StorageZone zone)
      gets a controllerzones object, creating it if necessary
    • addZoneRule

      public OpRuleRef addZoneRule(StorageZone zone, OpRule rule)
    • getController

      public OpController getController()
    • getOpSet

      public OpSet getOpSet()
    • setOpSet

      public void setOpSet(OpSet opset)
    • 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.
      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 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