Package hec.rss.model
Class ZoneBounds
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.rss.model.ZoneBounds
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable,Cloneable,Comparable,Observer,rma.lang.Modifiable
Within any Storage zone for a Reservoir System, a lower and upper bound storage zone for each
reservoir is chosen. This class retains the index to the reservoir and the ids for each storage
zone that is used. Upon retrieval this class can perform a lookup and retrieve the correct
storage zone.
- 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 TypeMethodDescriptionclone()Returns a copy of this object.getFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.Retrieves the lower bound storage zone.intRetrieves the upper bound storage zone.booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetLowerBound(StorageZone szone) Sets the lowerBound for a reservoir in a system of reservoirsvoidsetParent(SystemStorageZone parent) Sets the parent owner for this objectvoidsetUpperBound(StorageZone szone) Sets the upper storage zone bound for a reservoir in a system of reservoirsMethods 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
-
ZoneBounds
public ZoneBounds() -
ZoneBounds
-
-
Method Details
-
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
-
getReservoirID
public int getReservoirID() -
setUpperBound
Sets the upper storage zone bound for a reservoir in a system of reservoirs -
setLowerBound
Sets the lowerBound for a reservoir in a system of reservoirs -
getLowerBound
Retrieves the lower bound storage zone. Returns null one does not exist. -
getUpperBound
Retrieves the upper bound storage zone. Returns null one does not exist. -
setParent
Sets the parent owner for this object -
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
-