Package hec.gfx2d.dss
Class LocalDSSTimeSeriesCollection
java.lang.Object
java.util.Observable
hec.gfx2d.G2dData
hec.gfx2d.dss.LocalDSSData
hec.gfx2d.dss.LocalDSSTimeSeriesCollection
- All Implemented Interfaces:
G2dDssObject
,G2dDssTimeSeriesCollection
,G2dObject
,Serializable
- Direct Known Subclasses:
DssVueSimpleDSSTimeSeriesCollection
public class LocalDSSTimeSeriesCollection
extends LocalDSSData
implements G2dDssTimeSeriesCollection
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TimeSeriesCollectionContainer
The _dss collection array.protected TimeSeriesContainer
protected TimeSeriesContainer
protected TimeSeriesContainer
protected TimeSeriesContainer
protected TimeSeriesContainer
protected TimeSeriesContainer
protected intArrayContainer
The _time array.int
The end idx.static int
static int
static int
int
The number values.static int
static int
int
The start idx.int[]
The tdata.The xtype.double[][]
The ydata.The ytype.Fields inherited from interface hec.gfx2d.G2dObject
RESET_DATA, UPDATE_DATA
-
Constructor Summary
ConstructorsConstructorDescriptionLocalDSSTimeSeriesCollection
(DSSIdentifier dssId, List<String> collections) Instantiates a new simple dss time series collection. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Creates the hec math array.boolean
Equals.boolean
Returns the extents of the object in world coordinates.int
Returns the number of curves that this object contains.Gets the first standard deviation.getMax()
Gets the max.getMean()
Gets the mean.Gets the Median.getMin()
Gets the min.Returns the point in local coordinates of the closest data point to the given pt.getP25()
Gets the Median.getP75()
Gets the Median.Gets the time series container.Returns the name of the x axis.int
Returns the name of the x axis.Returns the name of the y axis.int
Returns the name of the y axis.getYType()
double[]
getYValues
(int curveNum) Returns a double[] for the curve specified by the curve number.void
load()
Causes the object to load its data into memory.void
setLoaded
(boolean b) Sets the loaded.int
size()
size returns the number of valid data points.void
unload()
Causes the object to unload its data from memory.Methods inherited from class hec.gfx2d.dss.LocalDSSData
getDSSIdentifer, setXAxisType, setYAxisType
Methods inherited from class hec.gfx2d.G2dData
addObserver, canSwapXYValues, getDefaultMaxYValue, getDefaultMinYValue, getGmtOffset, getLineStyleName, getLookup, getName, getUnitSystem, getXParameterId, getXValues, getYParameterId, hasDefaultMaxYValue, hasDefaultMinYValue, setDefaultMaxYValue, setDefaultMinYValue, setGmtOffset, setName, setSwapXYValues, setUnitSystem, setUseDisplayUnits, setXParameterId, setYParameterId, swapXYValues, toString, useDisplayUnits
Methods inherited from class java.util.Observable
clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface hec.gfx2d.G2dObject
canSwapXYValues, getDataZoneId, getDefaultMaxYValue, getDefaultMinYValue, getGmtOffset, getLineStyleName, getLookup, getName, getUnitSystem, getXParameterId, getXValues, getYParameterId, hasDefaultMaxYValue, hasDefaultMinYValue, setDefaultMaxYValue, setDefaultMinYValue, setSwapXYValues, swapXYValues
-
Field Details
-
_dssCollectionArray
The _dss collection array. -
_timeArray
The _time array. -
_mean
-
_median
-
_p25
-
_p75
-
_max
-
_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[] tdataThe tdata. -
ydata
public double[][] ydataThe ydata. -
startIdx
public int startIdxThe start idx. -
endIdx
public int endIdxThe end idx. -
xtype
The xtype. -
ytype
The ytype. -
numberValues
public int numberValuesThe number values.
-
-
Constructor Details
-
LocalDSSTimeSeriesCollection
Instantiates a new simple dss time series collection.- Parameters:
dssId
- the dss idcollections
- the collections
-
-
Method Details
-
size
public int size()size returns the number of valid data points.- Specified by:
size
in classLocalDSSData
- Returns:
- the int
-
getXAxisName
Returns the name of the x axis.- Specified by:
getXAxisName
in interfaceG2dObject
- Overrides:
getXAxisName
in classLocalDSSData
- Returns:
- the x axis name
-
getYAxisName
Returns the name of the y axis.- Specified by:
getYAxisName
in interfaceG2dObject
- Overrides:
getYAxisName
in classLocalDSSData
- Returns:
- the y axis name
-
getXAxisType
public int getXAxisType()Returns the name of the x axis.- Specified by:
getXAxisType
in interfaceG2dObject
- Overrides:
getXAxisType
in classLocalDSSData
- Returns:
- the x axis type
-
getYAxisType
public int getYAxisType()Returns the name of the y axis.- Specified by:
getYAxisType
in interfaceG2dObject
- Overrides:
getYAxisType
in classLocalDSSData
- Returns:
- the y axis type
-
load
public void load()Causes the object to load its data into memory. -
unload
public void unload()Causes the object to unload its data from memory. -
getBounds
Returns the extents of the object in world coordinates.- Specified by:
getBounds
in interfaceG2dObject
- Specified by:
getBounds
in classLocalDSSData
- Returns:
- the bounds
-
getTimeSeriesContainer
Gets the time series container.- Specified by:
getTimeSeriesContainer
in interfaceG2dDssTimeSeriesCollection
- 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 interfaceG2dObject
- Overrides:
getCurveCount
in classG2dData
-
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 interfaceG2dObject
- Overrides:
getYValues
in classG2dData
-
equals
-
equals
Equals.- Parameters:
tsObj
- the ts obj- Returns:
- true, if successful
-
getNearestDataPt
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
Gets the mean.- Returns:
- the mean
-
getMedian
Gets the Median.- Returns:
- the Median
-
getP25
Gets the Median.- Returns:
- the Median
-
getP75
Gets the Median.- Returns:
- the Median
-
getFirstStandardDeviations
Gets the first standard deviation.- Returns:
- the first standard deviation
-
getMax
Gets the max.- Returns:
- the max
-
getMin
Gets the min.- Returns:
- the min
-
getYType
- Specified by:
getYType
in interfaceG2dDssTimeSeriesCollection
-