public class Storage extends Continuity implements hec.rss.model.reports.AltInputReportInfc
| Modifier and Type | Field and Description |
|---|---|
static double |
AREA_CONV |
static double |
AREA_CONV_ENGLISH |
static double |
AREA_CONV_SI |
static int[] |
DAYS_PER_MONTH |
static double |
DSDT_TO_Q |
static double |
DSDT_TO_Q_ENGLISH |
static double |
DSDT_TO_Q_SI |
static int |
EVAP_MONTHLY |
static int |
EVAP_NONE |
static int |
EVAP_TS |
static double |
EVAPLEN_CONV |
static double |
EVAPLEN_CONV_ENGLISH |
static double |
EVAPLEN_CONV_SI |
static int |
FIRST_HINDCAST_COND |
static int |
KNOWN_ELEVATION_CONST |
static int |
KNOWN_ELEVATION_TS |
static int |
KNOWN_STORAGE_CONST |
static int |
KNOWN_STORAGE_TS |
static int |
LAST_HINDCAST_COND |
static int |
SEEPAGE_CONST |
static int |
SEEPAGE_FUNC |
static int |
SEEPAGE_NONE |
_description, _index, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENTRTN_CANCELED, RTN_NOPROBLEM, RTN_OPCHANGE, RTN_PROBLEMCUMLOC_OUTPUT_DATA, GRPID_DIVERSION, GRPID_JUNCTION, GRPID_REACH, GRPID_RESERVOIR, HINDCAST_IDS, HOLDOUT_OUTPUT_DATA, INPUT_DATA, OUTPUT_DATA, PULSE_OUTPUT_DATA, UNREG_OUTPUT_DATA, VID_ADJPARAM_FLOW, VID_CAPACITY_FACTOR, VID_CTRLOUT_HINDFLW, VID_CTRLOUT_RELEASE, VID_DAM_LEAK, VID_DAM_RELEASE, VID_DIV_FLOW, VID_DIV_FLOW_ROUTED, VID_DIV_HINDFLW, VID_DIV_RELEASE, VID_DIVOUT_FLOW, VID_DIVOUT_FLOW_ROUTED, VID_ENERGYREQUIRED_TSINPUT, VID_FIRST, VID_FOREBAY_ELEV, VID_FOREBAY_HEADLOSS, VID_GATE_OPENING, VID_GATE_PERCENTOPEN, VID_JUNC_ELEV, VID_JUNC_FLOW_CUMLOC, VID_JUNC_FLOW_DIV, VID_JUNC_FLOW_HOLD, VID_JUNC_FLOW_IN, VID_JUNC_FLOW_LIMIT, VID_JUNC_FLOW_LOCAL, VID_JUNC_FLOW_PULSE, VID_JUNC_FLOW_REG, VID_JUNC_FLOW_UNREG, VID_JUNC_FLOW_VIOL, VID_JUNC_HINDFLOW, VID_JUNC_INFLOW, VID_JUNC_INFLOW_LOCAL_TOTAL, VID_JUNC_STAGE, VID_JUNC_STAGE_LIMIT, VID_JUNC_STAGE_REG, VID_JUNC_STAGE_UNREG, VID_JUNC_STAGE_VIOL, VID_LAST, VID_NODE_FLOW, VID_NODE_HINDFLW, VID_NODE_HINDSTG, VID_NODE_KNOWNFLOW, VID_NODE_STAGE, VID_OPCTRL_CONSTRAINTID, VID_OPCTRL_DECISION, VID_OPCTRL_MAXLIMIT, VID_OPCTRL_MINLIMIT, VID_OPCTRL_RULEID, VID_OPCTRL_ZONEID, VID_OPRULE_FLOW_SPACE, VID_OPRULE_MAX, VID_OPRULE_MAX_STAGE, VID_OPRULE_MIN, VID_OPRULE_MIN_STAGE, VID_OPRULE_SPEC, VID_OPRULE_STOR_BAL, VID_OPRULE_STOR_BAL_INDEX, VID_OPRULE_VIOL_ELEV, VID_OPRULE_VIOL_FLOW, VID_OPRULE_VIOL_STAGE, VID_OPRULE_VIOL_STOR, VID_OPRULEFL_CUMLOC, VID_OPRULETS_TSINPUT, VID_OPSET_ACTIVEZONE, VID_OPSET_GC_ELEV, VID_OPSET_GC_STOR, VID_OPSET_KNOWNZONEELEV, VID_OPSET_PROJECTEDELEV, VID_OPSET_ZONEELEV, VID_OPSET_ZONESTOR, VID_OUTGRP_RELEASE, VID_POOL_AREA, VID_POOL_ELEV, VID_POOL_ELEVROC, VID_POOL_EVAP, VID_POOL_HINDELEV, VID_POOL_HINDSTOR, VID_POOL_HOLDOUT, VID_POOL_INFLOW, VID_POOL_INPUTEVAP, VID_POOL_NETINFLOW, VID_POOL_OUTFLOW, VID_POOL_SEEP, VID_POOL_STOR, VID_PULSE_BACKQ, VID_PULSE_PULSEQ, VID_PUMP_FLOWAVG, VID_PUMP_VOL, VID_PUMPRULE_FLOWAVG, VID_PUMPRULE_FLOWAVG_CAP, VID_PUMPRULE_FLOWINST, VID_PUMPRULE_FLOWINST_CAP, VID_PUMPRULE_HOURS, VID_PUMPRULE_HOURS_CAP, VID_PUMPRULE_NUMPUMP, VID_PUMPRULE_NUMPUMP_CAP, VID_PUMPRULE_UNITHOURS, VID_PUMPRULE_UNITHOURS_CAP, VID_PUMPRULE_VOL, VID_PUMPRULE_VOL_CAP, VID_PWR_CAPABILITY, VID_PWR_EFF, VID_PWR_ENGYGEN, VID_PWR_ENGYPATTERN, VID_PWR_ENGYPERGEN, VID_PWR_ENGYPERREQD, VID_PWR_ENGYREQD, VID_PWR_ENGYVIOL, VID_PWR_FLWPWR, VID_PWR_HDPWR, VID_PWR_HYDLSS, VID_PWR_MAXCAPACITY, VID_PWR_PER_BALGEN, VID_PWR_PER_GCGEN, VID_PWR_PER_MINPUMPGEN, VID_PWR_PER_MINRELGEN, VID_PWR_PER_POWGEN, VID_PWR_PER_PUMPGEN, VID_PWR_PLNTFAC, VID_PWR_PWRCAP, VID_PWR_REQUIRED, VID_PWR_SPILL, VID_PWR_VIOL, VID_RCH_SEEP, VID_REACH_FLOW_CUMLOC, VID_REACH_FLOW_IN, VID_REACH_FLOW_REG, VID_REACH_FLOW_UNREG, VID_RES_GCRELEASE, VID_RES_HOLDOUT, VID_RES_RELEASE, VID_SPILL_FLOW, VID_SPILL_HINDFLOW, VID_STATE_VAR, VID_STATE_VAR_HIND, VID_TAIL_ELEV, VID_UNCTOUT_FLOW, VID_UNCTOUT_HINDFLW, VID_WA_ACCOUNT_DEMAND, VID_WA_ACCOUNT_INFLOW, VID_WA_CURRENT_MAX_VOLUME, VID_WA_CURRENT_VOLUME, VID_WA_HINDSTOR, VID_WA_RULE_DEMAND| Modifier and Type | Method and Description |
|---|---|
void |
addCapacityRecord(CapacityRecord cr) |
void |
applyHindcastData(HindcastData hd)
applies specific hindcast data for compute
|
double |
calcEvapFlow(RunTimeStep runtime)
calculate evaporation in cfs/cms
|
double |
calcSeepageFlow(RunTimeStep runtime) |
void |
cleanupFromDeSerialization() |
void |
clearConicElevationAreaValues() |
java.lang.Object |
clone()
clone method
|
int |
computeForecastStep(RunTimeStep runtime) |
int |
computeHindcastStep(RunTimeStep runtime) |
boolean |
computeInflow(RunTimeStep runtime)
compute the total and net inflow for the given time-step
call prior to operation decision making
|
boolean |
computesEvaporation() |
boolean |
computesSeepage() |
double |
elevationToArea(double elev) |
double |
elevationToStorage(double elev) |
void |
emptyCapacityVector() |
java.util.Vector |
getActiveTSProxies(java.util.Vector vec,
int iotype)
returns a vector of required input, or generated output TSRecordProxies
used in the current alternative
default implementation function, assume all records are active
|
void |
getCapacityValues(PairedValues stor,
PairedValues area) |
java.util.Vector |
getCapacityVector() |
java.util.Vector |
getComputedTSRecordProxies(java.util.Vector v)
returns a vector of computed ts record proxies assuming the downstream flow is computed
overrides method in Function class
|
PairedValues |
getConicElevationAreaValues()
Elevation-area curve for conic interpolation storage
|
static double[] |
getConicStorageArray(PairedValues elevArea,
double firstStorageValue,
double firstConicDepth)
Compute storage array once and for all given elevation and area values
|
static double |
getConicStorageForElevation(double elevation,
PairedValues elevArea,
double[] storage,
double firstStorageValue,
double firstConicDepth)
Static function for performing conic interpolation for plotting and editing tables.
|
static double |
getConicStorageForElevation(double elevation,
PairedValues elevArea,
double firstStorageValue,
double firstConicDepth) |
double |
getConstSeepage() |
void |
getConstSeepage(hec.data.ParamDouble pd) |
double |
getElevation(RunTimeStep time)
returns the elevation value at the given time (assumes that elevation has already been computed)
|
PairedValues |
getElevationAreaValues() |
double[] |
getElevationArray()
returns the elevation time series array
|
double |
getElevationEst(RunTimeStep rts)
get the most recent elevation estimate for the given time step
Must be called after initForecast(), never call with a null argument for rts!
|
PairedValues |
getElevationStorageValues() |
double[] |
getEvapArray()
returns the evaporation time series array, may return null
|
double |
getEvapSeepVol(RunTimeStep rts)
return the total local flow volume for the given time step
|
int |
getEvapType() |
java.lang.Object |
getFieldObject(java.lang.reflect.Field fld)
This method allows access to java.lang.reflect.Field objects within the implementing
class.
|
double |
getFirstStorageValue() |
void |
getFirstStorageValue(hec.data.ParamDouble pd) |
double |
getFlowForRateOfRise(double rateOfRise,
double elev,
double deltaTSeconds)
Convert a rate of rise to a net reservoir inflow,outflow
|
int |
getHindcastCondition() |
void |
getHindcastDataList(java.util.Vector hvec)
Default implementation of getHindcastDataList does not add any records to the list.
|
double |
getInflow(RunTimeStep rts)
return the total reservoir inflow for the given time step
|
double |
getInflowVolume(RunTimeStep rts)
return the total reservoir inflow volume for the given time step
assuming that the inflow has already been calculated
|
double |
getInitialConicDepth() |
void |
getInitialConicDepth(hec.data.ParamDouble pd) |
double |
getInitialElevation() |
double |
getInitialStorage() |
double |
getMaxElevation() |
double |
getMaxStorage()
returns the full storage value
|
double |
getMinElevation() |
double |
getMinStorage()
returns the empty storage value
|
double[] |
getMonthlyEvap() |
double |
getNetInflow(RunTimeStep rts) |
double[] |
getNetInflowArray()
returns the net inflow time series array
|
double |
getNetInflowVolume(RunTimeStep rts)
return the total reservoir inflow volume for the given time step
assuming that the inflow has already been calculated
|
double |
getOutflow(RunTimeStep rts) |
double[] |
getOutflowArray() |
double |
getOutflowVolume(RunTimeStep rts)
return the total reservoir inflow volume for the given time step
assuming that the inflow has already been calculated
|
double |
getPreviousElevation(RunTimeStep rts) |
double |
getPreviousNetInflow(RunTimeStep rts) |
double |
getPreviousOutflow(RunTimeStep rts) |
double |
getPreviousStorage(RunTimeStep rts) |
int |
getSeepageType() |
PairedValues |
getSeepageValues() |
double[] |
getSeepArray()
returns the seepage time series array
|
double[] |
getSpillArray() |
double |
getStorage(RunTimeStep time)
returns the storage value at the given time (assumes that storage has already been computed)
|
java.util.Vector |
getTSRecordProxies()
override Function method to only return elevation or storage proxies as required
|
boolean |
hasEvap() |
boolean |
hasSeepage() |
double |
incrementPumpVolume(RunTimeStep rts,
double vol)
increment the reservoir storage by given amount and update elevation,
returns the actual change in storage
|
void |
incrementPumpVolumeCap(RunTimeStep rts,
double cap) |
boolean |
initForecast(int step) |
boolean |
initialize()
initialize prior to a compute
|
boolean |
isInstantaneousInput()
utility to see if computations are based on instantaneous flows or period average flows
|
boolean |
isNodeComputed(int iorder,
RssNode node,
java.lang.Integer idir)
returns true if node is computed by the function,
the storage function does not compute the flow at any node so it is always false
|
void |
outputReport(hec.rss.model.reports.AlternativeInputReport report,
org.jdom.Element elem)
Alternative Input Report Interface for data.
|
void |
setCapacityValues(PairedValues stor,
PairedValues area) |
void |
setComputesEvaporation(boolean b) |
void |
setComputesSeepage(boolean b) |
void |
setConicElevationAreaValues(PairedValues pv) |
void |
setConstSeepage(double s) |
void |
setConstSeepage(hec.data.ParamDouble pd) |
boolean |
setEvapType(int cond) |
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 |
setFirstStorageValue(double val) |
void |
setFirstStorageValue(hec.data.ParamDouble pd)
storage below first elevation for conic interpolation
|
boolean |
setHindcastCondition(int cond) |
void |
setInitialConicDepth(double val) |
void |
setInitialConicDepth(hec.data.ParamDouble pd)
initial conic depth for below first elevation for conic interpolation.
|
void |
setInitialElevation(double e) |
void |
setInitialStorage(double s) |
boolean |
setMonthlyEvap(double[] e) |
void |
setPumpVol(RunTimeStep rts,
double pumpvol,
double pumpvolcap) |
boolean |
setSeepageType(int cond) |
void |
setSeepageValues(PairedValues e) |
void |
setupForSerialization()
Called just before ascii serialization.
|
void |
setUseConicInterpolation(boolean b) |
double |
storageToElevation(double stor) |
void |
updateTSProxyList()
regenerates the list of all TSProxies required for this location
This list includes all records that are generated by this function
even if the records are held in another objects (e.g.
|
boolean |
useConicInterpolation() |
computeForecastStep, computeSubStepFlow, copyInto, findAdjParam, getAdjustableParameter, getComputedTSRecordProxies, getDisplayName, getElement, getFlowVolume, getFlowVolume, getForecastEquation, getFullName, getHindcastEquation, getKeyStringForObject, getObjectForKeyString, getSystem, getUnitSystem, hasDefaultParameters, initForecastLoop, initHindcastLoop, printErrorMessage, printErrorMessage, readData, resetParent, restoreFunctionState, restoreHotstartState, saveFunctionState, saveHotstartState, setElement, writeDataaddTSRecord, addTSRecordProxy, addTSRecordProxy, addTSRecordProxy, clearTSProxyList, copyInto, getActiveTSRecordProxies, getTSArray, getTSArray, getTSArray, getTSArray, getTSContainer, getTSContainer, getTSDataSet, getTSRecordProxy, getTSRecordProxy, getTSRecordProxy, getTSRecordProxy, getTSRecordProxy, getTSRecordProxyVec, removeTSRecord, removeTSRecordProxy, removeTSRecordProxyaddModifiableListener, compareTo, getDescription, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, removeModifiableListener, rename, set, setDescription, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, toString, update, useRecursiveModifiedTestaddObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObserversequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTSRecordProxygetTSDataSetpublic static final int KNOWN_STORAGE_CONST
public static final int KNOWN_STORAGE_TS
public static final int KNOWN_ELEVATION_CONST
public static final int KNOWN_ELEVATION_TS
public static final int FIRST_HINDCAST_COND
public static final int LAST_HINDCAST_COND
public static final int SEEPAGE_NONE
public static final int SEEPAGE_CONST
public static final int SEEPAGE_FUNC
public static final int EVAP_NONE
public static final int EVAP_MONTHLY
public static final int EVAP_TS
public static final int[] DAYS_PER_MONTH
public static final double DSDT_TO_Q_ENGLISH
public static final double DSDT_TO_Q_SI
public static double DSDT_TO_Q
public static double AREA_CONV_ENGLISH
public static double AREA_CONV_SI
public static double AREA_CONV
public static double EVAPLEN_CONV_ENGLISH
public static double EVAPLEN_CONV_SI
public static double EVAPLEN_CONV
public Storage()
public Storage(Element elem)
public double getEvapSeepVol(RunTimeStep rts)
rts - public double getElevationEst(RunTimeStep rts)
rts - public void setPumpVol(RunTimeStep rts, double pumpvol, double pumpvolcap)
public double incrementPumpVolume(RunTimeStep rts, double vol)
rts - vol - public void incrementPumpVolumeCap(RunTimeStep rts, double cap)
public boolean isNodeComputed(int iorder,
RssNode node,
java.lang.Integer idir)
isNodeComputed in class Functioniorder - index of node in element vectornode - node objectidir - integer indicating whether node is inflow or outflowpublic void cleanupFromDeSerialization()
cleanupFromDeSerialization in class Functionpublic void setupForSerialization()
setupForSerialization in class Functionpublic void getHindcastDataList(java.util.Vector hvec)
FunctiongetHindcastDataList in class Functionpublic boolean computesEvaporation()
public void setComputesEvaporation(boolean b)
public boolean computesSeepage()
public void setComputesSeepage(boolean b)
public boolean useConicInterpolation()
public void setUseConicInterpolation(boolean b)
public void setInitialConicDepth(hec.data.ParamDouble pd)
public void setInitialConicDepth(double val)
public void getInitialConicDepth(hec.data.ParamDouble pd)
public double getInitialConicDepth()
public void setFirstStorageValue(hec.data.ParamDouble pd)
public void setFirstStorageValue(double val)
public void getFirstStorageValue(hec.data.ParamDouble pd)
public double getFirstStorageValue()
public java.lang.Object clone()
Functionpublic boolean isInstantaneousInput()
public void applyHindcastData(HindcastData hd)
applyHindcastData in class Functionpublic java.util.Vector getActiveTSProxies(java.util.Vector vec,
int iotype)
getActiveTSProxies in class Functionpublic void updateTSProxyList()
updateTSProxyList in class Functionpublic java.util.Vector getTSRecordProxies()
getTSRecordProxies in class RssTSLocationObjectpublic java.util.Vector getComputedTSRecordProxies(java.util.Vector v)
getComputedTSRecordProxies in class Functionpublic double[] getElevationArray()
public double getElevation(RunTimeStep time)
public double getStorage(RunTimeStep time)
public double getMaxStorage()
public double getMinStorage()
public double calcEvapFlow(RunTimeStep runtime)
public boolean hasEvap()
public double[] getMonthlyEvap()
public boolean setMonthlyEvap(double[] e)
public int getEvapType()
public boolean setEvapType(int cond)
public double[] getEvapArray()
public double[] getSeepArray()
public double[] getSpillArray()
public double calcSeepageFlow(RunTimeStep runtime)
public boolean hasSeepage()
public void getConstSeepage(hec.data.ParamDouble pd)
public void setConstSeepage(hec.data.ParamDouble pd)
public double getConstSeepage()
public void setConstSeepage(double s)
public PairedValues getSeepageValues()
public void setSeepageValues(PairedValues e)
public void getCapacityValues(PairedValues stor, PairedValues area)
public PairedValues getElevationStorageValues()
public PairedValues getElevationAreaValues()
public void setCapacityValues(PairedValues stor, PairedValues area)
public int getSeepageType()
public boolean setSeepageType(int cond)
public double getInitialStorage()
public void setInitialStorage(double s)
public double getInitialElevation()
public void setInitialElevation(double e)
public int getHindcastCondition()
public boolean setHindcastCondition(int cond)
public double getPreviousStorage(RunTimeStep rts)
public double getPreviousElevation(RunTimeStep rts)
public double getInflowVolume(RunTimeStep rts)
rts - public double getNetInflowVolume(RunTimeStep rts)
rts - public double getOutflowVolume(RunTimeStep rts)
rts - public double getInflow(RunTimeStep rts)
rts - public double getNetInflow(RunTimeStep rts)
public double getPreviousNetInflow(RunTimeStep rts)
public double getPreviousOutflow(RunTimeStep rts)
public double getOutflow(RunTimeStep rts)
public double[] getNetInflowArray()
public double[] getOutflowArray()
public java.util.Vector getCapacityVector()
public void addCapacityRecord(CapacityRecord cr)
public void emptyCapacityVector()
public void setConicElevationAreaValues(PairedValues pv)
public void clearConicElevationAreaValues()
public PairedValues getConicElevationAreaValues()
public double storageToElevation(double stor)
public double elevationToStorage(double elev)
public double elevationToArea(double elev)
public double getFlowForRateOfRise(double rateOfRise,
double elev,
double deltaTSeconds)
rateOfRise - rate of reservoir rise per hourelev - elevation for computationdeltaTSeconds - time interval for computing risepublic boolean initialize()
initialize in class Functionpublic boolean initForecast(int step)
public int computeHindcastStep(RunTimeStep runtime)
computeHindcastStep in class Functionpublic boolean computeInflow(RunTimeStep runtime)
public int computeForecastStep(RunTimeStep runtime)
computeForecastStep in class Functionpublic double getMaxElevation()
public double getMinElevation()
public static double getConicStorageForElevation(double elevation,
PairedValues elevArea,
double[] storage,
double firstStorageValue,
double firstConicDepth)
elevation - elevation for conic interpolationelevArea - PairedValues set for elevation - areastorage - previously computed storage values for elevations in elevAreafirstStorageValue - storage value a first elevationfirstConicDepth - initial conic depth, if undefined will computeelevationpublic static double getConicStorageForElevation(double elevation,
PairedValues elevArea,
double firstStorageValue,
double firstConicDepth)
public static double[] getConicStorageArray(PairedValues elevArea, double firstStorageValue, double firstConicDepth)
public java.lang.Object getFieldObject(java.lang.reflect.Field fld)
FieldAccessorgetFieldObject in interface FieldAccessorgetFieldObject in class Continuityfld - The field to get.public boolean setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
FieldAccessorsetFieldObject in interface FieldAccessorsetFieldObject in class Continuityfld - 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