Class RssAlt
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,LockableObject,MessagePrinter,TsRecordContainer,AltInputReportInfc,Serializable,Cloneable,Comparable,Observer,mil.army.usace.hec.rmi.csinterface.CallBackInterface,rma.lang.Modifiable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intThe _flow compute type.protected inttime increment.protected inttime step.static final StringThe Constant FILE_EXT.static final intThe Constant FLOW_COMPUTE_DEFAULT.static final intThe Constant FLOW_COMPUTE_INSTANT.static final intThe Constant FLOW_COMPUTE_PERAVG.static final inttypes for the inflow factor.static final intThe Constant INFLOW_FACTOR_LOCATION.static final Stringsuffix for Variant Obs TSDataSet namestatic final intThe Constant PER_AVG_TIME.static final StringThe Constant REPORT_EXT.static final Stringfile extension for TSDataSet filesstatic final int1001 moved compute holdout, unreg and log level from run to alt.Fields inherited from class hec.clientapp.model.Manager
_callBack, _dssFileManagerWrapper, _identifier, _lastModifiedTime, _modifiableListeners, _proxyList, _readOnly, _reloadFailed, _reloadOk, _uiWrapper, _userInterface, _wkspPath, _Workspace, LASTMODIFIED_STRINGFields 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 TypeMethodDescriptionvoidaddAltPluginData(hec.rss.plugins.model.AltPluginData data) Adds the alt plugin data.voidaddDivOpSetSelection(int divId, int opsetId) adds an entry into the diverion operation set selection table matching the diversion index the the operation set index.voidaddEmbeddedAltRef(ModelReference altRef) Adds the embedded alt ref.voidaddPluginSettings(PluginSettings options) Adds the plugin settings.voidaddResOpSetSelection(int resId, int opsetId) adds an entry into the reservoir operation set selection table matching the reservoir index the the operation set index.voidaddResSysOpSetSelection(long resId, int opsetId) adds an entry into the reservoir operation set selection table matching the reservoir index the the operation set index.voidAdds the run.voidclears all entries in the reservoir operation set selection table.voidclears all entries in the reservoir operation set selection table.voidclears all entries in the reservoir operation set selection table.voidclearPluginSettings(String clsname) Clear plugin settings.voidclone()Creates a new object of the same class as this object.intCompute.booleanContains embedded alt ref list.booleancopyGvDataSetsInto(RssAlt fromAlt) booleanCopy into.voidDelete run.booleandeleteVariant(TsVariant variant) delete the variant and all its datasets and their filesvoiddeleting()called when the manager proxy is deleting the manager allows the manager to do any additional clean required.getActiveTSProxies(Vector vec, int iotype) returns a vector of required input, or generated output TSRecordProxies used in the current alternative default implementation elements, assume all records are activehec.rss.plugins.model.AltPluginDatagetAltPluginData(String type) Gets the instance of AltPluginData for the given Type model.booleanreturn whether unregulated flow computations will be done.intGets the computed flow compute type.booleanhec.rss.compute.ResSimComputeLauncherGets the compute launcher.booleanreturn whether unregulated flow computations will be done.Gets the input time series data set path.intgetDivOpSetSelection(int divId) retrieves the operation set selection for the given diversion index - returns RMAConst.UNDEF_INT if the diversion has no operation set selection.Gets the embedded alt ref list.intGets the flow compute type.intgetFlowComputeType(int timeStepSeconds) determine what flow compute type an alternative should be using, if its flow compute type isn't set (set to FLOW_COMPUTE_DEFAULT).doubleGets the global inflow factor.Gets the data set path.Returns a Vector list of HindCast Data Objects.Gets the hotstart options.intGets the inflow factor type.Gets the input global variable data path.gets the default Input Globacl Variable DataSet used by this alternative.getInputGVDataSet(TsVariant variant) getInputGVDataSet(String variant, boolean hasNonDefaultInput) get the input TSDataSet for a particular variantGets the input ts data name.Gets the input ts data path.getInputTSDataPath(String variant) gets the default Input TSDataSet used by this alternative.getInputTSDataSet(TsVariant variant) getInputTSDataSet(String variant, boolean hasNonDefaultInput) get the input TSDataSet for a particular variantgetInputWQPDCDataSet(TsVariant variant) getInputWQPDCDataSet(String variant, boolean hasNonDefaultInput) get the input PDCDataSet for water quality input for a particular variant Not implemented yet.Gets the input water quality data path.Gets the default Input TSDataSet used for water quality input by this alternative.getInputWQTSDataSet(TsVariant variant) Retrieves the TSdata set for the water quality input datagetInputWQTSDataSet(String variant, boolean hasNonDefaultInput) get the input TSDataSet for water qulaity input for a particular variant Not implememnted yet.longreturn the latest last modified time from either this or it's managers.doublegetLocationInflowFactor(JunctionElement element, String localFlowName) Gets the location inflow factor.Gets the location inflow factors.double[]getLocationInflowFactors(JunctionElement element, double[] factorArray) get the factor array for the JunctionElement.intGets the log level.Gets the observed ts data name.Gets the observed ts data path.Gets the observed ts data set.getObservedTSDataSet(TsVariant variant) get the Observed TSDataSet for the specified TsVariantgetObservedTSDataSet(String variant, boolean hasNonDefaultInput) get the observed TSDataSet for a particular variantget the list of Observed TS Variant namesGets the obs water quality data path.getObsWQPDCDataSet(TsVariant variant) Retrieves the PDCData set for the water quality observed datagetObsWQPDCDataSet(TsVariant variant, RunTimeWindow rtw) Retrieves the PDCData set for the water quality observed datagetObsWQPDCDataSet(String variant, boolean hasNonDefaultInput) getObsWQPDCDataSet(String variant, boolean hasNonDefaultInput, RunTimeWindow rtw) Gets the OBS TSDataSet used for water quality input by this alternative.getObsWQTSDataSet(TsVariant variant) Retrieves the TSdata set for the water quality observed datagetObsWQTSDataSet(String variant, boolean hasNonDefaultInput) get the obs TSDataSet for water qulaity input for a particular variant Not implememnted yet.Gets the operations name.Gets the operations path.Gets the output ts data name.gets the Output TSDataSet used by this alternative.List<hec.rss.plugins.model.AltPluginData> Gets the list of PluginData for the Alternative.getPluginSettings(String clsname) Gets the plugin settings.Gets the yield analysis.intgetResOpSetSelection(int resId) retrieves the operation set selection for the given reservoir index - returns RMAConst.UNDEF_INT if the reservoir has no operation set selection.intgetResSysOpSetSelection(int resSysId) Gets the res sys op set selection.Gets the run list.gets the RssSystem used by this alternative.intGets the system index.Gets the system name.Deprecated.- use getSystemIndex()intGets the timestep.static int[]getTimeStep(RssAlt alt) Gets the time step.intGets the timestep increment.get the TimeStep String.getTsVariant(String variantName) Returns the name of the collection sequence alternative used for the release overrides forcontrolled outlet. getUseOtherAltName(String name) Returns the name of the alternative used for the release overrides forcontrolled outlet. intGets the version.Gets the water account set.inthec.rss.wq.model.AltWaterQualityOptionsGets the data set path for water quality input time series.Gets the write dss output data table.Get the list of hydropower rules that can be used as a basis for Yield Analysis.Get the list of Water Supply rules that can be used as a basis for Yield Analysis.booleancalled when a Trial has been accepted.booleanintIndex of embedded alt ref list.voidinit()voidInits the compute.booleanChecks if is default flow compute.booleanreturn true if period average flow calcs.booleanChecks if is using inflow factors.booleanisValid()Checks the whether the Run ready to perform a compute.protected booleanLoad network by id.protected booleanLoad network by path.booleancalled during saveAs to allow managers to modify themselves as necessary, returns true if there are changes made.voidoutputReport(AlternativeInputReport report, org.jdom.Element elem) Alternative Input Report Interface for data.prepareForExtract(RunTimeWindow simPeriodRTW, RssAlt rssAlt, mil.army.usace.hec.rmi.csinterface.DSSManager dssFileManager) booleanreadFile(Identifier id) booleanrefreshData(Manager origMgr) refresh this managers data from the origMgr's databooleancalled when thisManagercontains otherManagers(ie an Alternative) so that it can tell all of it's childManagersto reload.booleanreLoadFile(Identifier id) readData retrieves the Run data from the specified ASCII file.voidremoveEmbeddedAltRef(ModelReference altRef) Removes the embedded alt ref.voidremoveResSysOpSetSelection(long resId) removes an entry into the reservoir operation set selection table matching the reservoir index.voidRename run.booleanReplace all with other alt.booleancalled when thisManagercontains otherManagers(ie an Alternative) so that it can tell all of it's childManagersto save.saveManagerAs(String directory, String filePrefix, ManagerProxyListContainer container) duplicate this, RssSystem and InputTsData.voidsetComputeCumLoc(boolean computeCumLoc) voidsetComputeHoldout(boolean computeHoldout) Sets the compute holdout.voidsetComputeUnReg(boolean computeUnReg) Sets the compute un reg.voidsetCopyOverrides(boolean copyOverrides) set whether the release (and other) overrides get copied when the alternative is copied to/from the simulation areavoidsetDataSetPath(String path) Sets the data set path.voidsetEmbeddedAltRefList(List<ModelReference> embeddedAltRefList) Sets the embedded alt ref list.voidsetFlowComputeType(int type) Sets the flow compute type.voidsetGlobalInflowFactor(double factor) Sets the global inflow factor.voidsetGVDataSetPath(String path) Sets the global variable input data set path.voidsetHindcastData(Vector data) Sets the hindcast data.voidsetInflowFactorType(int inflowType) Sets the inflow factor type.voidsetLocationInflowFactors(List<InflowLocationFactor> inflowFactors) Sets the location inflow factors.voidsetLogLevel(int logLevel) Sets the log level.voidsetModified(boolean modified) Set the modified flag to true or false.voidsetObservedDataSetPath(String path) Sets the observed data set path.voidsetObsWQDataSetPath(String path) Sets the water qulaity obs data set path.voidsetOperationsPath(String path) Sets the operations path.voidsetOutputVerticalDatumType(OutputVerticalDatumType outputVerticalDatumType) voidsetPerAvgFlow(boolean b) set true if period average flow calcs.voidsetReleaseOverridesAlt(String name, AltOverride ao) Sets the release values.voidsetReplaceAll(boolean replace) Sets the replace all.voidvoidsetReservoirYieldAnalysis(ReservoirYieldAnalysis yieldAnalysis) Sets the yield analysis.voidsetReverseReservoirYieldAnalysis(ReverseReservoirYieldAnalysis yieldAnalysis) voidvoidsetSelectedYieldAnalysis(YieldAnalysisType selectedYieldAnalysis) voiddon't call this method to set the system, use setSystemIndex().voidsetSystemIndex(int networkID) Sets the system index.voidsetSystemPath(String path) Deprecated.- use setSystemIndex()voidsetTimeStep(int timeStep, int increment) Sets the time step and increment type it is.voidsetTSDataSets(TSDataSet copyInputTsDataSet, TSDataSet copyOutputTsDataSet) don't call this method to set the TSDataSets.voidsetUseObsTSData(boolean b) Set the flag that indicates whether observed TS data will be used in the compute (to set junction flows)voidsetUseOtherAltResults(boolean set, String key) Sets the use other alt results.mil.army.usace.hec.rmi.server.RemoteWrappersetUserInterface(mil.army.usace.hec.rmi.server.RemoteWrapper wrapper) voidsetUserName(String userName) Sets the user name.voidsetUseYieldAnalysis(boolean useYieldAnalysis) Sets the uses Yield Analysis flag.voidsetUsingInflowFactors(boolean usingFactors) Sets the using inflow factors.voidsetWaterAccountSet(WaterAccountSet waterAccountSet) Sets the water account set.voidsetWaterAccountSetIndex(int index) voidsetWaterAccountYieldAnalysis(WaterAccountYieldAnalysis yieldAnalysis) voidsetWQDataSetPath(String path) Sets the water qulaity input data set path.voidSets the write dss output data table.toString()voidcalled when the manager proxy is unloading the manager.booleanCheck the flag that indicates whether observed TS data will be used in the compute (to set junction flows)booleanuseOtherAltResults(String name) Returns if the particular controlled outlet uses another alternative's results for its release overrride.booleanUses Yield Analysis.booleanwriteFile(Identifier id) writeData saves the Run data to the specified ASCII file.booleanwriteReport(BufferedWriter writer, RunTimeWindow rtw, RssRun run) Write report.Methods inherited from class hec.clientapp.model.Manager
addModifiableListener, backupFile, computeComplete, copyFile, deleteFile, finalize, getCallback, getCommonDataList, getDirectory, getDSSFileManager, getDSSFileManagerWrapper, getFieldObject, getFileManager, getFilename, getGmtOffset, getIdentifier, getInputITSDataSet, getLastModifiedTimeString, getModTime, getModTime, getOutputITSDataSet, getPath, getProxyList, getReadOnly, getRelativePath, getReloadOk, getSaveAsId, getSaveAsId, getUnitSystem, getUserInterface, getWorkspace, getWorkspacePath, hasLock, isCanceled, isForecastManager, loadComplete, loadSaveAsFile, makeAbsolutePath, makeAbsolutePath, makeAbsolutePathFromWatershed, makeRelativePath, makeRelativePathFromWatershed, newFile, newTSRecordProxy, newTSRecordProxy, notify, notifyModifiableListeners, openFile, printErrorMessage, printLogMessage, printMessage, printSeparator, printStatus, printTableRow, printWarningMessage, reLoadFile, removeCallBack, removeModifiableListener, renamed, saveManager, saveManagerAs, setFieldObject, setIdentifier, setLastModifiedTime, setLastModifiedTime, setLineAttributes, setLocked, setManagersModifiedTime, setModifiedFalse, setPath, setProgress, setProxyList, setReadOnly, setReloadOk, setWorkspace, writeLastModTimeMethods inherited from class hec.lang.NamedType
compareTo, fireModifiedStateChanged, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, getName, isModified, readResolve, rename, set, setDescription, setIgnoreModifiedEvents, setIndex, setName, setValid, update, useRecursiveModifiedTestMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface rma.lang.Modifiable
isModified
-
Field Details
-
FILE_EXT
The Constant FILE_EXT.- See Also:
-
TS_DATASET_FILE_EXT
file extension for TSDataSet files- See Also:
-
OBS_SUFFIX
suffix for Variant Obs TSDataSet name- See Also:
-
REPORT_EXT
The Constant REPORT_EXT.- See Also:
-
PER_AVG_TIME
public static final int PER_AVG_TIMEThe Constant PER_AVG_TIME.- See Also:
-
VERSION
public static final int VERSION1001 moved compute holdout, unreg and log level from run to alt.- See Also:
-
INFLOW_FACTOR_GLOBAL
public static final int INFLOW_FACTOR_GLOBALtypes for the inflow factor.- See Also:
-
INFLOW_FACTOR_LOCATION
public static final int INFLOW_FACTOR_LOCATIONThe Constant INFLOW_FACTOR_LOCATION.- See Also:
-
FLOW_COMPUTE_DEFAULT
public static final int FLOW_COMPUTE_DEFAULTThe Constant FLOW_COMPUTE_DEFAULT.- See Also:
-
FLOW_COMPUTE_PERAVG
public static final int FLOW_COMPUTE_PERAVGThe Constant FLOW_COMPUTE_PERAVG.- See Also:
-
FLOW_COMPUTE_INSTANT
public static final int FLOW_COMPUTE_INSTANTThe Constant FLOW_COMPUTE_INSTANT.- See Also:
-
_timeStep
protected int _timeSteptime step. number of minutes, hours, or days -
_timeIncrement
protected int _timeIncrementtime increment. one of HecTime.MINUTE_INCREMENT, HecTime.HOUR_INCREMENT or HecTime.DAY_INCREMENT -
_flowComputeType
protected int _flowComputeTypeThe _flow compute type.
-
-
Constructor Details
-
RssAlt
The Alternative must be constructed with a name. The name should be unique among Alternative objects within a model Workspace.- Parameters:
name- a short, unique name to identify the Run
-
RssAlt
public RssAlt()Instantiates a new rss alt.
-
-
Method Details
-
useObsTSData
public boolean useObsTSData()Check the flag that indicates whether observed TS data will be used in the compute (to set junction flows)- Returns:
- true is observed TS data is used
-
getOutputVerticalDatumType
-
setOutputVerticalDatumType
-
setUseObsTSData
public void setUseObsTSData(boolean b) Set the flag that indicates whether observed TS data will be used in the compute (to set junction flows) -
setEmbeddedAltRefList
Sets the embedded alt ref list.- Parameters:
embeddedAltRefList- the new embedded alt ref list
-
getEmbeddedAltRefList
Gets the embedded alt ref list.- Returns:
- the embedded alt ref list
-
indexOfEmbeddedAltRefList
Index of embedded alt ref list.- Parameters:
altRef- the alt ref- Returns:
- the int
-
containsEmbeddedAltRefList
Contains embedded alt ref list.- Parameters:
altRef- the alt ref- Returns:
- true, if successful
-
addEmbeddedAltRef
Adds the embedded alt ref.- Parameters:
altRef- the alt ref
-
removeEmbeddedAltRef
Removes the embedded alt ref.- Parameters:
altRef- the alt ref
-
getYieldAnalysisWaterSupplyRules
Get the list of Water Supply rules that can be used as a basis for Yield Analysis. These include Downstream minimum flow rules, at site minimum flow rules, at site and diversion rules.- Returns:
- ArrayList of water supply rules that can be used as a basis for yield analysis
-
getYieldAnalysisHydropowerRules
Get the list of hydropower rules that can be used as a basis for Yield Analysis. These include hydropower and system hydropower rules.- Returns:
- ArrayList of hydropower rules that can be used as a basis for yield analysis
-
modifiyForSaveAs
public boolean modifiyForSaveAs()called during saveAs to allow managers to modify themselves as necessary, returns true if there are changes made.- Overrides:
modifiyForSaveAsin classManager- Returns:
- true, if successful
-
addResOpSetSelection
public void addResOpSetSelection(int resId, int opsetId) adds an entry into the reservoir operation set selection table matching the reservoir index the the operation set index.- Parameters:
resId- the res idopsetId- the opset id
-
addDivOpSetSelection
public void addDivOpSetSelection(int divId, int opsetId) adds an entry into the diverion operation set selection table matching the diversion index the the operation set index.- Parameters:
divId- the diversion idopsetId- the opset id
-
addResSysOpSetSelection
public void addResSysOpSetSelection(long resId, int opsetId) adds an entry into the reservoir operation set selection table matching the reservoir index the the operation set index.- Parameters:
resId- the res idopsetId- the opset id
-
removeResSysOpSetSelection
public void removeResSysOpSetSelection(long resId) removes an entry into the reservoir operation set selection table matching the reservoir index.- Parameters:
resId- the res id
-
setHindcastData
Sets the hindcast data.- Parameters:
data- the new hindcast data
-
getHindcastData
Returns a Vector list of HindCast Data Objects.- Returns:
- the hindcast data
-
clearAllResOpSetSelection
public void clearAllResOpSetSelection()clears all entries in the reservoir operation set selection table. -
clearAllDivOpSetSelection
public void clearAllDivOpSetSelection()clears all entries in the reservoir operation set selection table. -
clearAllResSysOpSetSelection
public void clearAllResSysOpSetSelection()clears all entries in the reservoir operation set selection table. -
getResOpSetSelection
public int getResOpSetSelection(int resId) retrieves the operation set selection for the given reservoir index - returns RMAConst.UNDEF_INT if the reservoir has no operation set selection.- Parameters:
resId- the res id- Returns:
- the res op set selection
-
getDivOpSetSelection
public int getDivOpSetSelection(int divId) retrieves the operation set selection for the given diversion index - returns RMAConst.UNDEF_INT if the diversion has no operation set selection.- Returns:
- the diversion op set selection
-
getResSysOpSetSelection
public int getResSysOpSetSelection(int resSysId) Gets the res sys op set selection.- Parameters:
resSysId- the res sys id- Returns:
- the res sys op set selection
-
init
public void init() -
getSystem
gets the RssSystem used by this alternative.- Returns:
- the system
-
loadNetworkByID
protected boolean loadNetworkByID()Load network by id.- Returns:
- true, if successful
-
loadNetworkByPath
protected boolean loadNetworkByPath()Load network by path.- Returns:
- true, if successful
-
getInputGVDataSet
- Parameters:
variant-- Returns:
-
getInputGVDataSet
gets the default Input Globacl Variable DataSet used by this alternative.- Returns:
- the default input global variable data set
-
getGVDataSetPath
Gets the data set path.- Returns:
- the data set path
-
getWQDataSetPath
Gets the data set path for water quality input time series.- Returns:
- the data set path
-
getInputGVDataPath
Gets the input global variable data path.- Returns:
- the input global variable data path
-
setGVDataSetPath
Sets the global variable input data set path.- Parameters:
path- the new data set path
-
getInputGVDataSet
get the input TSDataSet for a particular variant- Parameters:
variant- the variant name or null for the default TSDataSet- Returns:
-
getInputTSDataSet
- Parameters:
variant-- Returns:
- input time series data set
-
getInputTSDataSet
get the input TSDataSet for a particular variant- Parameters:
variant- the variant name or null for the default TSDataSet- Returns:
-
getInputTSDataSet
gets the default Input TSDataSet used by this alternative.- Overrides:
getInputTSDataSetin classManager- Returns:
- the default input ts data set
-
getInputWQTSDataSet
Gets the default Input TSDataSet used for water quality input by this alternative.- Returns:
- the default input tsDataSet for water quality
-
getInputWQPDCDataSet
-
getInputWQPDCDataSet
-
getInputWQPDCDataSet
-
getInputWQTSDataSet
Retrieves the TSdata set for the water quality input data- Parameters:
variant-- Returns:
-
getInputWQTSDataPath
Gets the input water quality data path.- Returns:
- the input globa variable data path
-
setWQDataSetPath
Sets the water qulaity input data set path.- Parameters:
path- the new data set path
-
getInputWQTSDataSet
get the input TSDataSet for water qulaity input for a particular variant Not implememnted yet. Waitng for use with Model Linking- Parameters:
variant- the variant name or null for the default TSDataSet- Returns:
- the ts data set for water qualtiy for the variant
-
getInputWQPDCDataSet
get the input PDCDataSet for water quality input for a particular variant Not implemented yet. Waiting for use with Model Linking- Parameters:
variant- the variant name or null for the default TSDataSet- Returns:
- the ts data set for water quality for the variant
-
getObsWQPDCDataSet
Retrieves the PDCData set for the water quality observed data- Parameters:
variant-- Returns:
-
getObsWQPDCDataSet
Retrieves the PDCData set for the water quality observed data- Parameters:
variant-- Returns:
-
getObsWQPDCDataSet
-
getObsWQPDCDataSet
-
getOutputTSDataSet
gets the Output TSDataSet used by this alternative.- Overrides:
getOutputTSDataSetin classManager- Returns:
- the output ts data set
-
getSystemName
Gets the system name.- Returns:
- the system name
-
getOperationsName
Gets the operations name.- Returns:
- the operations name
-
getObservedTSDataName
Gets the observed ts data name.- Returns:
- the observed ts data name
-
getObservedTSDataPath
Gets the observed ts data path.- Returns:
- the observed ts data path
-
getObservedTSDataSet
Gets the observed ts data set.- Returns:
- the observed ts data set
-
getObservedTSDataSet
get the Observed TSDataSet for the specified TsVariant- Parameters:
variant-- Returns:
-
getObsTSVariantNames
get the list of Observed TS Variant names- Returns:
-
getObservedTSDataSet
get the observed TSDataSet for a particular variant- Parameters:
variant- the variant name or null for the default observed TSDataSet- Returns:
-
getInputTSDataName
Gets the input ts data name.- Returns:
- the input ts data name
-
getInputTSDataPath
Gets the input ts data path.- Returns:
- the input ts data path
-
getInputTSDataPath
-
getOutputTSDataName
Gets the output ts data name.- Returns:
- the output ts data name
-
getWriteDSSOutputDataTable
Gets the write dss output data table.- Returns:
- the write dss output data table
-
getGlobalVariablesTable
- Returns:
-
setWriteDSSOutputDataTable
Sets the write dss output data table.- Parameters:
table- the new write dss output data table
-
setSystemPath
Deprecated.- use setSystemIndex()Sets the system path.- Parameters:
path- the new system path
-
setSystemIndex
public void setSystemIndex(int networkID) Sets the system index.- Parameters:
networkID- the new system index
-
getSystemPath
Deprecated.- use getSystemIndex()Gets the system path.- Returns:
- the system path
-
getSystemIndex
public int getSystemIndex()Gets the system index.- Returns:
- the system index
-
setOperationsPath
Sets the operations path.- Parameters:
path- the new operations path
-
getOperationsPath
Gets the operations path.- Returns:
- the operations path
-
setFlowComputeType
public void setFlowComputeType(int type) Sets the flow compute type.- Parameters:
type- the new flow compute type
-
setPerAvgFlow
public void setPerAvgFlow(boolean b) set true if period average flow calcs.- Parameters:
b- the new per avg flow
-
setDataSetPath
Sets the data set path.- Parameters:
path- the new data set path
-
setObservedDataSetPath
Sets the observed data set path.- Parameters:
path- the new observed data set path
-
getDataSetPath
Gets the input time series data set path.- Returns:
- the data set path
-
writeFile
writeData saves the Run data to the specified ASCII file. If no path name is given, the method uses the current pathname of the Run.The file is written using type=param formatting. See the readData method for definition of types and parameters.
-
reLoadFile
readData retrieves the Run data from the specified ASCII file. If no path name is given, the method uses the current pathname of the Run.The file must have type=param formatting. The following types and parameters are defined.
Run Name= (String) name of the Run
Run Description= (String) description of the Run
System Path= (String) relative path name of the System file
Operations Path= (String) relative path name of the Operations file
InputTSData Path= (String) relative path name of the input TSDataSet file
OutputTSData Path= (String) relative path name of the output TSDataSet file
Start Time= (String) start of forecast date/time string in any standard HEC format
End Time= (String) end of forecase date/time string in any standard HEC format
Lookback= (int) lookback period in days
Time Step= (double) computation time step in hours- Overrides:
reLoadFilein classManager- Parameters:
id- the id- Returns:
- true, if successful
-
readFile
-
isValid
public boolean isValid()Checks the whether the Run ready to perform a compute. This function is not fully implemented yet! -
setTimeStep
public void setTimeStep(int timeStep, int increment) Sets the time step and increment type it is. The increment is defined as HOURS, MINUTES, DAYS, as defined by HecTime- Parameters:
timeStep- the time stepincrement- the increment- See Also:
-
getTimestep
public int getTimestep()Gets the timestep.- Returns:
- the timestep
-
getTimestepIncrement
public int getTimestepIncrement()Gets the timestep increment.- Returns:
- the timestep increment
-
getAltPluginData
Gets the instance of AltPluginData for the given Type model.- Parameters:
type- String. Typically use choices defined in AltPluginDataFactory- Returns:
- the the instance of AltPluginData for the given Type model
-
compute
Compute.- Parameters:
rssRun- the rss run- Returns:
- the int
-
addAltPluginData
public void addAltPluginData(hec.rss.plugins.model.AltPluginData data) Adds the alt plugin data.- Parameters:
data- the data
-
setReplaceAll
public void setReplaceAll(boolean replace) Sets the replace all.- Parameters:
replace- the new replace all
-
replaceAllReleaseOverrides
public boolean replaceAllReleaseOverrides()Replace all with other alt.- Returns:
- true, if successful
-
useOtherAltResults
Returns if the particular controlled outlet uses another alternative's results for its release overrride.- Parameters:
name- the name- Returns:
- true, if successful
-
getUseOtherAltName
Returns the name of the alternative used for the release overrides forcontrolled outlet. - Parameters:
name- the name- Returns:
- the use other alt name
-
getUseOtherAltCollectionSequence
Returns the name of the collection sequence alternative used for the release overrides forcontrolled outlet. - Parameters:
name- the name- Returns:
- the use other alt collection sequence
-
setReleaseOverridesAlt
Sets the release values.- Parameters:
name- the nameao- the ao
-
setUseOtherAltResults
Sets the use other alt results.- Parameters:
set- the setkey- the key
-
clearUserOtherAltOverrides
public void clearUserOtherAltOverrides() -
getTimeStepString
get the TimeStep String. i.e.1HOUR,1DAY,30MINUTEif the time step is not define, default it to 1HOUR- Returns:
- the TimeStep String
-
addRun
Adds the run.- Parameters:
run- the run
-
getRunList
Gets the run list.- Returns:
- the run list
-
deleteRun
Delete run.- Parameters:
run- the run
-
deleting
public void deleting()Description copied from class:Managercalled when the manager proxy is deleting the manager allows the manager to do any additional clean required. -
renameRun
Rename run.- Parameters:
old- the oldnewr- the newr
-
getLastModifiedTime
public long getLastModifiedTime()return the latest last modified time from either this or it's managers.- Overrides:
getLastModifiedTimein classManager- Returns:
- the last modified time
-
unloading
public void unloading()called when the manager proxy is unloading the manager. -
saveChildManagers
public boolean saveChildManagers()Description copied from class:Managercalled when thisManagercontains otherManagers(ie an Alternative) so that it can tell all of it's childManagersto save. By default it just calls_proxyList.saveManager(hec.lang.UserId.getUserId(), this)- Overrides:
saveChildManagersin classManager- Returns:
- true if the save was successful
-
reLoadChildManagers
public boolean reLoadChildManagers()Description copied from class:Managercalled when thisManagercontains otherManagers(ie an Alternative) so that it can tell all of it's childManagersto reload. By default it just callsreLoadFile()- Overrides:
reLoadChildManagersin classManager- Returns:
- true if the reload was successful
-
setModified
public void setModified(boolean modified) Description copied from class:NamedTypeSet the modified flag to true or false.- Specified by:
setModifiedin interfacerma.lang.Modifiable- Overrides:
setModifiedin classManager
-
saveManagerAs
public Manager saveManagerAs(String directory, String filePrefix, ManagerProxyListContainer container) duplicate this, RssSystem and InputTsData. Saving out to new file.- Overrides:
saveManagerAsin classManager- Parameters:
directory- the directoryfilePrefix- the file prefixcontainer- the container- Returns:
- the manager
-
refreshData
Description copied from class:Managerrefresh this managers data from the origMgr's data- Overrides:
refreshDatain classManager
-
clone
Description copied from class:NamedTypeCreates a new object of the same class as this object.
It then initializes each of the new object's fields by assigning it the same value as the corresponding field in this object. No
constructor is called. -
copyInto
Copy into.- Parameters:
alt- the alt- Returns:
- true, if successful
-
copyGvDataSetsInto
-
setInflowFactorType
public void setInflowFactorType(int inflowType) Sets the inflow factor type.- Parameters:
inflowType- the new inflow factor type
-
getInflowFactorType
public int getInflowFactorType()Gets the inflow factor type.- Returns:
- the inflow factor type
-
setGlobalInflowFactor
public void setGlobalInflowFactor(double factor) Sets the global inflow factor.- Parameters:
factor- the new global inflow factor
-
getGlobalInflowFactor
public double getGlobalInflowFactor()Gets the global inflow factor.- Returns:
- the global inflow factor
-
setLocationInflowFactors
Sets the location inflow factors.- Parameters:
inflowFactors- the new location inflow factors
-
getLocationInflowFactors
Gets the location inflow factors.- Returns:
- the location inflow factors
-
getLocationInflowFactors
get the factor array for the JunctionElement.- Parameters:
element- the elementfactorArray- the factor array- Returns:
- the location inflow factors
-
setUsingInflowFactors
public void setUsingInflowFactors(boolean usingFactors) Sets the using inflow factors.- Parameters:
usingFactors- the new using inflow factors
-
isDefaultFlowCompute
public boolean isDefaultFlowCompute()Checks if is default flow compute.- Returns:
- true, if is default flow compute
-
getFlowComputeType
public int getFlowComputeType()Gets the flow compute type.- Returns:
- the flow compute type
-
isPerAvgFlow
public boolean isPerAvgFlow()return true if period average flow calcs.- Returns:
- true, if is per avg flow
-
getComputedFlowComputeType
public int getComputedFlowComputeType()Gets the computed flow compute type.- Returns:
- the computed flow compute type
-
isUsingInflowFactors
public boolean isUsingInflowFactors()Checks if is using inflow factors.- Returns:
- true, if is using inflow factors
-
getLocationInflowFactor
Gets the location inflow factor.- Parameters:
element- the elementlocalFlowName- the local flow name- Returns:
- the location inflow factor
-
getHotstartOptions
Gets the hotstart options.- Returns:
- the hotstart options
-
getComputeUnReg
public boolean getComputeUnReg()return whether unregulated flow computations will be done.- Returns:
- the compute un reg
-
setComputeUnReg
public void setComputeUnReg(boolean computeUnReg) Sets the compute un reg.- Parameters:
computeUnReg- the new compute un reg
-
setComputeCumLoc
public void setComputeCumLoc(boolean computeCumLoc) -
getComputeCumLoc
public boolean getComputeCumLoc()return whether unregulated flow computations will be done.- Returns:
- the compute un reg
-
setCopyOverrides
public void setCopyOverrides(boolean copyOverrides) set whether the release (and other) overrides get copied when the alternative is copied to/from the simulation area -
getComputeHoldout
public boolean getComputeHoldout() -
setComputeHoldout
public void setComputeHoldout(boolean computeHoldout) Sets the compute holdout.- Parameters:
computeHoldout- the new compute holdout
-
getLogLevel
public int getLogLevel()Gets the log level.- Returns:
- the log level
-
setLogLevel
public void setLogLevel(int logLevel) Sets the log level.- Parameters:
logLevel- the new log level
-
getVersion
public int getVersion()Gets the version.- Returns:
- the version
-
getTimeStep
Gets the time step.- Parameters:
alt- the alt- Returns:
- [0] time step [1] timestep increment
-
getFlowComputeType
public int getFlowComputeType(int timeStepSeconds) determine what flow compute type an alternative should be using, if its flow compute type isn't set (set to FLOW_COMPUTE_DEFAULT).- Parameters:
timeStepSeconds- the timestep in seconds in case the Alt's network is available.- Returns:
- either FLOW_COMPUTE_INSTANT or FLOW_COMPUTE_PERAVG
-
initCompute
public void initCompute()Inits the compute. -
setUseYieldAnalysis
public void setUseYieldAnalysis(boolean useYieldAnalysis) Sets the uses Yield Analysis flag.- Parameters:
useYieldAnalysis- the new use yield analysis
-
useYieldAnalysis
public boolean useYieldAnalysis()Uses Yield Analysis.- Returns:
- true, if successful
-
setUserName
Sets the user name.- Parameters:
userName- the new user name
-
toString
-
addPluginSettings
Adds the plugin settings.- Parameters:
options- the options
-
getPluginSettings
Gets the plugin settings.- Parameters:
clsname- the clsname- Returns:
- the plugin settings
-
getPluginDataList
Gets the list of PluginData for the Alternative.- Returns:
- List
-
clearPluginSettings
Clear plugin settings.- Parameters:
clsname- the clsname
-
writeReport
Write report.- Parameters:
writer- the writerrtw- the rtwrun- the run- Returns:
- true, if successful
-
outputReport
Description copied from interface:AltInputReportInfcAlternative Input Report Interface for data.- Specified by:
outputReportin interfaceAltInputReportInfc
-
getComputeLauncher
public hec.rss.compute.ResSimComputeLauncher getComputeLauncher()Gets the compute launcher.- Returns:
- the compute launcher
-
setSystem
don't call this method to set the system, use setSystemIndex().- Parameters:
system- the new system
-
setTSDataSets
don't call this method to set the TSDataSets.- Parameters:
copyInputTsDataSet- the copy input ts data setcopyOutputTsDataSet- the copy output ts data set
-
setReservoirYieldAnalysis
Sets the yield analysis.- Parameters:
yieldAnalysis- the new yield analysis
-
setReverseReservoirYieldAnalysis
-
setWaterAccountYieldAnalysis
-
setReverseWaterAccountYieldAnalysis
-
setReservoirStorageVsYieldAnalysis
-
setSelectedYieldAnalysis
-
getReservoirYieldAnalysis
Gets the yield analysis.- Returns:
- the yield analysis
-
getReverseReservoirYieldAnalysis
-
getWaterAccountYieldAnalysis
-
getReverseWaterAccountYieldAnalysis
-
getReservoirStorageVsYieldAnalysis
-
getSelectedYieldAnalysis
-
getYieldAnalysis
-
setWaterAccountSet
Sets the water account set.- Parameters:
waterAccountSet- the new water account set
-
getWaterAccountSet
Gets the water account set.- Returns:
- the water account set
-
setWaterAccountSetIndex
public void setWaterAccountSetIndex(int index) -
getWaterAccountSetIndex
public int getWaterAccountSetIndex() -
getInputTSVariantNames
-
getInputTSVariants
-
getTsVariant
- Parameters:
variantName-- Returns:
-
getActiveTSProxies
returns a vector of required input, or generated output TSRecordProxies used in the current alternative default implementation elements, assume all records are active -
getWaterQualityOptions
public hec.rss.wq.model.AltWaterQualityOptions getWaterQualityOptions()- Returns:
- the water quality options
-
hasWaterQualityOptions
public boolean hasWaterQualityOptions()- Returns:
- true if the alternative has water quality options
-
getObsWQDataPath
Gets the obs water quality data path.- Returns:
- the obs water quality variable data path
-
setObsWQDataSetPath
Sets the water qulaity obs data set path.- Parameters:
path- the new data set path
-
getObsWQTSDataSet
Retrieves the TSdata set for the water quality observed data- Parameters:
variant-- Returns:
-
getObsWQTSDataSet
get the obs TSDataSet for water qulaity input for a particular variant Not implememnted yet. Waiting for use with Model Linking- Parameters:
variant- the variant name or null for the default TSDataSet- Returns:
- the ts data set for water qualtiy for the variant
-
getObsWQTSDataSet
Gets the OBS TSDataSet used for water quality input by this alternative.- Returns:
- the default observed tsDataSet for water quality
-
getObsWQPairedData
-
getObsWQPairedData
-
getObsWQPDCDataSet
-
getObsWQPDCDataSet
-
setUserInterface
- Overrides:
setUserInterfacein classManager- Parameters:
ui-- Returns:
-
setUserInterface
public mil.army.usace.hec.rmi.server.RemoteWrapper setUserInterface(mil.army.usace.hec.rmi.server.RemoteWrapper wrapper) - Overrides:
setUserInterfacein classManager
-
deleteVariant
delete the variant and all its datasets and their files- Parameters:
variant- the variant to delete- Returns:
- true if the variant was deleted
-
hasbeenAccepted
public boolean hasbeenAccepted()called when a Trial has been accepted. Need to do some cleanup of the trial -
prepareForExtract
public List<String> prepareForExtract(RunTimeWindow simPeriodRTW, RssAlt rssAlt, mil.army.usace.hec.rmi.csinterface.DSSManager dssFileManager) -
getInputMetDataDSSFileName
-