Package hec.rss.model

Class ZoneBounds

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

public class ZoneBounds extends NamedType implements AsciiSerializable, Serializable
Within any Storage zone for a Reservoir System, a lower and upper bound storage zone for each reservoir is chosen. This class retains the index to the reservoir and the ids for each storage zone that is used. Upon retrieval this class can perform a lookup and retrieve the correct storage zone.
See Also:
  • Constructor Details

    • ZoneBounds

      public ZoneBounds()
    • ZoneBounds

      public ZoneBounds(int resID, int opsetID, StorageZone upper, StorageZone lower)
  • Method Details

    • 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
    • getReservoirID

      public int getReservoirID()
    • setUpperBound

      public void setUpperBound(StorageZone szone)
      Sets the upper storage zone bound for a reservoir in a system of reservoirs
    • setLowerBound

      public void setLowerBound(StorageZone szone)
      Sets the lowerBound for a reservoir in a system of reservoirs
    • getLowerBound

      public StorageZone getLowerBound()
      Retrieves the lower bound storage zone. Returns null one does not exist.
    • getUpperBound

      public StorageZone getUpperBound()
      Retrieves the upper bound storage zone. Returns null one does not exist.
    • setParent

      public void setParent(SystemStorageZone parent)
      Sets the parent owner for this object
    • 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