Package hec.rss.model
Class GVDataSet
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.clientapp.model.Manager
hec.rss.model.GVDataSet
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,LockableObject,MessagePrinter,TsRecordContainer,Serializable,Cloneable,Comparable,Observer,mil.army.usace.hec.rmi.csinterface.CallBackInterface,rma.lang.Modifiable
Manager to handle Alternative Global Variable data
- See Also:
-
Field Summary
Fields 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_EVENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendGVRecords(GVDataSet srcGVDataSet) createGVRecord(GlobalVariableType type, int gvIdx) get the global variable dataset's dss filegetDSSFilename(Identifier identifier) getGlobalVariableData(int id, GlobalVariableType type) get the alternative global variable data with the index of idgetGlobalVariableData(String gvName, GlobalVariableType type) get the alternative global variable data with the name of gvNameGet the list of GlobalVariablesget the list of GlobalVariables that are of type GlobalVariableTypevoidinit()voidbooleanreadFile(Identifier id) Description of the MethodbooleanrefreshData(Manager origMgr) called during save to base/replace from basesaveManagerAs(String directory, String filePrefix, ManagerProxyListContainer container, RssSystem sys) voidsetAltName(String name) booleanbooleanwriteFile(Identifier id) Writes time series records to ascii file given in identifier.Methods inherited from class hec.clientapp.model.Manager
addModifiableListener, backupFile, computeComplete, copyFile, deleteFile, deleting, finalize, getCallback, getCommonDataList, getDirectory, getDSSFileManager, getDSSFileManagerWrapper, getFieldObject, getFileManager, getFilename, getGmtOffset, getIdentifier, 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, reLoadChildManagers, reLoadFile, reLoadFile, removeCallBack, removeModifiableListener, renamed, saveChildManagers, saveManager, saveManagerAs, saveManagerAs, setFieldObject, setIdentifier, setLastModifiedTime, setLastModifiedTime, setLineAttributes, setLocked, setManagersModifiedTime, setModified, setModifiedFalse, setPath, setProgress, setProxyList, setReadOnly, setReloadOk, setUserInterface, setUserInterface, setWorkspace, toString, unloading, writeLastModTimeMethods inherited from class hec.lang.NamedType
clone, compareTo, fireModifiedStateChanged, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, getName, isModified, 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, setChangedMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface rma.lang.Modifiable
isModified
-
Constructor Details
-
GVDataSet
public GVDataSet()
-
-
Method Details
-
init
public void init() -
setAltName
-
getAltName
-
getGVRecords
Get the list of GlobalVariables- Returns:
- The list of GlobalVariables
-
getGVRecords
get the list of GlobalVariables that are of type GlobalVariableType- Parameters:
type- the type of GlobalVariables to return- Returns:
-
getGlobalVariableData
get the alternative global variable data with the index of id- Parameters:
id- the id of the alternative global variabletype- the type of the alternative global variable- Returns:
- the alternative global variable data or null if not found
-
getGlobalVariableData
get the alternative global variable data with the name of gvName- Parameters:
gvName- the name of the alternative global variabletype- the type of the alternative global variable- Returns:
- the alternative global variable data or null if not found
-
getDSSFilename
get the global variable dataset's dss file- Returns:
-
getDSSFilename
-
readFile
Description of the Method -
writeData
public boolean writeData() -
writeFile
Writes time series records to ascii file given in identifier. -
appendGVRecords
- Parameters:
srcGVDataSet-
-
createGVRecord
- Parameters:
type-gvIdx-
-
loadGlobalVariableValues
public void loadGlobalVariableValues() -
refreshData
called during save to base/replace from base- Overrides:
refreshDatain classManager
-
saveManagerAs
public Manager saveManagerAs(String directory, String filePrefix, ManagerProxyListContainer container, RssSystem sys)
-