Package hec.rss.model

Class StorageZoneRef

java.lang.Object
hec.rss.model.StorageZoneRef
All Implemented Interfaces:
AsciiSerializable, FieldAccessor, Serializable, Cloneable

public class StorageZoneRef extends Object implements Cloneable, AsciiSerializable
The Class StorageZoneRef.
See Also:
  • Constructor Details

    • StorageZoneRef

      public StorageZoneRef(StorageZone zone)
      Instantiates a new storage zone ref.
      Parameters:
      zone - the zone
    • StorageZoneRef

      public StorageZoneRef()
      Instantiates a new storage zone ref.
  • Method Details

    • getStorageZone

      public StorageZone getStorageZone()
      Gets the storage zone.
      Returns:
      the storage zone
    • setActive

      public void setActive(boolean set)
    • isActive

      public boolean isActive()
    • setTolerance

      public void setTolerance(double tol)
      Sets the tolerance.
      Parameters:
      tol - the new tolerance
    • getTolerance

      public double getTolerance()
      Gets the tolerance.
      Returns:
      the tolerance
    • writeData

      public String writeData(BufferedWriter writer, String ruleRefString)
      Write data.
      Parameters:
      writer - the writer
      ruleRefString - the rule ref string
      Returns:
      the string
    • writeInitString

      public String writeInitString(String ruleRefString)
    • getOpsetId

      public int getOpsetId()
    • setOpID

      public void setOpID(int id)
    • getReservoirIndex

      public int getReservoirIndex()
    • setReservoirIndex

      public void setReservoirIndex(int id)
    • getZoneIndex

      public int getZoneIndex()
    • setZoneIndex

      public void setZoneIndex(int id)
    • parseData

      public boolean parseData(RssSystem network, String data)
      Parses the data.
      Parameters:
      data - the data
      alt - the alt
      Returns:
      true, if successful
    • parseData

      public boolean parseData(String data)
      Parses the data.
      Parameters:
      data - the data
      Returns:
      true, if successful
    • updateZone

      public void updateZone(RssAlt rssAlt)
      Update zone.
      Parameters:
      rssAlt - the rss alt
    • setZone

      public void setZone(ReservoirElement res)
    • clone

      public Object clone()
      Overrides:
      clone in class 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
      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
      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