Package hec.rss.model
Class SystemStorageZone
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.rss.model.SystemStorageZone
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,AltInputReportInfc,Serializable,Cloneable,Comparable,Observer,rma.lang.Modifiable
public class SystemStorageZone
extends NamedType
implements Serializable, AsciiSerializable, Cloneable, AltInputReportInfc
SystemStorageZone - Represents the storage zone model for a system of reservoirs. The
System storage zone is a combination of upper and lower bound storage zone for all
reservoirs in the system. It also contains a list of %storage for each reservoir in
the system.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ResSystemOpSetA reference ot the parent owner of this operation setFields 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 TypeMethodDescriptionvoidaddStorageZoneBounds(ReservoirElement elem, ZoneBounds zb) adds a zone bounds to this storage zone.voidadds a system reservoir storage to this storage zone.Addes a rule reference to the storage zone.clone()Returns a copy of this object.voiddeleteSystemStorage(int resID) Deletes a Percentange storage that is indexed by then given reservior indexvoiddeleteZoneBounds(int resID) Deletes a Zone Bounds that references opsets indexed by the given reservoir indexReturns a list of Zone Bounds.getFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.intgetReservoir(int id) Returns the resevoir for the given reservoir ID.getSortedZoneRuleRefs(boolean ascend) gets the rule references sorted in priority ordergetStorageZoneBounds(int resID) Returns a ZoneBounds object for a give reservoir IDgetSystemStorage(int resid) Returns a SystemStorage object for a given reservior idvoidoutputReport(AlternativeInputReport report, org.jdom.Element elem) Alternative Input Report Interface for data.voidremoveRuleRef(SystemOpRule rule) Removes a SystemOpRuleRef for the corresponding SystemOpRulebooleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetParent(ResSystemOpSet parent) Sets the parent owner of this objecttoString()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
-
_systemOpSet
A reference ot the parent owner of this operation set
-
-
Constructor Details
-
SystemStorageZone
public SystemStorageZone() -
SystemStorageZone
-
-
Method Details
-
getNumResevoirStorages
public int getNumResevoirStorages() -
getReservoir
Returns the resevoir for the given reservoir ID. -
getSystemOpSet
-
setParent
Sets the parent owner of this object -
toString
-
getSystemStorage
Returns a SystemStorage object for a given reservior id -
deleteSystemStorage
public void deleteSystemStorage(int resID) Deletes a Percentange storage that is indexed by then given reservior index -
deleteZoneBounds
public void deleteZoneBounds(int resID) Deletes a Zone Bounds that references opsets indexed by the given reservoir index -
getStorageZoneBounds
Returns a ZoneBounds object for a give reservoir ID -
getAllStorageZoneBounds
Returns a list of Zone Bounds. Not sorted in any order -
getDefaultZoneBounds
-
addSystemReservoirStorage
adds a system reservoir storage to this storage zone. Overwrites any object already stored for this reservoir. -
addStorageZoneBounds
adds a zone bounds to this storage zone. Will overwrite any zone bounds used by this reservoir -
addSystemRuleReference
Addes a rule reference to the storage zone. -
removeRuleRef
Removes a SystemOpRuleRef for the corresponding SystemOpRule -
getSortedZoneRuleRefs
gets the rule references sorted in priority order -
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 -
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
-
outputReport
Description copied from interface:AltInputReportInfcAlternative Input Report Interface for data.- Specified by:
outputReportin interfaceAltInputReportInfc
-