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

public class OpSupportConfig extends NamedType implements OpSupportObject
Root of Data Model for the Operation Support Configuration
See Also:
  • Field Details

  • Constructor Details

    • OpSupportConfig

      public OpSupportConfig()
  • Method Details

    • getOverrideArray

      public double[] getOverrideArray(String keyid, int len)
    • getActionsScriptsList

      public List<ActionOrScript> getActionsScriptsList()
    • getNoActionValue

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

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

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

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

      public List<ActionOrScript> getListNoHierarchy()
      Specified by:
      getListNoHierarchy in interface OpSupportObject
      Returns:
    • 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
    • getRssRun

      public RssRun getRssRun()
    • 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
    • setTabConfigList

      public void setTabConfigList(List<OpSupportTabConfig> tabs)
    • clone

      public OpSupportConfig 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)
    • getColumnWidth

      public int getColumnWidth()
    • setColumnWidth

      public void setColumnWidth(int w)
    • getDecimalPrecision

      public int getDecimalPrecision()
    • setDecimalPrecision

      public void setDecimalPrecision(int w)
    • setRssSystem

      public void setRssSystem(RssSystem sys)
    • getRssSystem

      public RssSystem getRssSystem()
    • getTabCount

      public int getTabCount()
    • getTabConfig

      public OpSupportTabConfig getTabConfig(int i)
    • deleteTab

      public void deleteTab(int icurtab)
      Parameters:
      icurtab -
    • addTab

      public OpSupportTabConfig addTab(String name)
    • getTabConfig

      public OpSupportTabConfig getTabConfig(String name)
    • setOSPluginData

      public void setOSPluginData(OSAltPluginData osaltdata)
      Parameters:
      osaltdata -
    • setRssAlt

      public void setRssAlt(RssAlt alternative)
      Parameters:
      alternative -
    • getRssAlt

      public RssAlt getRssAlt()
    • setRssRun

      public void setRssRun(RssRun rssrun)
      Parameters:
      rssrun -
    • getOSAltPluginData

      public OSAltPluginData getOSAltPluginData()
      Returns:
    • initCompute

      public void initCompute(RssRun rssRun)
    • initCompute

      public void initCompute()
      Parameters:
      rssRun -
    • loadTSProxy

      public TSRecord loadTSProxy(TSRecordProxy tsproxy, int tsDataType)
    • getTabConfigList

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

      public G2dLineProperties getLineProperties(String name)
      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

      public Map<String,G2dLineProperties> getLinePropertiesMap()
    • setLineProperties

      public void setLineProperties(String name, G2dLineProperties properties)
      Sets the line properties for a given name. NULL line properties are acceptable.
      Parameters:
      name -
      properties -
    • 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