public abstract class SimulationRun extends Manager implements AsciiSerializable, hec.map.MapObjectInterface, hec.event.ModifiableListener, ModelConstants
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FILE_EXT |
static java.lang.String |
NO_SELECTION |
LASTMODIFIED_STRING_description, _index, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENTFDA_MODEL_NAME, FIA_MODEL_NAME, HFP_MODEL_NAME, MFP_MODEL_NAME, RAS_MODEL_NAME, RESPRM_MODEL_NAME, RSS_MODEL_NAME, SUPPLEMENTAL_MODEL_NAME| Constructor and Description |
|---|
SimulationRun()
Constructor for the SimulationRun object
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptTrial(AltItem altItem,
int pos,
java.lang.String newTrialKey,
boolean propagate) |
void |
addTrial(int mgrIndex,
int modelPos,
java.lang.String trialKey) |
boolean |
areManagersModified()
check to see if any of the managers used by this system is modified.
|
int |
getAlternativeNameLength() |
java.util.Vector<AltItem> |
getAltItems(java.lang.String programName)
return the list of AltItems that represent all alternatives for the given program.
|
java.util.Vector<AltItem> |
getAltList() |
java.lang.String |
getBaseRunName() |
boolean |
getComputeInundation() |
long |
getConfigurationId() |
hec.map.crs.CoordinateReferenceSystem |
getCoordinateReferenceSystem()
Returns the coordinate reference system that describes the location of this
map.
|
hec.map.WorldRect |
getExtent()
satisfy the MapObjectInterface
|
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 |
getFileExtension() |
java.lang.String |
getIdForModelAlt(ModelAlt alt)
return the ID for the ModelAlt
alt |
java.lang.String |
getKey() |
hec.map.MapIdentifier |
getMapIdentifier()
satisfy the MapObjectInterface
|
java.lang.String |
getModel(java.lang.String programName) |
ModelAlt |
getModelAlt(AltItem altItem) |
ModelAlt |
getModelAlt(java.lang.String programName)
returns the first model in the execution sequence for the programName
|
java.lang.String |
getModelAltClassName()
Gets the name of the class used to group model alternatives.
|
abstract java.lang.String |
getModelAltWorkspaceName()
Gets the ModelAltWorkspaceName attribute of the SimulationRun object.
|
int |
getModelCount() |
int |
getModelNameLength() |
java.util.Vector<java.lang.String> |
getModelNames(java.lang.String modelName)
return the list of keys (Q1B0R1) for the specified model (rss)
|
java.util.Vector |
getProgramOrder() |
ModelForecastAlt |
getRasModelForecastAlt()
get the FIA System
|
java.lang.String |
getRunKey(AltItem altItem)
get the key (Q1) for the AltItem
|
Simulation |
getSimulation() |
java.util.Vector |
getTrialKeys(int modelPos) |
abstract java.lang.String |
getTrialRunClassName()
Gets the TrialRunClassName attribute of the SimulationRun object
|
java.util.Vector |
getTrials()
return the list of TrialRuns
|
java.lang.String |
getUserName() |
boolean |
hasModelAlt(java.lang.String program,
int index)
see if this SimulationRun contains a ModelAlt for Program
program
with manager index index |
void |
init() |
boolean |
isActiveRun() |
boolean |
isExpanded() |
boolean |
isSelected() |
void |
load()
satisfy the MapObjectInterface
|
void |
modifiedStateChanged(rma.lang.Modifiable mgr,
boolean modified) |
boolean |
readFile(Identifier id) |
boolean |
reLoadFile(Identifier id)
Called when the file gets modified so the manager always has the most current data
|
boolean |
removeTrial(SimulationTrialRun trial2Remove)
remove the trial from this SimulationRun
|
void |
saveManagers() |
void |
setActiveRun(boolean b) |
void |
setAltList(java.util.Vector v) |
void |
setComputeInundation(boolean compute) |
void |
setConfigurationId(long configId) |
void |
setDescription(java.lang.String forecastDescription)
Set the NamedType's description to the argument String.
|
void |
setExpanded(boolean expanded) |
void |
setExtent(hec.map.WorldRect rect)
satisfy the MapObjectInterface
|
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 |
setMapIdentifier(hec.map.MapIdentifier mapId)
satisfy the MapObjectInterface
|
boolean |
setModelsLocked(int lockType) |
void |
setName(java.lang.String forecastName)
Set the NamedTypes's name to the argument String.
|
void |
setSelected(boolean b) |
void |
setSimulation(Simulation sim) |
void |
setUserName(java.lang.String name) |
java.lang.String |
toString() |
void |
unload()
satisfy the MapObjectInterface
|
void |
unloading()
called when the manager proxy is unloading the manager
|
boolean |
usesModeltAlt(ModelAlt malt) |
boolean |
writeFile(Identifier id) |
addModifiableListener, backupFile, copyFile, deleteFile, deleting, finalize, getCallback, getCommonDataList, getDirectory, getDSSFileManager, getDSSFileManagerWrapper, getFileManager, getFilename, getGmtOffset, getIdentifier, getInputITSDataSet, getInputTSDataSet, getLastModifiedTime, getLastModifiedTimeString, getOutputITSDataSet, getOutputTSDataSet, getPath, getProxyList, getReadOnly, getRelativePath, getReloadOk, getUnitSystem, getUserInterface, getWorkspace, getWorkspacePath, 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, removeCallBack, removeModifiableListener, renamed, saveChildManagers, saveManager, saveManagerAs, saveManagerAs, setIdentifier, setLastModifiedTime, setLastModifiedTime, setLineAttributes, setLocked, setModified, setModifiedFalse, setPath, setProgress, setProxyList, setReadOnly, setReloadOk, setUserInterface, setUserInterface, setWorkspaceclone, compareTo, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, rename, set, setIgnoreModifiedEvents, setIndex, setValid, update, useRecursiveModifiedTestaddObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObserverspublic static final java.lang.String NO_SELECTION
public static final java.lang.String FILE_EXT
public int getAlternativeNameLength()
public int getModelNameLength()
public abstract java.lang.String getModelAltWorkspaceName()
public java.lang.String getModelAltClassName()
public ModelForecastAlt getRasModelForecastAlt()
public abstract java.lang.String getTrialRunClassName()
SimulationRunpublic void setSimulation(Simulation sim)
public Simulation getSimulation()
public boolean acceptTrial(AltItem altItem, int pos, java.lang.String newTrialKey, boolean propagate)
public void setName(java.lang.String forecastName)
NamedTypepublic void setDescription(java.lang.String forecastDescription)
NamedTypesetDescription in class NamedTypepublic void setConfigurationId(long configId)
public long getConfigurationId()
public java.util.Vector getTrials()
public void setComputeInundation(boolean compute)
public boolean getComputeInundation()
public java.util.Vector<AltItem> getAltItems(java.lang.String programName)
public java.lang.String getModel(java.lang.String programName)
public ModelAlt getModelAlt(java.lang.String programName)
public boolean usesModeltAlt(ModelAlt malt)
public boolean hasModelAlt(java.lang.String program,
int index)
program
with manager index indexpublic java.lang.String getIdForModelAlt(ModelAlt alt)
altpublic boolean writeFile(Identifier id)
public boolean reLoadFile(Identifier id)
reLoadFile in class Managerpublic boolean readFile(Identifier id)
public java.lang.String getRunKey(AltItem altItem)
altItem - public java.util.Vector<java.lang.String> getModelNames(java.lang.String modelName)
public void setUserName(java.lang.String name)
public java.lang.String getUserName()
public java.lang.String getBaseRunName()
public void setAltList(java.util.Vector v)
public java.util.Vector<AltItem> getAltList()
public int getModelCount()
public void setActiveRun(boolean b)
public boolean isActiveRun()
public void setSelected(boolean b)
public boolean isSelected()
public java.lang.String getFileExtension()
public void addTrial(int mgrIndex,
int modelPos,
java.lang.String trialKey)
public boolean removeTrial(SimulationTrialRun trial2Remove)
public java.util.Vector getTrialKeys(int modelPos)
public boolean areManagersModified()
public void saveManagers()
public boolean setModelsLocked(int lockType)
throws LockFailedException
LockFailedExceptionpublic java.lang.String getKey()
public void unloading()
Managerpublic void unload()
unload in interface hec.map.MapObjectInterfacepublic hec.map.WorldRect getExtent()
getExtent in interface hec.map.MapObjectInterfacepublic void setExtent(hec.map.WorldRect rect)
setExtent in interface hec.map.MapObjectInterfacerect - The new Extent valuepublic hec.map.MapIdentifier getMapIdentifier()
getMapIdentifier in interface hec.map.MapObjectInterfacepublic void setMapIdentifier(hec.map.MapIdentifier mapId)
setMapIdentifier in interface hec.map.MapObjectInterfacemapId - The new MapIdentifier valuepublic void load()
load in interface hec.map.MapObjectInterfacepublic java.util.Vector getProgramOrder()
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 fieldpublic void modifiedStateChanged(rma.lang.Modifiable mgr,
boolean modified)
modifiedStateChanged in interface hec.event.ModifiableListenerpublic void setExpanded(boolean expanded)
public boolean isExpanded()
public hec.map.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
hec.map.MapObjectInterfacegetCoordinateReferenceSystem in interface hec.map.MapObjectInterface