public class ResSystemOpSet extends NamedType implements AsciiSerializable, java.io.Serializable, hec.rss.model.reports.AltInputReportInfc
_description, _index, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT| Constructor and Description |
|---|
ResSystemOpSet()
Default Constructor.
|
ResSystemOpSet(int idx,
java.lang.String name,
java.lang.String description) |
| Modifier and Type | Method and Description |
|---|---|
SystemStorageZone |
addNewSystemStorageZone(java.lang.String name,
java.lang.String description)
Creates a new SystemStorageZone, adds it to the internal list of storageZones are returns a
reference to the caller.
|
void |
addReservoirOpSet(OpSet opSet)
Creates a reference to a reservoir opset.
|
void |
addReservoirReferenceSpace()
Addes the space for reservoir data.
|
java.lang.Object |
clone()
Returns copy of this ResSystemOpSet.
|
void |
copySystemStorageZones(ResSystemOpSet opSet)
Copies the SystemStorageZones from the opSet parameter.
|
void |
deleteOpSetRefByReservoir(ReservoirElement elem)
Deletes OpSetRef's that reference and operation set in the given reservoir
|
void |
deleteOpSetRefByReservoirID(int resID)
Deletes OpSetRef's that reference and operation set in the reservoir indexed by the given ID
|
void |
deleteReservoirReferences(int reservoirID)
Deletes all refenences to a reservoir in this System Operation Set.
|
void |
deleteSystemStorageZone(int id)
Deletes a zone from the Reservoir System Operation Set.
|
boolean |
doesStorageZoneNameExist(java.lang.String name)
Tests to see if there is a storage zone in this System Operation Set with this name.
|
java.lang.Object |
getFieldObject(java.lang.reflect.Field fld)
This method allows access to java.lang.reflect.Field objects within the implementing
class.
|
double |
getMaxReservoirStorage(int resid)
Get the the largest storage value defined in each reservoir
|
double |
getMaxSystemStorage()
Get the maxium total system storage based on the largest storage
value defined in each reservoir
|
int |
getNextStorageZoneIndex()
Calculates the next index value for a storage zone
|
OpSetRef[] |
getOpSetReferenceArray()
Returns an array of reservoir opset references.
|
OpSetRef |
getOpSetReferences(int id)
Returns an opset refefence represented by the given ID.
|
OpSetRef |
getOpSetReferences(ReservoirElement resElem)
Returns an opset reference for a given Reservoir Element.
|
ReservoirElement |
getReservoir(int id)
Returns the resevoir for the given reservoir ID.
|
ReservoirSysOp |
getReservoirSystemOp() |
double[][] |
getResStoragePattern(HecTime htime)
Get the table of reservoir storage vs system storage for the given time.
|
double |
getResZoneStorage(HecTime htime,
int syszoneId,
int resid)
Get the total storage for the a system storage zone at a specific time.
|
SystemStorageZone |
getStorageZone(int id)
get an existing storage zone by id
|
SystemStorageZone |
getStorageZone(java.lang.String name)
get an existing storage zone by name
|
int[] |
getStorageZoneIDs()
Returns the list of IDs for all SystemStorageZones owned by this SystemOpSet.
|
SystemStorageDefinition |
getSystemStorageDefinition() |
double |
getSysZoneStorage(HecTime htime,
int syszoneId)
Get the total storage for the a system storage zone at a specific time.
|
void |
outputReport(hec.rss.model.reports.AlternativeInputReport report,
org.jdom.Element elem)
Alternative Input Report Interface for data.
|
void |
removeAllRuleRef(SystemOpRule rule)
Deletes all SystemOpRule References for the specified Rule
|
void |
removeRuleRef(SystemStorageZone zone,
SystemOpRule rule)
Deletes a rule reference for a given zone
|
boolean |
setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
This allows access to fields withing the implementing object to set there data.
|
void |
setParent(ReservoirSysOp sysOp)
Sets the parent or owner of this Operation Set.
|
java.lang.String |
toString()
Returns the name of this object.
|
addModifiableListener, compareTo, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, removeModifiableListener, rename, set, setDescription, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, update, useRecursiveModifiedTestpublic ResSystemOpSet()
public ResSystemOpSet(int idx,
java.lang.String name,
java.lang.String description)
public double getSysZoneStorage(HecTime htime, int syszoneId)
htime - HecTime for which the storage value is to be determinedsyszoneid - index of the SystemStorageZonepublic double getResZoneStorage(HecTime htime, int syszoneId, int resid)
htime - HecTime for which the storage value is to be determinedsyszoneId - index of the SystemStorageZoneresid - index of the ReservoirElementpublic double getMaxSystemStorage()
public double getMaxReservoirStorage(int resid)
public SystemStorageDefinition getSystemStorageDefinition()
public double[][] getResStoragePattern(HecTime htime)
htime - Hectime at which the table is to be developedpublic void setParent(ReservoirSysOp sysOp)
public ReservoirSysOp getReservoirSystemOp()
public ReservoirElement getReservoir(int id)
public java.lang.Object clone()
public void copySystemStorageZones(ResSystemOpSet opSet)
public void deleteSystemStorageZone(int id)
public SystemStorageZone addNewSystemStorageZone(java.lang.String name, java.lang.String description)
public SystemStorageZone getStorageZone(int id)
public SystemStorageZone getStorageZone(java.lang.String name)
public int[] getStorageZoneIDs()
public boolean doesStorageZoneNameExist(java.lang.String name)
public void removeRuleRef(SystemStorageZone zone, SystemOpRule rule)
public void removeAllRuleRef(SystemOpRule rule)
public int getNextStorageZoneIndex()
public void addReservoirReferenceSpace()
public void deleteReservoirReferences(int reservoirID)
- - reservoirID the id of the reservoir to delete all references topublic OpSetRef[] getOpSetReferenceArray()
public OpSetRef getOpSetReferences(int id)
OpSetpublic void deleteOpSetRefByReservoir(ReservoirElement elem)
public void deleteOpSetRefByReservoirID(int resID)
public OpSetRef getOpSetReferences(ReservoirElement resElem)
hec.rss.model.ReservoirElement - ReservoirElement,
OpSetpublic void addReservoirOpSet(OpSet opSet)
public java.lang.String toString()
public java.lang.Object getFieldObject(java.lang.reflect.Field fld)
FieldAccessorgetFieldObject in interface FieldAccessorgetFieldObject in class NamedTypefld - The field to get.public boolean setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
FieldAccessorsetFieldObject in interface FieldAccessorsetFieldObject in class NamedTypefld - The java field object representing the member field to be setfobj - The data to set in that fieldpublic void outputReport(hec.rss.model.reports.AlternativeInputReport report,
org.jdom.Element elem)
hec.rss.model.reports.AltInputReportInfcoutputReport in interface hec.rss.model.reports.AltInputReportInfc