public abstract class AbstractSimulation extends ManagerProxyListManager implements AsciiSerializable, Simulation
LASTMODIFIED_STRING_description, _index, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT| Constructor and Description |
|---|
AbstractSimulation() |
AbstractSimulation(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
long |
getAltComputeTime(java.lang.String altname,
java.lang.String model)
get the alternative's last compute time.
|
abstract java.lang.String[] |
getAlternatives() |
boolean |
getComputeAll() |
java.lang.String |
getEndDateString()
Gets the EndDateString attribute of the Simulation object
|
java.lang.Object |
getFieldObject(java.lang.reflect.Field fld)
This method allows access to java.lang.reflect.Field objects within the implementing
class.
|
java.lang.String |
getLookbackDateString()
Gets the LookbackDateString attribute of the Simulation object
|
abstract java.lang.String |
getOutputDSSFileName() |
abstract java.lang.String |
getOutputDSSFilePath()
return the full path to the output DSS file
|
RunTimeWindow |
getRunTimeWindow() |
abstract java.lang.String |
getSimulationPath() |
java.util.Vector |
getSimulationRuns() |
java.lang.String |
getStartDateString()
Gets the StartDateString attribute of the Simulation object
|
int |
getTimeIncrementType() |
int |
getTimestep() |
java.lang.String |
getTimeStepString()
get the TimeStep String.
|
boolean |
getTimeWindow(HecTime start,
HecTime end)
Gets the TimeWindow attribute of the Simulation object
|
java.lang.String |
getTimeWindowString()
Gets the TimeWindowString attribute of the Simulation object
|
boolean |
isLoaded() |
boolean |
isModified()
Check if the object has been modified.
|
abstract void |
loadWorkspace(java.lang.String remoteRegistry,
java.lang.String baseDir) |
boolean |
readFile(Identifier id) |
boolean |
removeTrial(AltItem altItem,
TrialReference trialRef2Remove) |
void |
setComputeAll(boolean b) |
void |
setComputeDisplay(hec.client.RMIProgressDisplay dlg) |
void |
setEndDate(java.lang.String date)
Sets the EndDate attribute of the Simulation object
|
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 |
setLookbackDate(java.lang.String date)
Sets the LookbackDate attribute of the Simulation object
|
void |
setStartDate(java.lang.String date)
Sets the StartDate attribute of the Simulation object
|
void |
setTaskNumber(int i) |
void |
setTimestep(int ts)
This sets the time step in hours
|
void |
setTimeStep(int timeStep,
int increment)
Sets the time step and increment type it is.
|
boolean |
writeFile(Identifier id)
Saves the Run data to the specified ASCII file.
|
dataChanged, getChildWorkspace, getCommonDataList, getDataListContainer, getGmtOffset, getManagerIdentifier, getManagerIDList, getManagerIDList, getManagerProxy, getManagerProxy, getManagerProxyList, getManagerProxyList, getManagerRmiWorkspace, getTitleName, getUnitSystem, getWorkspaceConfigFile, getWorkspaceName, getWorkspacePath, init, isNetworked, loadManagerByName, managerChanged, mapAdded, mapRemoved, newManager, newManager, openManager, openManager, openManager, openManager, openManager, openManagerByName, saveAllManagers, saveAllModifiedManagers, saveManager, saveManager, saveManagerAs, saveManagerAs, saveWorkspace, saveWorkspace, setManagerRmiWorkspace, unloading, unloadManager, userChangedaddModifiableListener, backupFile, copyFile, deleteFile, deleting, finalize, getCallback, getDirectory, getDSSFileManager, getDSSFileManagerWrapper, getFileManager, getFilename, getIdentifier, getInputITSDataSet, getInputTSDataSet, getLastModifiedTime, getLastModifiedTimeString, getOutputITSDataSet, getOutputTSDataSet, getPath, getProxyList, getReadOnly, getRelativePath, getReloadOk, getUserInterface, getWorkspace, hasLock, isCanceled, isForecastManager, loadComplete, loadSaveAsFile, makeAbsolutePath, makeAbsolutePath, makeAbsolutePathFromWatershed, makeRelativePath, makeRelativePathFromWatershed, modifiyForSaveAs, newFile, newTSRecordProxy, newTSRecordProxy, notify, openFile, printErrorMessage, printLogMessage, printMessage, printSeparator, printStatus, printTableRow, printWarningMessage, refreshData, reLoadChildManagers, reLoadFile, reLoadFile, removeCallBack, removeModifiableListener, renamed, saveChildManagers, saveManager, saveManagerAs, saveManagerAs, setIdentifier, setLastModifiedTime, setLastModifiedTime, setLineAttributes, setLocked, setModified, setModifiedFalse, setPath, setProgress, setProxyList, setReadOnly, setReloadOk, setUserInterface, setUserInterface, setWorkspace, toStringclone, compareTo, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, getName, isValid, rename, set, setDescription, setIgnoreModifiedEvents, setIndex, setName, setValid, update, useRecursiveModifiedTestaddObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObserversequals, getClass, hashCode, notify, notifyAll, wait, wait, waitacceptTrial, compute, createNewTrialRun, getDescription, getModelTrials, getName, getStreamAlignment, getTrialRunNames, getUnusedModelTrials, setModifiedmakeAbsolutePathpublic AbstractSimulation()
public AbstractSimulation(java.lang.String name)
public abstract java.lang.String getOutputDSSFileName()
public abstract java.lang.String getOutputDSSFilePath()
public java.lang.String getStartDateString()
SimulationgetStartDateString in interface Simulationpublic void setStartDate(java.lang.String date)
SimulationsetStartDate in interface Simulationdate - The new StartDate valuepublic java.lang.String getEndDateString()
SimulationgetEndDateString in interface Simulationpublic void setEndDate(java.lang.String date)
SimulationsetEndDate in interface Simulationdate - The new EndDate valuepublic java.lang.String getLookbackDateString()
SimulationgetLookbackDateString in interface Simulationpublic void setLookbackDate(java.lang.String date)
SimulationsetLookbackDate in interface Simulationdate - The new LookbackDate valuepublic void setTimestep(int ts)
public int getTimeIncrementType()
public boolean isModified()
NamedTypeisModified in interface rma.lang.ModifiableisModified in class NamedTypepublic abstract void loadWorkspace(java.lang.String remoteRegistry,
java.lang.String baseDir)
public abstract java.lang.String[] getAlternatives()
public boolean isLoaded()
public void setTimeStep(int timeStep,
int increment)
HecTimepublic int getTimestep()
public java.lang.String getTimeStepString()
1HOUR, 1DAY, 30MINUTEpublic RunTimeWindow getRunTimeWindow()
public java.lang.String getTimeWindowString()
SimulationgetTimeWindowString in interface Simulationpublic boolean getTimeWindow(HecTime start, HecTime end)
SimulationgetTimeWindow in interface Simulationstart - Description of Parameterend - Description of Parameterpublic void setComputeDisplay(hec.client.RMIProgressDisplay dlg)
public void setComputeAll(boolean b)
public boolean getComputeAll()
public long getAltComputeTime(java.lang.String altname,
java.lang.String model)
public boolean writeFile(Identifier id)
The file is written using type=param formatting. See the readData method for definition of types and parameters.
public boolean readFile(Identifier id)
public java.util.Vector getSimulationRuns()
public boolean removeTrial(AltItem altItem, TrialReference trialRef2Remove)
removeTrial in interface Simulationpublic void setTaskNumber(int i)
public abstract java.lang.String getSimulationPath()
public java.lang.Object getFieldObject(java.lang.reflect.Field fld)
FieldAccessorgetFieldObject in interface FieldAccessorgetFieldObject in class Managerfld - The field to get.public boolean setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
FieldAccessorsetFieldObject in interface FieldAccessorsetFieldObject in class Managerfld - The java field object representing the member field to be setfobj - The data to set in that field