Package hec.clientapp.model
Class ModelAlt
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.clientapp.model.Manager
hec.clientapp.model.ModelAlt
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,LockableObject,MessagePrinter,TsRecordContainer,Serializable,Cloneable,Comparable,Observer,mil.army.usace.hec.rmi.csinterface.CallBackInterface,rma.lang.Modifiable
- Direct Known Subclasses:
ModelForecastAlt
- See Also:
-
Field Summary
FieldsFields 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 TypeMethodDescriptioncreateDataFiles(String directory, ManagerProxy baseDataProxy, ManagerProxyListContainer container) create the ModelForecastAlt dataFiles from the base datavoiddeleting()called when the manager proxy is deleting the manager allows the manager to do any additional clean required.getAltId()getFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.return theManagerthat thisModelAltrepresentsreturn theManagerProxyfor theManagerthat thisModelAltrepresentsintvoidinit()booleanbooleanreadFile(Identifier id) booleanrefreshDataFile(ManagerProxyListContainer container) update the data files that this ModelForecastAlt representsbooleanbooleanvoidbooleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidvoidsetProgramIndex(hec.supplemental.model.ProgramOrderItem poi) static voidshowId(boolean b) toString()voidcalled when the manager proxy is unloading the managerbooleanwriteFile(Identifier id) Methods inherited from class hec.clientapp.model.Manager
addModifiableListener, backupFile, computeComplete, copyFile, deleteFile, finalize, getCallback, getCommonDataList, getDirectory, getDSSFileManager, getDSSFileManagerWrapper, 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, refreshData, reLoadChildManagers, reLoadFile, reLoadFile, removeCallBack, removeModifiableListener, renamed, saveChildManagers, saveManager, saveManagerAs, saveManagerAs, setIdentifier, setLastModifiedTime, setLastModifiedTime, setLineAttributes, setLocked, setManagersModifiedTime, setModified, 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, 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
-
Field Details
-
FILE_EXT
- See Also:
-
-
Constructor Details
-
ModelAlt
public ModelAlt()
-
-
Method Details
-
init
public void init() -
setProgramIndex
public void setProgramIndex(hec.supplemental.model.ProgramOrderItem poi) -
getProgramIndex
public int getProgramIndex() -
setModelRef
-
getModelRef
-
setAltId
-
getAltId
-
readFile
-
writeFile
-
isManagerModified
public boolean isManagerModified() -
saveModelManager
public boolean saveModelManager() -
reloadModelManager
public boolean reloadModelManager() -
toString
-
createDataFiles
public Manager createDataFiles(String directory, ManagerProxy baseDataProxy, ManagerProxyListContainer container) create the ModelForecastAlt dataFiles from the base data- Returns:
- : new Model alt Manager created.
-
refreshDataFile
update the data files that this ModelForecastAlt represents -
showId
public static void showId(boolean b) -
getManager
return theManagerthat thisModelAltrepresentsThe
Manageris loaded once and cached. It is released when this ModelAlt'sunloadingmethod is called.- Returns:
- the Manager
-
getManagerProxy
return theManagerProxyfor theManagerthat thisModelAltrepresents- Returns:
- the ManagerProxy
-
unloading
public void unloading()Description copied from class:Managercalled when the manager proxy is unloading the manager -
deleting
public void deleting()Description copied from class:Managercalled when the manager proxy is deleting the manager allows the manager to do any additional clean required. -
getFieldObject
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- Overrides:
getFieldObjectin classManager- Parameters:
fld- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessorThis allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObjectin interfaceFieldAccessor- Overrides:
setFieldObjectin classManager- Parameters:
fld- The java field object representing the member field to be setfobj- The data to set in that field- Returns:
- returns true if successful
-