Package hec.rss.model
Class OpControllerZones
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.rss.model.OpControllerZones
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable,Cloneable,Comparable,Observer,rma.lang.Modifiable
Set of zones with rules defined for a controller within an OpSet.
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddZoneRule(StorageZone zone, OpRule rule) clone()Creates a new object of the same class as this object.voiddeleteZone(int index) Delete storage zone rules by indexgets a controllerzones object, creating it if necessarygetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.getOpSet()gets the rule references for the given zone sorted in priority ordergetSortedZoneRuleRefs(StorageZone zone, boolean ascend) gets the rule references for the given zone sorted in priority ordergetZoneRuleRefs(StorageZone zone, Vector rvec) gets the rule references for the given zone, appending them to the given vectorvoidremoveRuleRef(int zoneIndex, int ruleRefIndex) remove a rule reference from a storage zone rule set for a controllerbooleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidMethods 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
-
OpControllerZones
public OpControllerZones() -
OpControllerZones
-
-
Method Details
-
removeRuleRef
public void removeRuleRef(int zoneIndex, int ruleRefIndex) remove a rule reference from a storage zone rule set for a controller -
deleteZone
public void deleteZone(int index) Delete storage zone rules by index -
getSortedZoneRuleRefs
gets the rule references for the given zone sorted in priority order -
getSortedZoneRuleRefs
gets the rule references for the given zone sorted in priority order -
getZoneRuleRefs
gets the rule references for the given zone, appending them to the given vector -
getControllerZones
gets a controllerzones object, creating it if necessary -
addZoneRule
-
getController
-
getOpSet
-
setOpSet
-
clone
Creates a new object of the same class as this object.
It then initializes each of the new object's fields by assigning it the same value as the corresponding field in this object. No
constructor is called. -
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
-