Package hec.clientapp.model
Class SimulationTrialRun
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.clientapp.model.Manager
hec.clientapp.model.SimulationRun
hec.clientapp.model.SimulationTrialRun
- All Implemented Interfaces:
TrialRun,hec.event.ModifiableListener,AsciiSerializable,FieldAccessor,LockableObject,hec.map.MapObjectInterface,MessagePrinter,ModelConstants,TsRecordContainer,Serializable,Cloneable,Comparable,EventListener,Observer,mil.army.usace.hec.rmi.csinterface.CallBackInterface,rma.lang.Modifiable
- Direct Known Subclasses:
RssSimTrialRun
- See Also:
-
Field Summary
FieldsFields inherited from class hec.clientapp.model.SimulationRun
_altList, _baseRunName, _modelForecastAltMgrs, _trialList, _trials, NO_SELECTIONFields 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.model.ModelConstants
FDA_MODEL_NAME, FIA_MODEL_NAME, HFP_MODEL_NAME, MFP_MODEL_NAME, RAS_MODEL_NAME, RESPRM_MODEL_NAME, RSS_MODEL_NAME, SUPPLEMENTAL_MODEL_NAME -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the TrialForecastRun objectSimulationTrialRun(boolean isBaseTrial) Constructor for the TrialForecastRun object -
Method Summary
Modifier and TypeMethodDescriptiongetFieldObject(Field fld) Gets the FieldObject attribute of the TrialForecastRun objectGets the Identifier attribute of the SimulationTrialRun objectgetKey()Gets the ModelAltWorkspaceName attribute of the SimulationRun object.Gets the ForecastRunParent attribute of the TrialForecastRun objectreturn the name with trials ie.intGets the TrialRunClassName attribute of the SimulationRun objectbooleanbooleanGets the ActiveTrial attribute of the TrialForecastRun objectbooleanGets the BaseTrial attribute of the TrialForecastRun objectbooleanGets the CurrentTrial attribute of the TrialForecastRun objectvoidsetAccepted(boolean accepted) set this trial as having been accepted.voidsetActiveTrial(boolean active) Sets the ActiveTrial attribute of the TrialForecastRun objectvoidsetCurrentTrial(boolean current) Sets the CurrentTrial attribute of the TrialForecastRun objectbooleansetFieldObject(Field fld, Object fobj) Sets the FieldObject attribute of the TrialForecastRun objectvoidsetIsBaseTrial(boolean b) Sets the IsBaseTrial attribute of the TrialForecastRun objectvoidsetModified(boolean b) Sets the Modified attribute of the TrialForecastRun objectvoidSets the RunParent attribute of the SimulationTrialRun objectvoidvoidsetTrialKey(String trialKey) voidsetTrialPosition(int pos) toString()Description of the MethodMethods inherited from class hec.clientapp.model.SimulationRun
acceptTrial, addTrial, areManagersModified, getAlternativeNameLength, getAltItems, getAltList, getBaseRunName, getComputeInundation, getConfigurationId, getCoordinateReferenceSystem, getExtent, getIdForModelAlt, getMapIdentifier, getModelAlt, getModelAlt, getModelAltClassName, getModelCount, getModelNameLength, getModelNames, getProgramOrder, getRasModelForecastAlt, getRasModelReference, getRunKey, getSimulation, getTrialKeys, getTrials, getUserName, hasModelAlt, init, isActiveRun, isExpanded, isSelected, load, loadManager, modifiedStateChanged, notifyModifiableListeners, readFile, reLoadFile, removeTrial, saveManagers, setActiveRun, setAltList, setComputeInundation, setConfigurationId, setDefaultModelAltClassName, setDescription, setExpanded, setExtent, setMapIdentifier, setModelsLocked, setName, setSelected, setSimulation, setUserName, unload, unloading, usesModeltAlt, writeFileMethods inherited from class hec.clientapp.model.Manager
addModifiableListener, backupFile, computeComplete, copyFile, deleteFile, deleting, finalize, getCallback, getCommonDataList, getDirectory, getDSSFileManager, getDSSFileManagerWrapper, getFileManager, getFilename, getGmtOffset, getInputITSDataSet, getInputTSDataSet, getLastModifiedTime, getLastModifiedTimeString, getModTime, getModTime, getOutputITSDataSet, getOutputTSDataSet, getPath, getProxyList, getReadOnly, getRelativePath, getReloadOk, getSaveAsId, 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, refreshData, reLoadChildManagers, reLoadFile, removeCallBack, removeModifiableListener, renamed, saveChildManagers, saveManager, saveManagerAs, saveManagerAs, setIdentifier, setLastModifiedTime, setLastModifiedTime, setLineAttributes, setLocked, setManagersModifiedTime, setModifiedFalse, setPath, setProgress, setProxyList, setReadOnly, setReloadOk, setUserInterface, setUserInterface, setWorkspace, writeLastModTimeMethods inherited from class hec.lang.NamedType
clone, compareTo, fireModifiedStateChanged, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, readResolve, rename, set, setIgnoreModifiedEvents, setIndex, 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 hec.map.MapObjectInterface
getNameMethods inherited from interface rma.lang.Modifiable
isModifiedMethods inherited from interface hec.clientapp.model.TrialRun
getDescription, getName, isModified, setSimulation, writeFile
-
Field Details
-
FILE_EXT
Description of the Field
-
-
Constructor Details
-
SimulationTrialRun
public SimulationTrialRun()Constructor for the TrialForecastRun object -
SimulationTrialRun
public SimulationTrialRun(boolean isBaseTrial) Constructor for the TrialForecastRun object- Parameters:
isBaseTrial- Description of Parameter
-
-
Method Details
-
setSimulationRunClassName
-
setIsBaseTrial
public void setIsBaseTrial(boolean b) Sets the IsBaseTrial attribute of the TrialForecastRun object- Parameters:
b- The new IsBaseTrial value
-
setRunParent
Sets the RunParent attribute of the SimulationTrialRun object- Specified by:
setRunParentin interfaceTrialRun- Parameters:
run- The new RunParent value
-
getRunParent
Gets the ForecastRunParent attribute of the TrialForecastRun object- Specified by:
getRunParentin interfaceTrialRun- Returns:
- The ForecastRunParent value
-
getModelAltWorkspaceName
Description copied from class:SimulationRunGets the ModelAltWorkspaceName attribute of the SimulationRun object. This represents the model directory that will be used to store the simulation run.- Specified by:
getModelAltWorkspaceNamein classSimulationRun- Returns:
- The ModelAltWorkspaceName value
-
getTrialRunClassName
Description copied from class:SimulationRunGets the TrialRunClassName attribute of the SimulationRun object- Specified by:
getTrialRunClassNamein classSimulationRun- Returns:
- returns the class name used to construct or identify the class to be used for trial runs. Allows different simulations to specify different trial classes. The class must subclass the object hec.clientapp.model.SimulationRun
- See Also:
-
getIdentifier
Gets the Identifier attribute of the SimulationTrialRun object- Specified by:
getIdentifierin interfaceTrialRun- Overrides:
getIdentifierin classManager- Returns:
- The Identifier value
-
setActiveTrial
public void setActiveTrial(boolean active) Sets the ActiveTrial attribute of the TrialForecastRun object- Parameters:
active- The new ActiveTrial value
-
setCurrentTrial
public void setCurrentTrial(boolean current) Sets the CurrentTrial attribute of the TrialForecastRun object- Parameters:
current- The new CurrentTrial value
-
setModified
public void setModified(boolean b) Sets the Modified attribute of the TrialForecastRun object- Specified by:
setModifiedin interfacerma.lang.Modifiable- Overrides:
setModifiedin classSimulationRun- Parameters:
b- The new Modified value
-
isBaseTrial
public boolean isBaseTrial()Gets the BaseTrial attribute of the TrialForecastRun object- Returns:
- The BaseTrial value
-
isActiveTrial
public boolean isActiveTrial()Gets the ActiveTrial attribute of the TrialForecastRun object- Returns:
- The ActiveTrial value
-
isCurrentTrial
public boolean isCurrentTrial()Gets the CurrentTrial attribute of the TrialForecastRun object- Returns:
- The CurrentTrial value
-
toString
Description of the Method- Overrides:
toStringin classSimulationRun- Returns:
- Description of the Returned Value
-
getKey
- Overrides:
getKeyin classSimulationRun
-
getModel
- Overrides:
getModelin classSimulationRun
-
getFileExtension
- Overrides:
getFileExtensionin classSimulationRun
-
getTrialKey
return the name with trials ie. Q1B2R3----- Specified by:
getTrialKeyin interfaceTrialRun
-
setTrialKey
-
setTrialPosition
public void setTrialPosition(int pos) -
getTrialPosition
public int getTrialPosition()- Specified by:
getTrialPositionin interfaceTrialRun
-
setFieldObject
Sets the FieldObject attribute of the TrialForecastRun object- Specified by:
setFieldObjectin interfaceFieldAccessor- Overrides:
setFieldObjectin classSimulationRun- Parameters:
fld- The new FieldObject valuefobj- The new FieldObject value- Returns:
- Description of the Returned Value
-
getFieldObject
Gets the FieldObject attribute of the TrialForecastRun object- Specified by:
getFieldObjectin interfaceFieldAccessor- Overrides:
getFieldObjectin classSimulationRun- Parameters:
fld- Description of Parameter- Returns:
- The FieldObject value
-
setAccepted
public void setAccepted(boolean accepted) set this trial as having been accepted.- Parameters:
b-
-
isAccepted
public boolean isAccepted()- Returns:
- whether this trial has been accepted.
-