Package hec.rss.plugins.opsupport.model
Class OpSupportConfig
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.rss.plugins.opsupport.model.OpSupportConfig
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,OpSupportObject,Serializable,Cloneable,Comparable,Observer,rma.lang.Modifiable
Root of Data Model for the Operation Support Configuration
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields 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 TypeMethodDescriptionvoidaddObject(ActionOrScript node) voidclone()Creates a new object of the same class as this object.voiddeleteTab(int icurtab) getActiveTSProxies(Vector vec, int iotype, RssAlt alt) returns a vector of required input, or generated output TSRecordProxies used in the current alternativeintbooleanintgetLineProperties(String name) Returns a Line Properties object for a given name.booleanintdouble[]getOverrideArray(String keyid, int len) booleanbooleangetTabConfig(int i) getTabConfig(String name) intvoidvoidinitCompute(RssRun rssRun) loadTSProxy(TSRecordProxy tsproxy, int tsDataType) voidmoveObject(ActionOrScript node, boolean moveUp) voidread(BufferedReader reader) voidremoveObject(ActionOrScript node) voidvoidsetActionsEnabled(boolean enabled) voidvoidsetColumnWidth(int w) voidsetComputeOnClear(boolean b) voidsetDecimalPrecision(int w) voidsetLineProperties(String name, G2dLineProperties properties) Sets the line properties for a given name.voidsetModified(boolean b) Set the modified flag to true or false.voidsetNoActionValue(boolean b) voidsetOSPluginData(OSAltPluginData osaltdata) voidsetProtectLookback(boolean b) voidsetProtectLookbackDefault(boolean b) voidvoidvoidsetRssSystem(RssSystem sys) voidbooleanstepIsInLookback(int step) Test whether the given time step is during the lookback period of the ResSim simulationvoidwrite(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
-
Field Details
-
INPUT_TSDATA
public static final int INPUT_TSDATA- See Also:
-
OUTPUT_TSDATA
public static final int OUTPUT_TSDATA- See Also:
-
OBS_TSDATA
public static final int OBS_TSDATA- See Also:
-
-
Constructor Details
-
OpSupportConfig
public OpSupportConfig()
-
-
Method Details
-
getOverrideArray
-
getActionsScriptsList
-
getNoActionValue
public boolean getNoActionValue()- Specified by:
getNoActionValuein interfaceOpSupportObject
-
setNoActionValue
public void setNoActionValue(boolean b) - Specified by:
setNoActionValuein interfaceOpSupportObject
-
setActionsScriptsList
-
getActionsScripts
- Specified by:
getActionsScriptsin interfaceOpSupportObject
-
getListNoHierarchy
- Specified by:
getListNoHierarchyin interfaceOpSupportObject- Returns:
-
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
-
getRssRun
-
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
-
setTabConfigList
-
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
-
getColumnWidth
public int getColumnWidth() -
setColumnWidth
public void setColumnWidth(int w) -
getDecimalPrecision
public int getDecimalPrecision() -
setDecimalPrecision
public void setDecimalPrecision(int w) -
setRssSystem
-
getRssSystem
-
getTabCount
public int getTabCount() -
getTabConfig
-
deleteTab
public void deleteTab(int icurtab) - Parameters:
icurtab-
-
addTab
-
getTabConfig
-
setOSPluginData
- Parameters:
osaltdata-
-
setRssAlt
- Parameters:
alternative-
-
getRssAlt
-
setRssRun
- Parameters:
rssrun-
-
getOSAltPluginData
- Returns:
-
initCompute
-
initCompute
public void initCompute()- Parameters:
rssRun-
-
loadTSProxy
-
getTabConfigList
-
getProtectLookback
public boolean getProtectLookback()- Returns:
-
setProtectLookback
public void setProtectLookback(boolean b) -
getComputeOnClear
public boolean getComputeOnClear() -
setComputeOnClear
public void setComputeOnClear(boolean b) -
getProtectLookbackDefault
public boolean getProtectLookbackDefault()- Returns:
-
setProtectLookbackDefault
public void setProtectLookbackDefault(boolean b) -
stepIsInLookback
public boolean stepIsInLookback(int step) Test whether the given time step is during the lookback period of the ResSim simulation- Parameters:
time- step index- Returns:
- true if step is in lookback
-
getNumLookbackSteps
public int getNumLookbackSteps()- Returns:
-
getLineProperties
Returns a Line Properties object for a given name. If there is no line properties for the given name a NULL value is returned.- Parameters:
name-- Returns:
-
getLinePropertiesMap
-
setLineProperties
Sets the line properties for a given name. NULL line properties are acceptable.- Parameters:
name-properties-
-
getActiveTSProxies
returns a vector of required input, or generated output TSRecordProxies used in the current alternative
-