Package hec.gfx2d.dss

Class LocalDSSTimeSeriesCollection

All Implemented Interfaces:
G2dDssObject, G2dDssTimeSeriesCollection, G2dObject, Serializable
Direct Known Subclasses:
DssVueSimpleDSSTimeSeriesCollection

public class LocalDSSTimeSeriesCollection extends LocalDSSData implements G2dDssTimeSeriesCollection
See Also:
  • Field Details

    • _dssCollectionArray

      protected transient TimeSeriesCollectionContainer _dssCollectionArray
      The _dss collection array.
    • _timeArray

      protected transient intArrayContainer _timeArray
      The _time array.
    • _mean

      protected TimeSeriesContainer _mean
    • _median

      protected TimeSeriesContainer _median
    • _p25

      protected TimeSeriesContainer _p25
    • _p75

      protected TimeSeriesContainer _p75
    • _max

      protected TimeSeriesContainer _max
    • _min

      protected TimeSeriesContainer _min
    • MAX

      public static int MAX
    • MIN

      public static int MIN
    • MEAN

      public static int MEAN
    • SD1N

      public static int SD1N
    • SD1P

      public static int SD1P
    • tdata

      public int[] tdata
      The tdata.
    • ydata

      public double[][] ydata
      The ydata.
    • startIdx

      public int startIdx
      The start idx.
    • endIdx

      public int endIdx
      The end idx.
    • xtype

      public String xtype
      The xtype.
    • ytype

      public String ytype
      The ytype.
    • numberValues

      public int numberValues
      The number values.
  • Constructor Details

    • LocalDSSTimeSeriesCollection

      public LocalDSSTimeSeriesCollection(DSSIdentifier dssId, List<String> collections)
      Instantiates a new simple dss time series collection.
      Parameters:
      dssId - the dss id
      collections - the collections
  • Method Details

    • size

      public int size()
      size returns the number of valid data points.
      Specified by:
      size in class LocalDSSData
      Returns:
      the int
    • getXAxisName

      public String getXAxisName()
      Returns the name of the x axis.
      Specified by:
      getXAxisName in interface G2dObject
      Overrides:
      getXAxisName in class LocalDSSData
      Returns:
      the x axis name
    • getYAxisName

      public String getYAxisName()
      Returns the name of the y axis.
      Specified by:
      getYAxisName in interface G2dObject
      Overrides:
      getYAxisName in class LocalDSSData
      Returns:
      the y axis name
    • getXAxisType

      public int getXAxisType()
      Returns the name of the x axis.
      Specified by:
      getXAxisType in interface G2dObject
      Overrides:
      getXAxisType in class LocalDSSData
      Returns:
      the x axis type
    • getYAxisType

      public int getYAxisType()
      Returns the name of the y axis.
      Specified by:
      getYAxisType in interface G2dObject
      Overrides:
      getYAxisType in class LocalDSSData
      Returns:
      the y axis type
    • load

      public void load()
      Causes the object to load its data into memory.
      Specified by:
      load in interface G2dObject
    • unload

      public void unload()
      Causes the object to unload its data from memory.
      Specified by:
      unload in interface G2dObject
    • getBounds

      public WorldRect getBounds()
      Returns the extents of the object in world coordinates.
      Specified by:
      getBounds in interface G2dObject
      Specified by:
      getBounds in class LocalDSSData
      Returns:
      the bounds
    • getTimeSeriesContainer

      public TimeSeriesCollectionContainer getTimeSeriesContainer()
      Gets the time series container.
      Specified by:
      getTimeSeriesContainer in interface G2dDssTimeSeriesCollection
      Returns:
      the time series container
    • getCurveCount

      public int getCurveCount()
      Description copied from class: G2dData
      Returns the number of curves that this object contains.
      Specified by:
      getCurveCount in interface G2dObject
      Overrides:
      getCurveCount in class G2dData
    • getYValues

      public double[] getYValues(int curveNum)
      Description copied from class: G2dData
      Returns a double[] for the curve specified by the curve number.
      Specified by:
      getYValues in interface G2dObject
      Overrides:
      getYValues in class G2dData
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equals

      public boolean equals(LocalDSSTimeSeriesCollection tsObj)
      Equals.
      Parameters:
      tsObj - the ts obj
      Returns:
      true, if successful
    • getNearestDataPt

      public WorldPt getNearestDataPt(WorldPt pt)
      Returns the point in local coordinates of the closest data point to the given pt.
      Parameters:
      pt - the pt
      Returns:
      the nearest data pt
    • setLoaded

      public void setLoaded(boolean b)
      Sets the loaded.
      Parameters:
      b - the new loaded
    • createHecMathArray

      public void createHecMathArray()
      Creates the hec math array.
    • getMean

      public TimeSeriesContainer getMean()
      Gets the mean.
      Returns:
      the mean
    • getMedian

      public TimeSeriesContainer getMedian()
      Gets the Median.
      Returns:
      the Median
    • getP25

      public TimeSeriesContainer getP25()
      Gets the Median.
      Returns:
      the Median
    • getP75

      public TimeSeriesContainer getP75()
      Gets the Median.
      Returns:
      the Median
    • getFirstStandardDeviations

      public TimeSeriesContainer[] getFirstStandardDeviations()
      Gets the first standard deviation.
      Returns:
      the first standard deviation
    • getMax

      public TimeSeriesContainer getMax()
      Gets the max.
      Returns:
      the max
    • getMin

      public TimeSeriesContainer getMin()
      Gets the min.
      Returns:
      the min
    • getYType

      public String getYType()
      Specified by:
      getYType in interface G2dDssTimeSeriesCollection