Package hec.rss.model
Class SystemOpRule
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.rss.model.SystemOpRule
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable,Cloneable,Comparable,Observer,rma.lang.Modifiable
- Direct Known Subclasses:
SystemFlowLimitOpRule
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:
-
Field Summary
Fields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorSystemOpRule(int index, String name, String description) SystemOpRule(SystemOpController parent, int index, String name, String description) -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a copy of a the SystemOpRule.getFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.intvoidsetController(SystemOpController controller) booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.Methods inherited from class hec.lang.NamedType
addModifiableListener, compareTo, fireModifiedStateChanged, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, readResolve, removeModifiableListener, rename, set, setDescription, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, toString, update, useRecursiveModifiedTestMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Constructor Details
-
SystemOpRule
public SystemOpRule()Default constructor -
SystemOpRule
-
SystemOpRule
-
-
Method Details
-
setController
-
getUnitSystem
public int getUnitSystem() -
clone
Creates a copy of a the SystemOpRule. The pointer to the owner class, ReservoirSysOp is passed as a reference to the cloned object.- Overrides:
clonein classNamedType- Throws:
CloneNotSupportedException
-
getFieldObject
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- Overrides:
getFieldObjectin classNamedType- Parameters:
fld- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessorThis allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObjectin interfaceFieldAccessor- Overrides:
setFieldObjectin classNamedType- Parameters:
fld- The java field object representing the member field to be setfobj- The data to set in that field- Returns:
- returns true if successful
-