Package hec.rss.plugins.opsupport.model
Class OpSupportTabConfig
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.rss.plugins.opsupport.model.OpSupportTabConfig
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,OpSupportObject,Serializable,Cloneable,Comparable,Observer,rma.lang.Modifiable
- See Also:
-
Field Summary
Fields 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 TypeMethodDescriptionaddModelVariable(String name) voidaddObject(ActionOrScript node) voidcalcLocal(int imv, int irow) voidvoidclearTimeSeries(int imv, int irow, int endrow) clone()Creates a new object of the same class as this object.voidcomputeRession(int imv, int irow) voiddeleteModelVariable(int i) voidgetActiveTSProxies(Vector vec, int iotype, RssAlt alt) returns a vector of required input, or generated output TSRecordProxies used in the current alternativegetModelVariable(int i) getModelVariable(String name) intreturn the position in the model variable list that contains the given model variablebooleanintvoidinitCompute(RssRun rssRun) voidmoveObject(ActionOrScript node, boolean moveUp) voidread(BufferedReader reader) voidvoidremoveObject(ActionOrScript node) voidvoidbooleansaveData()voidsetActionsEnabled(boolean enabled) voidsetList(List<ActionOrScript> list) voidsetModified(boolean b) Set the modified flag to true or false.voidsetNoActionValue(boolean b) voidsetOSConfig(OpSupportConfig newData) voidsetToObs(int imv, int irow) voidwrite(BufferedWriter writer) Methods inherited from class hec.lang.NamedType
addModifiableListener, compareTo, fireModifiedStateChanged, getDescription, getDisplayName, getFieldObject, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, readResolve, removeModifiableListener, rename, set, setDescription, setFieldObject, setIgnoreModifiedEvents, setIndex, setName, setValid, toString, update, useRecursiveModifiedTestMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Constructor Details
-
OpSupportTabConfig
public OpSupportTabConfig() -
OpSupportTabConfig
-
-
Method Details
-
getOSConfig
-
getListNoHierarchy
- Specified by:
getListNoHierarchyin interfaceOpSupportObject- Returns:
-
getListHierarchy
-
getActionsScripts
- Specified by:
getActionsScriptsin interfaceOpSupportObject
-
setList
-
resetAndAddActionsOrScriptsList
-
moveObject
- Specified by:
moveObjectin interfaceOpSupportObject
-
addObject
- Specified by:
addObjectin interfaceOpSupportObject
-
removeObject
- Specified by:
removeObjectin interfaceOpSupportObject
-
resetActions
public void resetActions()- Specified by:
resetActionsin interfaceOpSupportObject
-
clearActions
public void clearActions()- Specified by:
clearActionsin interfaceOpSupportObject
-
setActionsEnabled
public void setActionsEnabled(boolean enabled) - Specified by:
setActionsEnabledin interfaceOpSupportObject
-
getNoActionValue
public boolean getNoActionValue()- Specified by:
getNoActionValuein interfaceOpSupportObject
-
setNoActionValue
public void setNoActionValue(boolean b) - Specified by:
setNoActionValuein interfaceOpSupportObject
-
setModified
public void setModified(boolean b) Description copied from class:NamedTypeSet the modified flag to true or false.- Specified by:
setModifiedin interfacerma.lang.Modifiable- Overrides:
setModifiedin classNamedType
-
clone
Description copied from class:NamedTypeCreates a new object of the same class as this object.
It then initializes each of the new object's fields by assigning it the same value as the corresponding field in this object. No
constructor is called. -
read
- Throws:
IOException
-
write
-
getNumModelVariables
public int getNumModelVariables() -
getModelVariable
-
getModelVariable
-
addModelVariable
- Parameters:
name-
-
getOsConfig
- Returns:
-
getOSAltPluginData
- Returns:
-
initCompute
- Parameters:
rssRun-
-
saveData
public boolean saveData()- Returns:
-
refreshData
public void refreshData() -
computeRession
public void computeRession(int imv, int irow) - Parameters:
irow-i-
-
deleteModelVariable
public void deleteModelVariable(int i) - Parameters:
i-
-
deleteModelVariable
- Parameters:
mv-
-
setOSConfig
- Parameters:
newData-
-
setToObs
public void setToObs(int imv, int irow) - Parameters:
irow-i-
-
calcLocal
public void calcLocal(int imv, int irow) - Parameters:
irow-i-
-
clearTimeSeries
public void clearTimeSeries(int imv, int irow, int endrow) - Parameters:
irow-i-
-
getModelVariablePosition
return the position in the model variable list that contains the given model variable- Parameters:
osmv- the model variable to find- Returns:
- the position of the model variable in _varList or -1 if it is not found
-
getModelVariableList
- Returns:
-
getActiveTSProxies
returns a vector of required input, or generated output TSRecordProxies used in the current alternative
-