public class ReleaseOverrides extends java.lang.Object implements java.io.Serializable, AsciiSerializable, hec.rss.model.reports.AltInputReportInfc
| Modifier and Type | Class and Description |
|---|---|
class |
ReleaseOverrides.Overrides
inner class which holds a hash table and modified flag.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BEGIN_RELEASE_OVERRIDE
The Constant BEGIN_RELEASE_OVERRIDE.
|
static int |
CAPACITY
The Constant CAPACITY.
|
static int |
CAPACITY_PARAMID
The Constant CAPACITY_PARAMID.
|
static java.lang.String |
CAPACITY_STR
The Constant CAPACITY_STR.
|
static int |
ELEV_STORAGE
The Constant ELEV_STORAGE.
|
static int |
ELEV_STORAGE_PARAMID
The Constant ELEV_STORAGE_PARAMID.
|
static java.lang.String |
ELEV_STORAGE_STR
The Constant ELEV_STORAGE_STR.
|
static java.lang.String |
END_RELEASE_OVERRIDE
The Constant END_RELEASE_OVERRIDE.
|
static int |
GATE_OPENING
The Constant GATE_OPENING.
|
static int |
GATE_OPENING_PARAMID
The Constant GATE_OPENING_PARAMID.
|
static java.lang.String |
GATE_OPENING_STR
The Constant GATE_OPENING_STR.
|
static int |
OUTLET_RELEASE
The Constant OUTLET_RELEASE.
|
static int |
OUTLET_RELEASE_PARAMID
The Constant OUTLET_RELEASE_PARAMID.
|
static java.lang.String |
OUTLET_RELEASE_STR
The Constant OUTLET_RELEASE_STR.
|
static int |
RESERVOIR_ELEVATION
The Constant RESERVOIR_ELEVATION.
|
static int |
RESERVOIR_ELEVATION_PARAMID
The Constant RESERVOIR_ELEVATION_PARAMID.
|
static java.lang.String |
RESERVOIR_ELEVATION_STR
The Constant RESERVOIR_ELEVATION_STR.
|
static int |
STORAGE
The Constant STORAGE.
|
static int |
STORAGE_PARAMID
The Constant STORAGE_PARAMID.
|
static java.lang.String |
STORAGE_STR
The Constant STORAGE_STR.
|
static int |
UNDEFINED_OVERRIDE
The Constant UNDEFINED_OVERRIDE.
|
| Constructor and Description |
|---|
ReleaseOverrides()
Instantiates a new release overrides.
|
ReleaseOverrides(int startTime,
int delt,
int numsteps,
java.lang.String[] releases)
Instantiates a new release overrides.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearUserOtherAltOverrides()
more clearing needs to be done here in the reservoirs.
|
int |
getArraySize()
returns the length of the release arrays.
|
java.util.Hashtable |
getDssPathTable()
get the hashtable of release time series records dss paths.
|
java.lang.Object |
getFieldObject(java.lang.reflect.Field fld)
This method allows access to java.lang.reflect.Field objects within the implementing
class.
|
int |
getNumberOfSteps()
get the number of time steps.
|
int |
getOverridesType()
set the type of override (release, reservoir elevation, gate opening.
|
static int |
getParamedterId(int type)
Gets the paramedter id.
|
static int |
getParameterId(int type)
Gets the parameter id.
|
java.lang.String |
getReleaseDssPath(java.lang.String name)
get String DssPath for the specified release name.
|
java.lang.String[] |
getReleaseNames()
returns a string array containing the names of all releases.
|
java.util.Hashtable |
getReleaseValues(java.lang.String name)
get Hashtable of release values for the specified release name.
|
int |
getStartTime()
get the starting time - contains HecTime integer minutes.
|
int |
getTimeStep()
get the time step.
|
java.lang.String |
getUseOtherAltCollectionSequence(java.lang.String name)
Gets use other alt collection sequence
|
java.lang.String |
getUseOtherAltName(java.lang.String name)
Gets the use other alt name.
|
void |
initReleases(java.lang.String[] names)
initializes the release table with entries matching the given strings.
|
boolean |
isModified()
Checks if is modified.
|
boolean |
isOverrideOutletsForThisReservoir(java.lang.String resName) |
void |
outputReport(hec.rss.model.reports.AlternativeInputReport report,
org.jdom.Element elem)
Alternative Input Report Interface for data.
|
void |
outputReport(hec.rss.model.reports.AlternativeInputReport report,
org.jdom.Element elem,
RssSystem system) |
boolean |
replaceAllWithOtherAlt()
Replace all with other alt.
|
void |
setDssPathTable(java.util.Hashtable rt)
replace the hashtable of release time series records dss paths.
|
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 |
setForceWrite(boolean b)
Sets the force write.
|
void |
setOverrideOutletsForThisReservoir(boolean set,
java.lang.String resName) |
void |
setOverridesType(int type)
set the type of override (release, reservoir elevation, gate opening.
|
void |
setReleaseTimes(int startTime,
int delt,
int numsteps)
set release times - allocates date array and maintains any existing release arrays.
|
void |
setReleaseValues(java.lang.String name,
java.util.Hashtable ra)
set the values for one release override.
|
void |
setReleaseValues(java.lang.String name,
java.util.Hashtable ra,
boolean useAlt,
java.lang.String selectedAltName,
java.lang.String collection)
Sets the release values.
|
void |
setReplaceAll(boolean replace)
Sets the replace all.
|
void |
setRun(RssRun run)
Sets the run.
|
void |
setUseOtherAlt(boolean set,
java.lang.String key)
Set flag for the release overrides to use the other alt results.
|
void |
storeOverrides()
Write overrides to dss.
|
boolean |
updateAltData()
Update alt data.
|
void |
updateReleases(java.lang.String[] names)
updates the release table with entries matching the given strings.
|
void |
updateReleases(java.lang.String[] names,
int type)
Update releases.
|
boolean |
useOtherAltResults(java.lang.String name)
Use other alt results.
|
public static final java.lang.String BEGIN_RELEASE_OVERRIDE
public static final java.lang.String END_RELEASE_OVERRIDE
public static final int UNDEFINED_OVERRIDE
public static final int OUTLET_RELEASE
public static final int RESERVOIR_ELEVATION
public static final int GATE_OPENING
public static final int CAPACITY
public static final int STORAGE
public static final int ELEV_STORAGE
public static final java.lang.String OUTLET_RELEASE_STR
public static final java.lang.String RESERVOIR_ELEVATION_STR
public static final java.lang.String GATE_OPENING_STR
public static final java.lang.String CAPACITY_STR
public static final java.lang.String STORAGE_STR
public static final java.lang.String ELEV_STORAGE_STR
public static final int OUTLET_RELEASE_PARAMID
public static final int RESERVOIR_ELEVATION_PARAMID
public static final int GATE_OPENING_PARAMID
public static final int CAPACITY_PARAMID
public static final int STORAGE_PARAMID
public static final int ELEV_STORAGE_PARAMID
public ReleaseOverrides()
public ReleaseOverrides(int startTime,
int delt,
int numsteps,
java.lang.String[] releases)
startTime - the start timedelt - the deltnumsteps - the numstepsreleases - the releasespublic void setDssPathTable(java.util.Hashtable rt)
rt - the new dss path tablepublic java.util.Hashtable getDssPathTable()
public void setReleaseTimes(int startTime,
int delt,
int numsteps)
startTime - the start timedelt - the deltnumsteps - the numstepspublic void setReplaceAll(boolean replace)
replace - the new replace allpublic void setOverrideOutletsForThisReservoir(boolean set,
java.lang.String resName)
public boolean isOverrideOutletsForThisReservoir(java.lang.String resName)
public boolean replaceAllWithOtherAlt()
public void initReleases(java.lang.String[] names)
names - the namespublic void updateReleases(java.lang.String[] names,
int type)
names - the namestype - the typepublic boolean updateAltData()
public void updateReleases(java.lang.String[] names)
names - the namespublic int getArraySize()
public int getStartTime()
public int getTimeStep()
public int getNumberOfSteps()
public void setOverridesType(int type)
type - the new overrides typepublic int getOverridesType()
public static int getParamedterId(int type)
type - the typepublic static int getParameterId(int type)
type - the typepublic java.lang.String[] getReleaseNames()
public java.lang.String getReleaseDssPath(java.lang.String name)
name - the namepublic boolean useOtherAltResults(java.lang.String name)
name - the namepublic void setUseOtherAlt(boolean set,
java.lang.String key)
boolean - use other alt results if trueString - name the element key namepublic java.lang.String getUseOtherAltName(java.lang.String name)
name - the namepublic java.lang.String getUseOtherAltCollectionSequence(java.lang.String name)
name - the namepublic java.util.Hashtable getReleaseValues(java.lang.String name)
name - the namepublic void setReleaseValues(java.lang.String name,
java.util.Hashtable ra)
name - the namera - the rapublic void setReleaseValues(java.lang.String name,
java.util.Hashtable ra,
boolean useAlt,
java.lang.String selectedAltName,
java.lang.String collection)
name - the namera - the rauseAlt - the use altselectedAltName - the selected alt namepublic void clearUserOtherAltOverrides()
public void setRun(RssRun run)
run - the new runpublic void setForceWrite(boolean b)
b - the new force writepublic void storeOverrides()
public boolean isModified()
public java.lang.Object getFieldObject(java.lang.reflect.Field fld)
FieldAccessorgetFieldObject in interface FieldAccessorfld - The field to get.public boolean setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
FieldAccessorsetFieldObject in interface FieldAccessorfld - 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.AltInputReportInfcpublic void outputReport(hec.rss.model.reports.AlternativeInputReport report,
org.jdom.Element elem,
RssSystem system)