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

public class OpSupportModelVariable extends NamedType implements OpSupportObject
Associates a table column (or row depending on orientation) with a ResSim location and parameter.
See Also:
  • Field Details

  • Constructor Details

    • OpSupportModelVariable

      public OpSupportModelVariable(OpSupportTabConfig tabconfig, String n)
    • OpSupportModelVariable

      public OpSupportModelVariable()
  • Method Details

    • getOSConfig

      public OpSupportConfig getOSConfig()
    • getListNoHierarchy

      public List<ActionOrScript> getListNoHierarchy()
      Specified by:
      getListNoHierarchy in interface OpSupportObject
      Returns:
    • getListHierarchy

      public List<ActionOrScript> getListHierarchy()
    • setList

      public void setList(List<ActionOrScript> list)
    • resetAndAddActionsOrScriptsList

      public void resetAndAddActionsOrScriptsList(List<ActionOrScript> list)
    • getActionsScripts

      public OpSupportActionsScripts getActionsScripts()
      Specified by:
      getActionsScripts in interface OpSupportObject
    • moveObject

      public void moveObject(ActionOrScript node, boolean moveUp)
      Specified by:
      moveObject in interface OpSupportObject
    • addObject

      public void addObject(ActionOrScript node)
      Specified by:
      addObject in interface OpSupportObject
    • removeObject

      public void removeObject(ActionOrScript node)
      Specified by:
      removeObject in interface OpSupportObject
    • resetActions

      public void resetActions()
      Specified by:
      resetActions in interface OpSupportObject
    • clearActions

      public void clearActions()
      Specified by:
      clearActions in interface OpSupportObject
    • setActionsEnabled

      public void setActionsEnabled(boolean enabled)
      Specified by:
      setActionsEnabled in interface OpSupportObject
    • getNoActionValue

      public boolean getNoActionValue()
      Specified by:
      getNoActionValue in interface OpSupportObject
    • setNoActionValue

      public void setNoActionValue(boolean b)
      Specified by:
      setNoActionValue in interface OpSupportObject
    • setModified

      public void setModified(boolean b)
      Description copied from class: NamedType
      Set the modified flag to true or false.
      Specified by:
      setModified in interface rma.lang.Modifiable
      Overrides:
      setModified in class NamedType
    • clone

      public OpSupportModelVariable clone()
      Description copied from class: NamedType
      Creates 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.
      Overrides:
      clone in class NamedType
    • read

      public void read(BufferedReader reader) throws IOException
      Throws:
      IOException
    • write

      public void write(BufferedWriter writer)
    • setElementType

      public void setElementType(int typeId)
    • getElementType

      public int getElementType()
    • setElement

      public void setElement(Element elem)
    • getElement

      public Element getElement()
    • setLocalFlowName

      public void setLocalFlowName(String str)
    • getLocalFlowName

      public String getLocalFlowName()
    • setReleaseName

      public void setReleaseName(String str)
    • getReleaseName

      public String 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

      public String getTSTextName(int varId)
    • getSupportingPlotTSRecords

      public void getSupportingPlotTSRecords(List<OpSupportPlotLine> objList, G2dLineProperties editprop)
    • getEditableTSContainer

      public TimeSeriesContainer getEditableTSContainer()
    • getRawTSContainer

      public TimeSeriesContainer getRawTSContainer()
    • initCompute

      public void initCompute(RssRun rssRun)
      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 index
      tableProperties - , the set of table drawing property criteria
      drawingProps - , 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

      public void setByIndependentVariable(int varid, IndependentVariable iv)
      Parameters:
      opvarObstsId -
      _obsIV -
    • getAsIndependentVariable

      public IndependentVariable getAsIndependentVariable(int opvarId)
      Parameters:
      opvarObstsId -
      Returns:
    • getElement

      public Element getElement(int opvarId)
      Parameters:
      opvarObstsId -
      Returns:
    • setTabConfig

      public void setTabConfig(OpSupportTabConfig newdata)
      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

      public static int getTypeIDbyName(String typestr)
      Parameters:
      typestr -
      Returns:
    • getSupportingTSRefList

      public List<OSVariableTSRef> 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

      public Vector getActiveTSProxies(Vector vec, int iotype, RssAlt alt)
      returns a vector of required input, or generated output TSRecordProxies used in the current alternative