Package hec.rss.model

Class SystemOpRule

All Implemented Interfaces:
AsciiSerializable, FieldAccessor, Serializable, Cloneable, Comparable, Observer, rma.lang.Modifiable
Direct Known Subclasses:
SystemFlowLimitOpRule

public class SystemOpRule extends NamedType implements Serializable, AsciiSerializable
SystemRule - This class defines a rule for an entire system of reservoirs. Rules can be defined for a Reservoir System Operations and can be assigned to any System Storage Zone created for a System of Reservoirs.
See Also:
  • Constructor Details

    • SystemOpRule

      public SystemOpRule()
      Default constructor
    • SystemOpRule

      public SystemOpRule(int index, String name, String description)
    • SystemOpRule

      public SystemOpRule(SystemOpController parent, int index, String name, String description)
  • Method Details

    • setController

      public void setController(SystemOpController controller)
    • getUnitSystem

      public int getUnitSystem()
    • clone

      public Object clone() throws CloneNotSupportedException
      Creates a copy of a the SystemOpRule. The pointer to the owner class, ReservoirSysOp is passed as a reference to the cloned object.
      Overrides:
      clone in class NamedType
      Throws:
      CloneNotSupportedException
    • 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