Package hec.rss.model
Class SystemOpRuleRef
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.rss.model.SystemOpRuleRef
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable,Cloneable,Comparable,Observer,rma.lang.Modifiable
public class SystemOpRuleRef
extends NamedType
implements AsciiSerializable, Serializable, Cloneable
SystemOpRuleRef - This class is a wrapper class that contains a reference to a System
Operation Rule. Rules are created independant of the Storage Zone, so the Storage Zones
contain a set of SystemOpRuleRef's which reference rules.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SystemStorageZoneprotected SystemOpRuleprotected intFields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT -
Constructor Summary
ConstructorsConstructorDescriptionSystemOpRuleRef(SystemStorageZone parent, SystemOpRule sysOpRule) Constructor for the OpSetRef. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyRuleToReservoir(ReservoirElement resElem) This method takes a ReservoirElement value and marks that we want to apply the rule referenced by this object to the given Reservoir Element.voidapplyRuleToReservoir(ReservoirElement reselem, boolean bool) This method takes a ReservoirElement and a boolean value.voidclone()Returns a copy of this object.booleandoesRuleApplyToReservoir(int resID) booleandoesRuleApplyToReservoir(ReservoirElement resElem) getFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.floatgetRule()Deprecated.intReturns the index of the rule that is being referencedbooleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidvoidsetPriority(float p) toString()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, update, useRecursiveModifiedTestMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Field Details
-
_sysOpRule
-
_sysOpRuleID
protected int _sysOpRuleID -
_storageZone
-
-
Constructor Details
-
SystemOpRuleRef
public SystemOpRuleRef() -
SystemOpRuleRef
Constructor for the OpSetRef. Sets the parent (the class who ownes this class) and the reference to the Operation Set
-
-
Method Details
-
setParent
-
applyRuleToReservoir
This method takes a ReservoirElement and a boolean value. The boolean value marks whether we want to apply the rule referenced by this object to the given Reservoir Element.- See Also:
-
applyRuleToReservoir
This method takes a ReservoirElement value and marks that we want to apply the rule referenced by this object to the given Reservoir Element.- See Also:
-
doesRuleApplyToReservoir
public boolean doesRuleApplyToReservoir(int resID) -
doesRuleApplyToReservoir
-
clearRuleReservoirApplications
public void clearRuleReservoirApplications() -
getRuleIndex
public int getRuleIndex()Returns the index of the rule that is being referenced -
getRule
Deprecated.Retrieves the System Operation Rule References by this object -
toString
-
clone
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:
clonein classNamedType- Throws:
CloneNotSupportedException
-
setPriority
public void setPriority(float p) -
getPriority
public float getPriority() -
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
-