Class TSRecordImpl

All Implemented Interfaces:
AsciiSerializable, FieldAccessor, TSRecord, Serializable, Cloneable, Comparable, Observer, mil.army.usace.hec.metadata.VerticalDatum, rma.lang.Modifiable
Direct Known Subclasses:
AltTimeSeriesGlobalData, LocalTSRecordImpl, RssTSRecordImpl, TSRecordProxy

public class TSRecordImpl extends AbstractTSRecord
See Also:
  • Field Details

    • _tsDataSet

      protected TSDataSet _tsDataSet
      The _ts data set.
  • Constructor Details

    • TSRecordImpl

      protected TSRecordImpl()
      Instantiates a new tS record impl.
    • TSRecordImpl

      public TSRecordImpl(int index)
      Instantiates a new tS record impl.
      Parameters:
      index - the index
    • TSRecordImpl

      public TSRecordImpl(TSDataSet tsData, int index)
      Instantiates a new tS record impl.
      Parameters:
      tsData - the ts data
      index - the index
    • TSRecordImpl

      public TSRecordImpl(TSDataSet tsData, Integer index)
      Instantiates a new tS record impl.
      Parameters:
      tsData - the ts data
      index - the index
    • TSRecordImpl

      public TSRecordImpl(TSRecordImpl tsRecord)
      Instantiates a new tS record impl.
      Parameters:
      tsRecord - the ts record
  • Method Details

    • getRelativePath

      public String getRelativePath(String pathName)
      Specified by:
      getRelativePath in class AbstractTSRecord
    • writeTSDataAs

      public boolean writeTSDataAs(String pathname, String interpUnitsType)
    • writeTSData

      public boolean writeTSData(mil.army.usace.hec.rmi.csinterface.DSSManager dssManager)
      Write ts data.
      Parameters:
      dssManager - the dss manager
      Returns:
      true, if successful
    • writeTSData

      protected boolean writeTSData(mil.army.usace.hec.rmi.csinterface.DSSManager dssManager, String dssPathname, intArrayContainer timeArray, doubleArrayContainer dataArray, String unitsType)
      Write ts data.
      Parameters:
      dssManager - the dss manager
      dssPathname - the dss pathname
      timeArray - the time array
      dataArray - the data array
      unitsType - the units type
      Returns:
      true, if successful
    • writeTSData

      public boolean writeTSData()
    • loadTSData

      public boolean loadTSData(HecTime startTime, HecTime endTime)
      Load Time Series record for the start and end times (HecTime). Performs no interpolation.
      Parameters:
      startTime - the start time
      endTime - the end time
      Returns:
      true, if successful
    • loadTSData

      public boolean loadTSData(mil.army.usace.hec.rmi.csinterface.DSSManager dssManager, HecTime startTime, HecTime endTime)
      Load ts data.
      Parameters:
      dssManager - the dss manager
      startTime - the start time
      endTime - the end time
      Returns:
      true, if successful
    • loadTSData

      public boolean loadTSData()
      Read Time Series record from DSS and perform interpolation in time if necessary. Time window and time step size must be first set in one of the initialize() methods. This form of loadTSData() reads in the data for the time window and interpolates if necessary to an interval given by _timeStepMin.
      Returns:
      true, if successful
    • loadTSData

      protected boolean loadTSData(mil.army.usace.hec.rmi.csinterface.DSSManager dssManager)
      Read Time Series record from DSS and perform interpolation in time if an offset occurs in data. Convert data type to PER-AVER or INST-VAL if applicable. Time window and time step size must be first set in one of the initialize() methods. This form of loadTSData() reads in the data for the time window and interpolates if necessary to an interval given by _timeStepMin.
      Parameters:
      dssManager - the dss manager
      Returns:
      true, if successful
    • shouldInterpEvapData

      protected boolean shouldInterpEvapData()
      return true to interpolate evap data.
      Returns:
      false by default
    • isEvapData

      protected boolean isEvapData()
      Checks if is evap data.
      Returns:
      true, if is evap data
    • isInputData

      protected boolean isInputData()
      Checks if is input data.
      Returns:
      true, if is input data
    • writeInterpolatedInputData

      protected boolean writeInterpolatedInputData()
      Checks if interpolated input data should be written out to the DSS file.
      Returns:
      true, if is input data should write out
    • doInterpolations

      protected boolean doInterpolations()
      Check if data should be interpolated. Note - Method created so classes extending this one could override the interpolations.
      Returns:
      true by default
    • loadRawTSData

      public boolean loadRawTSData()
      load without interpolation and with minimal error checking and messages.
      Returns:
      true, if successful
    • loadRawTSData

      public boolean loadRawTSData(mil.army.usace.hec.rmi.csinterface.DSSManager dssManager)
      Load raw ts data.
      Parameters:
      dssManager - the dss manager
      Returns:
      true, if successful
    • isValidValue

      public boolean isValidValue()
    • isValidValue

      public boolean isValidValue(mil.army.usace.hec.rmi.csinterface.DSSManager dssManager)
      Checks if is valid value.
      Parameters:
      dssManager - the dss manager
      Returns:
      true, if is valid value
    • checkTSData

      public boolean checkTSData()
      load without interpolation and check data for undefined values or other problems.
      Returns:
      true, if successful
    • setTSDataSet

      public void setTSDataSet(TSDataSet tsds)
      Sets the tS data set.
      Parameters:
      tsds - the new tS data set
    • unloadTSData

      public void unloadTSData()
      Unload ts data.
    • getDataSet

      public Manager getDataSet()
    • getAltName

      public String getAltName()