Package hec.rss.model

Class WaterAccountCurveDataReader

java.lang.Object
hec.rss.model.WaterAccountCurveDataReader

public class WaterAccountCurveDataReader extends Object
  • Constructor Details

    • WaterAccountCurveDataReader

      public WaterAccountCurveDataReader(RssRun rssRun)
      This class aids in the reading of water account data from DSS.
      Parameters:
      rssRun - The rssRun
  • Method Details

    • getTimeSeriesContainer

      public TimeSeriesContainer getTimeSeriesContainer(String dssPathname)
      Gets a time series container using the dssPathname
    • getTimeSeriesDataSetForWaterAccount

      public TimeSeriesDataSet getTimeSeriesDataSetForWaterAccount(hec.rss.client.WaterAccountPlotRowItem selectedRowItem, int variableId)
      Gets the time series data set using the WaterAccountPlotRowItem and variable id.
      Parameters:
      selectedRowItem - The selected water account. This is used to get the B part.
      variableId - These integer values come from RssModelVariableConstants class. for example: RssModelVariableConstants.VID_WA_CURRENT_VOLUME
    • getReservoir

      public ReservoirElement getReservoir(int i)
      Returns the reservoir at index i in the water account set.
    • getTimeSeriesDataSetForReservoir

      public TimeSeriesDataSet getTimeSeriesDataSetForReservoir(int reservoirIndex, int variableId)
      Gets the time series data set for the reservoir at that index in the water account set.
      Parameters:
      reservoirIndex - The reservoir index in the water account set.
      variableId - These integer values come from RssModelVariableConstants class. for example: RssModelVariableConstants.VID_WA_CURRENT_VOLUME
    • getGuideCurveTSDS

      public TimeSeriesDataSet getGuideCurveTSDS(int reservoirIndex)
      Gets the guide curve time series data set for the reservoir at that index in the water account set.
      Parameters:
      reservoirIndex - The reservoir index in the water account set.
    • getPoolActualStorageTSDS

      public TimeSeriesDataSet getPoolActualStorageTSDS(int reservoir)
    • createDssBPart

      public String createDssBPart(String name, boolean isDefault)
      Parameters:
      name - this should be the water account name or the reservoir name if it is default
      isDefault - Is this the default water account