Package hec.rss.plugins.opsupport.model
Class OpSupportModelVariable
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.rss.plugins.opsupport.model.OpSupportModelVariable
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,OpSupportObject,Serializable,Cloneable,Comparable,Observer,rma.lang.Modifiable
Associates a table column (or row depending on orientation) with a ResSim location and parameter.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String[]static final intstatic final intstatic final intstatic final intstatic String[]static final intNon-editable computed valuestatic final Stringstatic final intEditablestatic final Stringstatic final intstatic final Stringstatic final intMatches observed valuestatic final Stringstatic final intContains an overridestatic final Stringstatic final intstatic final Stringstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic String[]static String[]static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final Stringstatic final 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 TypeMethodDescriptionvoidaddObject(ActionOrScript node) voidcalcLocal(int irow) voidvoidclearTimeSeries(int irow, int endrow) clone()Creates a new object of the same class as this object.voidcomputeRecession(int irow) getActiveTSProxies(Vector vec, int iotype, RssAlt alt) returns a vector of required input, or generated output TSRecordProxies used in the current alternativegetAsIndependentVariable(int opvarId) intgetDisplayedValueProperties(int step, OsiTableProperties tableProperties, OsiTableProperty drawingProps) Determine the table display properties (font, foreground and background colors) and put those properties in the provided OsiTableProperty object.getElement(int opvarId) intdoubledoubledoublebooleandoubleintvoidgetSupportingPlotTSRecords(List<OpSupportPlotLine> objList, G2dLineProperties editprop) intgetTSTextName(int varId) static intgetTypeIDbyName(String typestr) doublegetValue(int step) intintvoidinitCompute(RssRun rssRun) voidmoveObject(ActionOrScript node, boolean moveUp) voidread(BufferedReader reader) voidvoidremoveObject(ActionOrScript node) voidvoidbooleansaveData()voidsetActionsEnabled(boolean enabled) voidsetByIndependentVariable(int varid, IndependentVariable iv) voidsetElement(Element elem) voidsetElementType(int typeId) voidsetList(List<ActionOrScript> list) voidsetLocalFlowName(String str) voidsetMaxLimit(double d) voidsetMaxRecessionPeriod(double d) voidsetMinLimit(double d) voidsetModified(boolean b) Set the modified flag to true or false.voidsetNoActionValue(boolean b) voidsetRecessionConst(double c) voidsetRecessionMethod(int c) voidsetReleaseName(String str) voidsetTabConfig(OpSupportTabConfig newdata) voidsetTimeShift(int i) voidsetToObs(int irow) voidsetValue(int step, double value) voidsetVarType(int t) voidsetViewport(int i) 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
-
Field Details
-
TSTYPE_PER_AVER
- See Also:
-
TSTYPE_INST_VAL
- See Also:
-
OPVAR_TYPE_HEADWATER
public static final int OPVAR_TYPE_HEADWATER- See Also:
-
OPVAR_TYPE_LOCAL
public static final int OPVAR_TYPE_LOCAL- See Also:
-
OPVAR_TYPE_RELEASE
public static final int OPVAR_TYPE_RELEASE- See Also:
-
OPVAR_TYPE_COMPUTED
public static final int OPVAR_TYPE_COMPUTED- See Also:
-
OPVAR_TYPE_ELEVTAR
public static final int OPVAR_TYPE_ELEVTAR- See Also:
-
OPVAR_TYPE_EXTERNTS
public static final int OPVAR_TYPE_EXTERNTS- See Also:
-
OPVAR_TYPE_DIVERSION
public static final int OPVAR_TYPE_DIVERSION- See Also:
-
OPVAR_TYPE_STRARRAY
-
OPVAR_OBSTS_NAME
- See Also:
-
OPVAR_EDITTS_NAME
- See Also:
-
OPVAR_COMPTS_NAME
- See Also:
-
OPVAR_OVRDTS_NAME
- See Also:
-
OPVAR_INFLTS_NAME
- See Also:
-
OPVAR_RAWTS_NAME
- See Also:
-
OPVAR_OBSTS_ID
public static final int OPVAR_OBSTS_IDMatches observed value- See Also:
-
OPVAR_EDITTS_ID
public static final int OPVAR_EDITTS_IDEditable- See Also:
-
OPVAR_COMPTS_ID
public static final int OPVAR_COMPTS_IDNon-editable computed value- See Also:
-
OPVAR_OVRDTS_ID
public static final int OPVAR_OVRDTS_IDContains an override- See Also:
-
OPVAR_INFLTS_ID
public static final int OPVAR_INFLTS_ID- See Also:
-
OPVAR_SUPTS_ID
public static final int OPVAR_SUPTS_ID- See Also:
-
OPVAR_RAWTS_ID
public static final int OPVAR_RAWTS_ID- See Also:
-
OPVAR_RECESS_OPT1
public static final int OPVAR_RECESS_OPT1- See Also:
-
OPVAR_RECESS_OPT2
public static final int OPVAR_RECESS_OPT2- See Also:
-
TESTID_ISOBS
public static final int TESTID_ISOBS- See Also:
-
TESTID_ISEDITABLE
public static final int TESTID_ISEDITABLE- See Also:
-
TESTID_ISCOMPUTED
public static final int TESTID_ISCOMPUTED- See Also:
-
TESTID_ISOVRD
public static final int TESTID_ISOVRD- See Also:
-
TESTID_LE_MINLIM
public static final int TESTID_LE_MINLIM- See Also:
-
TESTID_GE_MAXLIM
public static final int TESTID_GE_MAXLIM- See Also:
-
TESTID_ISVALID
public static final int TESTID_ISVALID- See Also:
-
TESTID_LRGST_VAL
public static final int TESTID_LRGST_VAL- See Also:
-
TESTID_SMLST_VAL
public static final int TESTID_SMLST_VAL- See Also:
-
TESTID_IN_LOOKBACK
public static final int TESTID_IN_LOOKBACK- See Also:
-
ELEM_TYPE_JUNC
public static final int ELEM_TYPE_JUNC- See Also:
-
ELEM_TYPE_RES
public static final int ELEM_TYPE_RES- See Also:
-
ELEM_TYPE_RCH
public static final int ELEM_TYPE_RCH- See Also:
-
ELEM_TYPE_DIV
public static final int ELEM_TYPE_DIV- See Also:
-
ELEM_TYPE_STRARRAY
-
ELEM_TYPE_CLASSSTR
-
RECESS_OPT_STRARRAY
-
-
Constructor Details
-
OpSupportModelVariable
-
OpSupportModelVariable
public OpSupportModelVariable()
-
-
Method Details
-
getOSConfig
-
getListNoHierarchy
- Specified by:
getListNoHierarchyin interfaceOpSupportObject- Returns:
-
getListHierarchy
-
setList
-
resetAndAddActionsOrScriptsList
-
getActionsScripts
- Specified by:
getActionsScriptsin interfaceOpSupportObject
-
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
-
setElementType
public void setElementType(int typeId) -
getElementType
public int getElementType() -
setElement
-
getElement
-
setLocalFlowName
-
getLocalFlowName
-
setReleaseName
-
getReleaseName
-
setVarType
public void setVarType(int t) -
getVarType
public int getVarType() -
getRecessionConst
public double getRecessionConst() -
setRecessionConst
public void setRecessionConst(double c) -
getRecessionMethod
public int getRecessionMethod() -
setRecessionMethod
public void setRecessionMethod(int c) -
getTimeShift
public int getTimeShift() -
setTimeShift
public void setTimeShift(int i) -
getTSTextName
-
getSupportingPlotTSRecords
-
getEditableTSContainer
-
getRawTSContainer
-
initCompute
- Parameters:
rssRun-
-
getValue
public double getValue(int step) -
getDisplayedValueProperties
public int getDisplayedValueProperties(int step, OsiTableProperties tableProperties, OsiTableProperty drawingProps) Determine the table display properties (font, foreground and background colors) and put those properties in the provided OsiTableProperty object.- Parameters:
step- , the time step array indextableProperties- , the set of table drawing property criteriadrawingProps- , the cell drawing properties determined by this method- Returns:
- -1 in case of error
-
setValue
public void setValue(int step, double value) - Parameters:
row-parseDouble-
-
saveData
public boolean saveData()- Returns:
-
refreshData
public void refreshData() -
computeRecession
public void computeRecession(int irow) - Parameters:
irow-
-
setByIndependentVariable
- Parameters:
opvarObstsId-_obsIV-
-
getAsIndependentVariable
- Parameters:
opvarObstsId-- Returns:
-
getElement
- Parameters:
opvarObstsId-- Returns:
-
setTabConfig
- Parameters:
newdata-
-
setToObs
public void setToObs(int irow) - Parameters:
irow-
-
calcLocal
public void calcLocal(int irow) - Parameters:
irow-
-
clearTimeSeries
public void clearTimeSeries(int irow, int endrow) - Parameters:
irow-
-
setMaxLimit
public void setMaxLimit(double d) - Parameters:
d-
-
setMinLimit
public void setMinLimit(double d) -
getMaxLimit
public double getMaxLimit() -
getMinLimit
public double getMinLimit() -
getTypeIDbyName
- Parameters:
typestr-- Returns:
-
getSupportingTSRefList
- Returns:
-
getMaxRecessionPeriod
public double getMaxRecessionPeriod()- Returns:
-
setMaxRecessionPeriod
public void setMaxRecessionPeriod(double d) - Parameters:
parseDouble-
-
setViewport
public void setViewport(int i) - Parameters:
i-
-
getViewport
public int getViewport() -
getActiveTSProxies
returns a vector of required input, or generated output TSRecordProxies used in the current alternative
-