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 TimeSeriesCollectionContainerThe _dss collection array.protected TimeSeriesContainerprotected TimeSeriesContainerprotected TimeSeriesContainerprotected TimeSeriesContainerprotected TimeSeriesContainerprotected TimeSeriesContainerprotected intArrayContainerThe _time array.intThe end idx.static intstatic intstatic intintThe number values.static intstatic intintThe 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 TypeMethodDescriptionvoidCreates the hec math array.booleanEquals.booleanReturns the extents of the object in world coordinates.intReturns 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.intReturns the name of the x axis.Returns the name of the y axis.intReturns the name of the y axis.getYType()double[]getYValues(int curveNum) Returns a double[] for the curve specified by the curve number.voidload()Causes the object to load its data into memory.voidsetLoaded(boolean b) Sets the loaded.intsize()size returns the number of valid data points.voidunload()Causes the object to unload its data from memory.Methods inherited from class hec.gfx2d.dss.LocalDSSData
getDSSIdentifer, setXAxisType, setYAxisTypeMethods 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, useDisplayUnitsMethods inherited from class java.util.Observable
clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
sizein classLocalDSSData- Returns:
- the int
-
getXAxisName
Returns the name of the x axis.- Specified by:
getXAxisNamein interfaceG2dObject- Overrides:
getXAxisNamein classLocalDSSData- Returns:
- the x axis name
-
getYAxisName
Returns the name of the y axis.- Specified by:
getYAxisNamein interfaceG2dObject- Overrides:
getYAxisNamein classLocalDSSData- Returns:
- the y axis name
-
getXAxisType
public int getXAxisType()Returns the name of the x axis.- Specified by:
getXAxisTypein interfaceG2dObject- Overrides:
getXAxisTypein classLocalDSSData- Returns:
- the x axis type
-
getYAxisType
public int getYAxisType()Returns the name of the y axis.- Specified by:
getYAxisTypein interfaceG2dObject- Overrides:
getYAxisTypein 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:
getBoundsin interfaceG2dObject- Specified by:
getBoundsin classLocalDSSData- Returns:
- the bounds
-
getTimeSeriesContainer
Gets the time series container.- Specified by:
getTimeSeriesContainerin interfaceG2dDssTimeSeriesCollection- Returns:
- the time series container
-
getCurveCount
public int getCurveCount()Description copied from class:G2dDataReturns the number of curves that this object contains.- Specified by:
getCurveCountin interfaceG2dObject- Overrides:
getCurveCountin classG2dData
-
getYValues
public double[] getYValues(int curveNum) Description copied from class:G2dDataReturns a double[] for the curve specified by the curve number.- Specified by:
getYValuesin interfaceG2dObject- Overrides:
getYValuesin 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:
getYTypein interfaceG2dDssTimeSeriesCollection
-