Package hec.rss.model
Class SimulationExtractModel
java.lang.Object
hec.rss.model.SimulationExtractModel
- All Implemented Interfaces:
SimulationExtract,Serializable
Title: CWMS Development Project Description: Copyright: Copyright (c) 2001
Company: Resource Management Associates
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the SimulationExtractModel object -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyGVDataSet(RunTimeWindow simrtw, String simDSSFile, RssAlt rssAlt, mil.army.usace.hec.rmi.csinterface.DSSManager dssRecManagerTo, mil.army.usace.hec.rmi.csinterface.DSSManager dssRecManagerFrom) voidcopyPDCDataSet(RunTimeWindow runTimeWindow, String simDSSFile, PDCDataSet pdDataSet, mil.army.usace.hec.rmi.csinterface.DSSManager dssRecManagerTo, mil.army.usace.hec.rmi.csinterface.DSSManager dssRecManagerFrom) voidcopyTsDataSet(RunTimeWindow simrtw, String simDSSFile, TSDataSet tsDataSet, mil.army.usace.hec.rmi.csinterface.DSSManager dssRecManagerTo, mil.army.usace.hec.rmi.csinterface.DSSManager dssRecManagerFrom) copy TS records for the time window to the simulation dss filevoidcopyTsDataSet(RunTimeWindow simrtw, String simDSSFile, TSDataSet tsDataSet, mil.army.usace.hec.rmi.csinterface.DSSManager dssRecManagerTo, mil.army.usace.hec.rmi.csinterface.DSSManager dssRecManagerFrom, String type) copy TS records for the time window to the simulation dss filebooleanextractAlternative(RssAlt rAlt, TSDataSet uniqueTSRecords, HecTime startTime) booleanhasError()return true if an error occurred during the copying of the DSS data to the simulation dss filebooleanrunExtract(SimulationPeriod simPeriod) Runs the extract for an reservoir simulation.voidsetFPartExcludeFilter(Pattern pattern) voidsetVariantName(String variantName) void
-
Constructor Details
-
SimulationExtractModel
public SimulationExtractModel() -
SimulationExtractModel
Constructor for the SimulationExtractModel object
-
-
Method Details
-
setWorkspace
- Specified by:
setWorkspacein interfaceSimulationExtract
-
runExtract
Runs the extract for an reservoir simulation. scrolls through the list of RSS Alternatives, and retrieves the necessary time series data for each alternative and copies the data into the/simulation/simulation.dss file. - Specified by:
runExtractin interfaceSimulationExtract- Parameters:
simPeriod- This is a reference to the simulations that the extract is running against. Information about were the simulation directory, simulation alternatives, etc are retrieved from this parameter.- Returns:
- returns true the extract was successful
-
copyPDCDataSet
public void copyPDCDataSet(RunTimeWindow runTimeWindow, String simDSSFile, PDCDataSet pdDataSet, mil.army.usace.hec.rmi.csinterface.DSSManager dssRecManagerTo, mil.army.usace.hec.rmi.csinterface.DSSManager dssRecManagerFrom) -
copyGVDataSet
public void copyGVDataSet(RunTimeWindow simrtw, String simDSSFile, RssAlt rssAlt, mil.army.usace.hec.rmi.csinterface.DSSManager dssRecManagerTo, mil.army.usace.hec.rmi.csinterface.DSSManager dssRecManagerFrom) - Parameters:
simrtw-simDSSFile-rssAlt-dssRecManagerTo-dssRecManagerFrom-
-
extractAlternative
- Parameters:
rAlt-uniqueTSRecords-startTime-- Returns:
-
hasError
public boolean hasError()return true if an error occurred during the copying of the DSS data to the simulation dss file- Returns:
- true if there is an error
-
getErrors
-
copyTsDataSet
public void copyTsDataSet(RunTimeWindow simrtw, String simDSSFile, TSDataSet tsDataSet, mil.army.usace.hec.rmi.csinterface.DSSManager dssRecManagerTo, mil.army.usace.hec.rmi.csinterface.DSSManager dssRecManagerFrom) copy TS records for the time window to the simulation dss file -
copyTsDataSet
public void copyTsDataSet(RunTimeWindow simrtw, String simDSSFile, TSDataSet tsDataSet, mil.army.usace.hec.rmi.csinterface.DSSManager dssRecManagerTo, mil.army.usace.hec.rmi.csinterface.DSSManager dssRecManagerFrom, String type) copy TS records for the time window to the simulation dss file -
setFPartExcludeFilter
- Parameters:
pattern-
-
setVariantName
-