Package hec.rss.model

Class GVDataSet

All Implemented Interfaces:
AsciiSerializable, FieldAccessor, LockableObject, MessagePrinter, TsRecordContainer, Serializable, Cloneable, Comparable, Observer, mil.army.usace.hec.rmi.csinterface.CallBackInterface, rma.lang.Modifiable

public class GVDataSet extends Manager
Manager to handle Alternative Global Variable data
See Also:
  • Constructor Details

    • GVDataSet

      public GVDataSet()
  • Method Details

    • init

      public void init()
      Specified by:
      init in class Manager
    • setAltName

      public void setAltName(String name)
    • getAltName

      public String getAltName()
    • getGVRecords

      public List<GlobalVariableData> getGVRecords()
      Get the list of GlobalVariables
      Returns:
      The list of GlobalVariables
    • getGVRecords

      public List<GlobalVariableData> getGVRecords(GlobalVariableType type)
      get the list of GlobalVariables that are of type GlobalVariableType
      Parameters:
      type - the type of GlobalVariables to return
      Returns:
    • getGlobalVariableData

      public GlobalVariableData getGlobalVariableData(int id, GlobalVariableType type)
      get the alternative global variable data with the index of id
      Parameters:
      id - the id of the alternative global variable
      type - the type of the alternative global variable
      Returns:
      the alternative global variable data or null if not found
    • getGlobalVariableData

      public GlobalVariableData getGlobalVariableData(String gvName, GlobalVariableType type)
      get the alternative global variable data with the name of gvName
      Parameters:
      gvName - the name of the alternative global variable
      type - the type of the alternative global variable
      Returns:
      the alternative global variable data or null if not found
    • getDSSFilename

      public String getDSSFilename()
      get the global variable dataset's dss file
      Returns:
    • getDSSFilename

      public String getDSSFilename(Identifier identifier)
    • readFile

      public boolean readFile(Identifier id)
      Description of the Method
      Overrides:
      readFile in class Manager
      Parameters:
      id - Description of the Parameter
      Returns:
      Description of the Return Value
    • writeData

      public boolean writeData()
    • writeFile

      public boolean writeFile(Identifier id)
      Writes time series records to ascii file given in identifier.
      Overrides:
      writeFile in class Manager
      Parameters:
      id - Description of the Parameter
      Returns:
      Description of the Return Value
    • appendGVRecords

      public void appendGVRecords(GVDataSet srcGVDataSet)
      Parameters:
      srcGVDataSet -
    • createGVRecord

      public GlobalVariableData createGVRecord(GlobalVariableType type, int gvIdx)
      Parameters:
      type -
      gvIdx -
    • loadGlobalVariableValues

      public void loadGlobalVariableValues()
    • refreshData

      public boolean refreshData(Manager origMgr)
      called during save to base/replace from base
      Overrides:
      refreshData in class Manager
    • saveManagerAs

      public Manager saveManagerAs(String directory, String filePrefix, ManagerProxyListContainer container, RssSystem sys)