|
LiveGraph data visualisation and analysis framework |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.LiveGraph.dataCache.DataSeries
public class DataSeries
Repsesents a data series inside the cache; stores all series specific information and provides convenience methods for accessing that information. A data series usually cossesponds to a data column inside a data file.
LiveGraph (http://www.live-graph.org).
Copyright (c) 2007 by G. Paperin.
File: DataSeries.java
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following terms and conditions are met:
1. Redistributions of source code must retain the above
acknowledgement of the LiveGraph project and its web-site, the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above acknowledgement of the
LiveGraph project and its web-site, the above copyright notice, this list of conditions
and the following disclaimer in the documentation and/or other materials provided with
the distribution.
3. All advertising materials mentioning features or use of this software or any derived
software must display the following acknowledgement:
This product includes software developed by the LiveGraph project and its
contributors.
(http://www.live-graph.org)
4. All advertising materials distributed in form of HTML pages or any other technology
permitting active hyper-links that mention features or use of this software or any
derived software must display the acknowledgment specified in condition 3 of this
agreement, and in addition, include a visible and working hyper-link to the LiveGraph
homepage (http://www.live-graph.org).
THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS, CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Nested Class Summary | |
---|---|
private class |
DataSeries.DataValuesIterator
A read-only iterator over the data values of a series. |
Field Summary | |
---|---|
private DataCache |
adminCache
The cache in which the data of this series is stored. |
private java.lang.String |
label
Serien name/label. |
private double |
maxValue
Max data value in this series. |
private double |
minValue
Min data value in this series. |
private int |
seriesIndexInCache
The (0 based) index of this series' data in the cache. |
Constructor Summary | |
---|---|
DataSeries(java.lang.String label,
DataCache adminCache,
int seriesIndexInCache)
The constructor. |
Method Summary | |
---|---|
int |
countDataSets()
|
double |
findDataValue(int dataFileIndex)
|
DataCache |
getAdministratingCache()
|
int |
getDatasetFileIndex(int cacheIndex)
|
double |
getDataValue(int cacheIndex)
|
java.lang.String |
getLabel()
|
double |
getMaxValue()
|
double |
getMinValue()
|
int |
getSeriesIndexInCache()
|
(package private) void |
includeExtremeValue(double val)
|
com.softnetConsult.utils.collections.ReadOnlyIterator<java.lang.Double> |
iterateDataValues()
|
(package private) void |
resetExtremeValues()
Resets the min and max value caches for this series. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String label
private DataCache adminCache
private int seriesIndexInCache
private double minValue
private double maxValue
Constructor Detail |
---|
DataSeries(java.lang.String label, DataCache adminCache, int seriesIndexInCache)
label
- Series label.adminCache
- The cache adminestering the data.seriesIndexInCache
- The index of this series in the cache.Method Detail |
---|
public java.lang.String getLabel()
public DataCache getAdministratingCache()
public int getSeriesIndexInCache()
public int countDataSets()
public com.softnetConsult.utils.collections.ReadOnlyIterator<java.lang.Double> iterateDataValues()
public double getDataValue(int cacheIndex)
cacheIndex
- A cache index of a dataset.
public int getDatasetFileIndex(int cacheIndex)
cacheIndex
- A cache index of a dataset.
public double findDataValue(int dataFileIndex)
dataFileIndex
- An data row index of the original data file.
DataSet.returnValueForIllegalIndex
.doubleValue().void includeExtremeValue(double val)
val
- Makes sure that min and max value caches of this series include the
specified value.public double getMinValue()
Double.NaN
if this series
is empty.public double getMaxValue()
Double.NaN
if this series
is empty.void resetExtremeValues()
|
LiveGraph data visualisation and analysis framework |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |