Package hec.rss.model
Class RssRun
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.clientapp.model.Manager
hec.rss.model.RssRun
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,LockableObject,MessagePrinter,TsRecordContainer,AltInputReportInfc,RssModelVariableConstants,RssReturnStatusConstants,Serializable,Cloneable,Comparable,Runnable,Callable,Observer,mil.army.usace.hec.rmi.csinterface.CallBackInterface,rma.lang.Modifiable
public class RssRun
extends Manager
implements Runnable, Callable, Serializable, AsciiSerializable, RssReturnStatusConstants, RssModelVariableConstants, AltInputReportInfc
Manages the information required for a single execution of the
RSS model and controlls the computation process.
This class replaces the hec.rss.model.Run object
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Objectadditional compute optionsstatic final intstatic final intstatic final intstatic final intstatic final String[]static final intstatic final Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields 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_EVENTFields inherited from interface hec.rss.model.RssModelVariableConstants
CUMLOC_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_PRIORITY, VID_OPRULE_ROUTE_LAG, VID_OPRULE_ROUTE_MAXOFFSET, VID_OPRULE_ROUTE_MINOFFSET, 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_OPRULE_WQCD_ELEV, 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_ELEV_EST, VID_POOL_ELEVROC, VID_POOL_EVAP, VID_POOL_FLOWINTOSTOR, VID_POOL_HINDELEV, VID_POOL_HINDSTOR, VID_POOL_HOLDOUT, VID_POOL_INFLOW, VID_POOL_INPUTEVAP, VID_POOL_NETINFLOW, VID_POOL_OUTFLOW, VID_POOL_OUTFLOW_EST, 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_CHARGES, VID_WA_CREDIT, VID_WA_CURRENT_MAX_VOLUME, VID_WA_CURRENT_VOLUME, VID_WA_HINDSTOR, VID_WA_LOSSES, VID_WA_PUMPBACK, VID_WA_RULE_DEMAND, VID_WA_SURPLUS, VID_WA_TRANSFERS, WQID_OFFSETFields inherited from interface hec.rss.model.RssReturnStatusConstants
RTN_CANCELED, RTN_NOPROBLEM, RTN_OPCHANGE, RTN_PROBLEM -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbackupConfigFiles(String backupDir) call()booleancheckTSRecords(Vector tsrecVec, RunTimeWindow rtw) read in the data for the record and check completeness of the datavoidClears reference to input TSDataSet objects to force a refresh of the TSDataSetvoidClears references to output TSDataSet objects to force a refresh of the TSDataSetsintcompute()Runs the RSS simulationintWater Account Firm Yield compute methodintconstructGvDssPath(GlobalVariable gv, String paramMod) Construct and output pathname from a TSRecord ProxyconstructTSRecordProxyDssPath(TSRecordProxy rp, String paramMod) Construct and output pathname from a TSRecord Proxy This is used for DSS outputConstruct and output pathname from a TSRecord Proxy This is used for WQ Input TS Recordsprotected voidTakes as input a list of TSRecordProxy that contain TSRecordImpl and converts the data to the Vertical data for the location they are forprotected GVDataSetcreateForecastInputGVData(GVDataSet inputGVdata, String filename, String fpart) Build an input GVData set for a forecast.protected PDCDataSetcreateForecastInputPDCData(PDCDataSet inputPDCData, String filename, String fpart) protected TSDataSetcreateForecastInputTSData(TSDataSet inputTSdata, String filename, String fpart) Build an input TSData set for a forecast.createOutputGVData(String altname, String computeType, int computeId) Build a Global Variable data set containing all Global Variable 1records output from an RSS System.createOutputTSData(String altname, String computeType, int computeId) createOutputWQTSData(String altname) intcumLocCompute(long[] time) voiddeleting()called when the manager proxy is deleting the manager allows the manager to do any additional clean required.intfinalizeCompute(long[] time, boolean saveTS) intfinalizeCompute(long[] time, boolean saveTS, boolean saveRssOutput) findReservoirForHindcastData(HindcastData selectedHd) get additional compute options.return the input TSDataSet - load it if it is not already availablereturn the current alternative pathget a reference to the Run's capacity overridesbooleanbooleanreturn whether reservoir holdout flow computations will be doneintbooleanreturn whether unregulated flow computations will be donereturns the output tsdataset for cumulative local flowget the RunTimeWIndow for the current Compute Time Block, if no timeblocking is occurring this will return the same lookback/start/end times as the Simulation's RunTimeWindowStores Run member data into a RunDataRecord which can be passed to other objects.get a reference to the run's diversion release overridesgets the DSS output file nameget a reference to the run's reservoir elevation target overridesList<hec.rss.plugins.model.EmbeddedAlternative> getFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.get a reference to the run's adjustable flow gate opening overridesreturn the input Global Variable DataSet - load it if it is not already availablereturn the input TSDataSet - load it if it is not already availablegetInputWQTSDataSet(boolean printUseMessage) retrieves the input data set for water quality time series datalongreturn the greater of the Run's modified time or the Alternative'sintreturn the observed TSDataSet - load it if it is not already availableretrieves the observed data set fdor water quality time series datareturns a reference to the output object, or null if output does not existgetOutputFile(boolean convertSpaces) returns the output time series record f pathname partsave the report and then return the report Identifier.returns the output tsdataset for regulated flow runsreturns the output global variable datasetreturns the output tsdataset for regulated flowgetRegOutputTSData(boolean isReleaseDecesion) returns the output tsdataset for regulated flowhec.rss.client.reports.ReleaseDecisionReportOptionsget a reference to the run's release overrides, first updating adjustable flow listintgetRunId()gets the runId that is used as the DSS output fpart for WCDS CAVI computeslongreturn the Run's modified time.return the current run time windowprotected IdentifiergetSaveAsId(String directory, String filePrefix, int index, Identifier srcId) booleanGet the value of the stopFYIter flag.intlong[]long[]long[]long[]long[]long[]long[]return a string representation of the time window limits - lookback to end of forecastprotected longgetTSRecordByPathParts(String tsName, String paramName) returns the output tsdataset for regulated flowhec.rss.wq.model.WQRungetWQRun()Get the active water quality run.intholdOutCompute(long[] time) voidinit()intinitCompute(long[] time) intPrepares this run for post processing in the ResSim Simulation Module.voidbooleanReturn true if the alternative is configured for coupled water quality and flow operation simulation.booleanbooleanCheck if the object has been modified.booleanprotected voidmatchUpInputGvData(List<GlobalVariable> globalVarList, GVDataSet gvdata) match the network global variable to the alternative's GVDataSet GlobalVariableDatavoidoutputReport(AlternativeInputReport report, org.jdom.Element elem) Alternative Input Report Interface for data.protected voidprotected voidprintDatumConversionMessages(List tspVec) intpulseRoutingCompute(long[] time) booleanreadFile(Identifier id) voidget the DSS data into the release Overrides table.booleanrefreshData(Manager mgr) refresh this managers data from the origMgr's dataintregCompute(long[] time) intregFYCompute(long[] time) booleanreLoadFile(Identifier id) voidrun()Provides the entry point when the compute function is performed within a thread.saveManagerAs(String directory, String filePrefix, ManagerProxyListContainer container) duplicate our data file to a new file and add a new Manager that uses it to the ManagerProxyListContainer specifiedbooleanintvoidsetAdditionalComputeOptions(Object additionalOptions) set additional compute options.voidsetAlternative(RssAlt alt) don't call this method to set the alternative.voidsetAltPath(String path) set the alternative path and clear current managersvoidsetComputeCumLoc(boolean computeCumLoc) voidsetComputeHoldout(boolean computeHoldout) voidsetComputeObserver(hec.client.RunObserver obs) sets the object that watches for completion of the RSS compute.voidsetComputeType(int computeType) voidsetComputeUnReg(boolean computeUnReg) booleanSet member data from the values in a RunDataRecord.voidsetDSSOutputFile(String path) sets the DSS output file namebooleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetForecastDir(String forecastDir) set the forecast directory during a cavi computevoidsetFpartMultiplier(int multiplier) voidsetFpartPos(int inputPosition, int modelPosition) used for input FPart and output FPart during a CAVI compute.voidsetIterative(boolean iterative) voidsetLastComputeStatus(ComputeStatus lastStatus) voidsetLogLevel(int logLevel) voidsetNumberTasks(int numTasks) voidsetOutputFPart(String fpart) voidsetReleaseDecisionReportOptions(hec.rss.client.reports.ReleaseDecisionReportOptions options) voidsets the runId that is used as the DSS output fpart for WCDS CAVI computesvoidsetRunProgress(double dp) voidsetSelectedSummaryReportCollectionRun(String collectionRun) voidsetStopFYIter(boolean stopFYIter) Set the value of the stopFYIter flag.voidsetStorageOverrideType(int type) set the Storage override type.voidsetTaskNumber(int taskNum) voidsetTimeBlocking(boolean timeBlocking) voidsetTimeCLoc(long loc) voidsetTimeCplt(long cplt) voidsetTimeHOut(long hOut) voidsetTimeInit(long init) voidsetTimePulse(long reg) voidsetTimeReg2(long reg2) voidsetTimeUReg(long uReg) voidsets the time window for computation this method is called before every compute force time window to be on even time step boundariesmil.army.usace.hec.rmi.server.RemoteWrappersetUserInterface(mil.army.usace.hec.rmi.server.RemoteWrapper uiWrap) voidsetVariantName(String variant) booleandoubledoublevoidcalled when the manager proxy is unloading the managerintunRegCompute(long[] time) voidbooleanupdate the list of adjustable flows in the release override objectbooleanbooleanwriteFile(Identifier id) booleanwrite the computed output to a fileMethods inherited from class hec.clientapp.model.Manager
addModifiableListener, backupFile, computeComplete, copyFile, deleteFile, finalize, getCallback, getCommonDataList, getDirectory, getDSSFileManager, getDSSFileManagerWrapper, getFileManager, getFilename, getGmtOffset, getIdentifier, getInputITSDataSet, getInputTSDataSet, getLastModifiedTimeString, getModTime, getModTime, getOutputITSDataSet, getOutputTSDataSet, getPath, getProxyList, getReadOnly, getRelativePath, getReloadOk, getSaveAsId, getUnitSystem, getUserInterface, getWorkspace, getWorkspacePath, hasLock, isCanceled, isForecastManager, loadComplete, loadSaveAsFile, makeAbsolutePath, makeAbsolutePath, makeAbsolutePathFromWatershed, makeRelativePath, makeRelativePathFromWatershed, modifiyForSaveAs, newFile, newTSRecordProxy, newTSRecordProxy, notify, notifyModifiableListeners, openFile, printErrorMessage, printLogMessage, printMessage, printSeparator, printStatus, printTableRow, printWarningMessage, reLoadChildManagers, reLoadFile, removeCallBack, removeModifiableListener, renamed, saveChildManagers, saveManager, saveManagerAs, setIdentifier, setLastModifiedTime, setLastModifiedTime, setLineAttributes, setLocked, setManagersModifiedTime, setModified, setModifiedFalse, setPath, setProgress, setProxyList, setReadOnly, setReloadOk, setWorkspace, toString, writeLastModTimeMethods inherited from class hec.lang.NamedType
clone, compareTo, fireModifiedStateChanged, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, getName, isValid, readResolve, rename, set, setDescription, setIgnoreModifiedEvents, setIndex, setName, setValid, update, useRecursiveModifiedTestMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Field Details
-
VERSION
public static final int VERSION- See Also:
-
FILE_EXTENSION
- See Also:
-
COMPUTE_REG
public static final int COMPUTE_REG- See Also:
-
COMPUTE_UNREG
public static final int COMPUTE_UNREG- See Also:
-
COMPUTE_HOLDOUT
public static final int COMPUTE_HOLDOUT- See Also:
-
COMPUTE_PULSE_ROUTING
public static final int COMPUTE_PULSE_ROUTING- See Also:
-
COMPUTE_CUMLOC
public static final int COMPUTE_CUMLOC- See Also:
-
COMPUTE_TYPE_NAME
-
MSG_RSSRUNERROR
-
MSG_COMPUTEFAIL
-
MSG_INITCOMPUTE
-
MSG_EVALROUTING
-
MSG_COMPUTEREG
-
MSG_COMPUTECUMLOC
-
MSG_COMPUTEUNREG
-
MSG_COMPUTEHOLDOUT
-
MSG_FAILEDTOLOADALT
-
PROGRESS_START
public static final int PROGRESS_START- See Also:
-
PROGRESS_INIT
public static final int PROGRESS_INIT- See Also:
-
PROGRESS_EVALROUTE
public static final int PROGRESS_EVALROUTE- See Also:
-
PROGRESS_CUMLOC
public static final int PROGRESS_CUMLOC- See Also:
-
PROGRESS_UNREG
public static final int PROGRESS_UNREG- See Also:
-
PROGRESS_REG
public static final int PROGRESS_REG- See Also:
-
PROGRESS_HOLDOUT
public static final int PROGRESS_HOLDOUT- See Also:
-
PROGRESS_END
public static final int PROGRESS_END- See Also:
-
_additionalComputeOptions
additional compute options
-
-
Constructor Details
-
RssRun
public RssRun() -
RssRun
-
-
Method Details
-
usesTimeBlocking
public boolean usesTimeBlocking() -
setTimeBlocking
public void setTimeBlocking(boolean timeBlocking) -
isIterative
public boolean isIterative() -
setIterative
public void setIterative(boolean iterative) -
setStopFYIter
public void setStopFYIter(boolean stopFYIter) Set the value of the stopFYIter flag. If the stopFYIter is true, the Firm Yield run will stop the loop that iteratively evaluates regulated flows. -
getStopFYIter
public boolean getStopFYIter()Get the value of the stopFYIter flag. If the stopFYIter is true, the Firm Yield run will stop the loop that iteratively evaluates regulated flows.- Returns:
- the stopFYIter flag
-
init
public void init() -
setRunProgress
public void setRunProgress(double dp) -
initProgress
public void initProgress() -
getTSRecordByPathParts
-
getDataRecord
Stores Run member data into a RunDataRecord which can be passed to other objects. Typically this function is used to provide data to a dialog for display and/or editing.- Returns:
- A RunDataRecord containing copies of current member data
- See Also:
-
setDataRecord
Set member data from the values in a RunDataRecord. Typically called by a dialog to set the values of data members.- Parameters:
rec- RunDataRecord containing new data for this Run- See Also:
-
setAltPath
set the alternative path and clear current managers -
getAltPath
return the current alternative path -
getRunTimeWindow
return the current run time window -
getTimeWindowString
return a string representation of the time window limits - lookback to end of forecast -
setComputeObserver
public void setComputeObserver(hec.client.RunObserver obs) sets the object that watches for completion of the RSS compute. -
getAlternative
return the input TSDataSet - load it if it is not already available -
getNetwork
-
getInputGVData
return the input Global Variable DataSet - load it if it is not already available -
getInputWQTSDataSet
retrieves the input data set for water quality time series data- Returns:
- TSDataSet
-
getInputWQPDCDataSet
-
getObsWQTSDataSet
retrieves the observed data set fdor water quality time series data- Returns:
- TSDataSet
-
getInputTSData
return the input TSDataSet - load it if it is not already available -
getObservedTSData
return the observed TSDataSet - load it if it is not already available -
getOutputTSData
returns the output tsdataset for regulated flow runs -
getWQOutputTSData
-
getReleaseDecisionReportOptions
public hec.rss.client.reports.ReleaseDecisionReportOptions getReleaseDecisionReportOptions() -
setReleaseDecisionReportOptions
public void setReleaseDecisionReportOptions(hec.rss.client.reports.ReleaseDecisionReportOptions options) -
setSelectedSummaryReportCollectionRun
-
getSelectedSummaryReportCollectionRun
-
getReportKey
-
clearInputTSData
public void clearInputTSData()Clears reference to input TSDataSet objects to force a refresh of the TSDataSet -
clearOutputTSData
public void clearOutputTSData()Clears references to output TSDataSet objects to force a refresh of the TSDataSets -
getRegOutputGVData
returns the output global variable dataset -
getRegOutputTSData
returns the output tsdataset for regulated flow -
getRegOutputTSData
returns the output tsdataset for regulated flow -
getUnregOutputTSData
returns the output tsdataset for regulated flow -
getCumLocOutputTSData
returns the output tsdataset for cumulative local flow -
call
-
run
public void run()Provides the entry point when the compute function is performed within a thread. -
compute
public int compute()Runs the RSS simulation -
getEmbeddedAltList
-
computeStandard
public int computeStandard() -
isCoupledWQCompute
public boolean isCoupledWQCompute()Return true if the alternative is configured for coupled water quality and flow operation simulation.- Returns:
- true if the WQ option is set for coupled water quality and operations simulation
-
shouldComputeWaterQuality
public boolean shouldComputeWaterQuality()- Returns:
-
computeFirmYield
public int computeFirmYield()Water Account Firm Yield compute method- Returns:
- RTN_NOPROBLEM if successful
-
initCompute
public int initCompute(long[] time) -
initForPostProcessing
public int initForPostProcessing()Prepares this run for post processing in the ResSim Simulation Module. This routing sets up all data model connectivity, but does not load time series arrays.- Returns:
- RTN_NOPROBLEM if successful
-
pulseRoutingCompute
public int pulseRoutingCompute(long[] time) -
cumLocCompute
public int cumLocCompute(long[] time) -
unRegCompute
public int unRegCompute(long[] time) -
regCompute
public int regCompute(long[] time) -
regFYCompute
public int regFYCompute(long[] time) -
holdOutCompute
public int holdOutCompute(long[] time) -
finalizeCompute
public int finalizeCompute(long[] time, boolean saveTS) -
finalizeCompute
public int finalizeCompute(long[] time, boolean saveTS, boolean saveRssOutput) -
getCurrentComputeBlockRunTimeWindow
get the RunTimeWIndow for the current Compute Time Block, if no timeblocking is occurring this will return the same lookback/start/end times as the Simulation's RunTimeWindow- Returns:
- the RunTimeWindow
-
backupConfigFiles
-
getOutputFile
-
getOutput
returns a reference to the output object, or null if output does not exist -
printDatumConversionMessages
-
printConversionTable
protected void printConversionTable() -
convertInputTimeSeriesToVerticalDatum
Takes as input a list of TSRecordProxy that contain TSRecordImpl and converts the data to the Vertical data for the location they are for- Parameters:
tspVec-
-
checkTSRecords
read in the data for the record and check completeness of the data -
findReservoirForHindcastData
-
unloading
public void unloading()called when the manager proxy is unloading the manager -
getTimeBlocks
-
getRoutingTimeSteps
public int getRoutingTimeSteps() -
createOutputTSData
-
createOutputWQTSData
-
createOutputGVData
Build a Global Variable data set containing all Global Variable 1records output from an RSS System. This method is called before each compute. -
updateOutputFPart
public void updateOutputFPart() -
constructTSRecordProxyDssPath
Construct and output pathname from a TSRecord Proxy This is used for DSS output -
constructWQTSRecordProxyDssPath
Construct and output pathname from a TSRecord Proxy This is used for WQ Input TS Records -
constructGvDssPath
Construct and output pathname from a TSRecord Proxy -
getOutputFPart
returns the output time series record f pathname part -
setOutputFPart
-
getDSSOutputFile
gets the DSS output file name -
setForecastDir
set the forecast directory during a cavi compute -
setDSSOutputFile
sets the DSS output file name -
setRunId
sets the runId that is used as the DSS output fpart for WCDS CAVI computes -
getRunId
gets the runId that is used as the DSS output fpart for WCDS CAVI computes -
setTimeWindow
sets the time window for computation this method is called before every compute force time window to be on even time step boundaries -
getDiversionOverrides
get a reference to the run's diversion release overrides- Returns:
-
getReleaseOverrides
get a reference to the run's release overrides, first updating adjustable flow list -
getElevationOverrides
get a reference to the run's reservoir elevation target overrides -
getGateOverrides
get a reference to the run's adjustable flow gate opening overrides -
getCapacityOverrides
get a reference to the Run's capacity overrides -
getStorageOverrides
-
getElevationStorageOverrides
-
readReleaseOverrides
public void readReleaseOverrides()get the DSS data into the release Overrides table. need to call updateReleaseOverrides first. -
updateReleaseOverrides
public boolean updateReleaseOverrides()update the list of adjustable flows in the release override object -
createForecastInputGVData
Build an input GVData set for a forecast.- Parameters:
inputGVdata-filename-fpart-- Returns:
-
createForecastInputPDCData
protected PDCDataSet createForecastInputPDCData(PDCDataSet inputPDCData, String filename, String fpart) -
matchUpInputGvData
match the network global variable to the alternative's GVDataSet GlobalVariableData- Parameters:
globalVarList-gvdata-
-
createForecastInputTSData
Build an input TSData set for a forecast. -
writeOutput
write the computed output to a file -
writeFile
-
reLoadFile
- Overrides:
reLoadFilein classManager
-
readFile
-
getRunModifiedTime
public long getRunModifiedTime()return the Run's modified time. -
setFpartPos
public void setFpartPos(int inputPosition, int modelPosition) used for input FPart and output FPart during a CAVI compute. -
setFpartMultiplier
public void setFpartMultiplier(int multiplier) -
getLastModifiedTime
public long getLastModifiedTime()return the greater of the Run's modified time or the Alternative's- Overrides:
getLastModifiedTimein classManager
-
getComputeUnReg
public boolean getComputeUnReg()return whether unregulated flow computations will be done -
setComputeUnReg
public void setComputeUnReg(boolean computeUnReg) -
getComputeHoldout
public boolean getComputeHoldout()return whether reservoir holdout flow computations will be done -
setComputeHoldout
public void setComputeHoldout(boolean computeHoldout) -
getComputeCumLoc
public boolean getComputeCumLoc()- Returns:
-
setComputeCumLoc
public void setComputeCumLoc(boolean computeCumLoc) -
getLogLevel
public int getLogLevel() -
setLogLevel
public void setLogLevel(int logLevel) -
isModified
public boolean isModified()Description copied from class:NamedTypeCheck if the object has been modified.- Specified by:
isModifiedin interfacerma.lang.Modifiable- Overrides:
isModifiedin classNamedType- Returns:
- true if the object has been modified
-
saveManagerAs
public Manager saveManagerAs(String directory, String filePrefix, ManagerProxyListContainer container) Description copied from class:Managerduplicate our data file to a new file and add a new Manager that uses it to the ManagerProxyListContainer specified- Overrides:
saveManagerAsin classManager- Returns:
- the new Manager
-
getSaveAsId
- Overrides:
getSaveAsIdin classManager
-
refreshData
Description copied from class:Managerrefresh this managers data from the origMgr's data- Overrides:
refreshDatain classManager
-
setStorageOverrideType
public void setStorageOverrideType(int type) set the Storage override type.- Parameters:
type- one of ReleaseOverrides.ELEV_STORAGE or ReleaseOverrides.STORAGE
-
getStorageOverrideType
public int getStorageOverrideType() -
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 classManager- 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 classManager- 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
-
getTimeInit
public long[] getTimeInit() -
setTimeInit
public void setTimeInit(long init) -
getTimePulse
public long[] getTimePulse() -
setTimePulse
public void setTimePulse(long reg) -
getTimeCLoc
public long[] getTimeCLoc() -
setTimeCLoc
public void setTimeCLoc(long loc) -
getTimeUReg
public long[] getTimeUReg() -
setTimeUReg
public void setTimeUReg(long uReg) -
getTimeReg2
public long[] getTimeReg2() -
setTimeReg2
public void setTimeReg2(long reg2) -
getTimeHOut
public long[] getTimeHOut() -
setTimeHOut
public void setTimeHOut(long hOut) -
getTimeCplt
public long[] getTimeCplt() -
setTimeCplt
public void setTimeCplt(long cplt) -
getReportPath
-
saveReport
public boolean saveReport() -
getOutputReportId
save the report and then return the report Identifier.- Returns:
- the Report Identifier if the report was created successfully, null if it was not.
-
getTotalComputeTime
protected long getTotalComputeTime()- Returns:
- the _TOTAL_TIME
-
outputReport
Description copied from interface:AltInputReportInfcAlternative Input Report Interface for data.- Specified by:
outputReportin interfaceAltInputReportInfc
-
setAlternative
don't call this method to set the alternative. use setAltPath()- Parameters:
alt-
-
setTaskNumber
public void setTaskNumber(int taskNum) -
setNumberTasks
public void setNumberTasks(int numTasks) -
isSeededCompute
public boolean isSeededCompute() -
simulationEventRandomSeed
public double simulationEventRandomSeed() -
simulationRealizationRandomSeed
public double simulationRealizationRandomSeed() -
seededIterationNumber
public int seededIterationNumber() -
setAdditionalComputeOptions
set additional compute options. Wat needs to do some special processing on the pathnames so this is here as a generic way to pass those options in. Its dealt with in a subclass. CAVI ensemble running a native ResSim ensemble contains the ensemble id String to run- Parameters:
additionalOptions-
-
getAdditionalComputeOptions
get additional compute options. Wat needs to do some special processing on the pathnames so this is here as a generic way to pass those options in. Its dealt with in a subclass. CAVI ensemble running a native ResSim ensemble contains the ensemble id String to run -
setVariantName
- Parameters:
variant-
-
getVariantName
-
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. -
setComputeType
public void setComputeType(int computeType) - Parameters:
computeType-
-
getComputeType
public int getComputeType() -
getLastComputeStatus
-
setLastComputeStatus
-
getWQRun
public hec.rss.wq.model.WQRun getWQRun()Get the active water quality run. Returns null if this not WQ should not compute or if the WQRun is null.- Returns:
- the active water quality run, or null
-
setUserInterface
- Overrides:
setUserInterfacein classManager- Parameters:
ui-- Returns:
-
setUserInterface
public mil.army.usace.hec.rmi.server.RemoteWrapper setUserInterface(mil.army.usace.hec.rmi.server.RemoteWrapper uiWrap) - Overrides:
setUserInterfacein classManager
-