|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectdataMap.OfflineDataMap<TmapPoint>
public abstract class OfflineDataMap<TmapPoint extends OfflineDataMapPoint>
Class which get's held within a PamDataBlock which provides summary information on data within that block when operating in viewer mode.
It is possible that some datablocks may own two of these things - one for database data and one for binary stored data.
| Field Summary | |
|---|---|
static int |
AFTER_LAST
|
static int |
BEFORE_FIRST
|
private long |
firstDataTime
time of the first data available for this data block |
private long |
highestPoint
Point in this store with most data. |
static int |
IN_DATA
|
static int |
IN_GAP
|
private long |
lastDataTime
time of the last data available for this data block |
private long |
lowestNonZeroPoint
Lowest non zero point in the store (can be zero if no data or if highestPoint is zero) |
private long |
lowestPoint
Lowest point in this store (can be zero) |
private java.util.List<TmapPoint> |
mapPoints
|
static int |
NO_DATA
|
private OfflineDataStore |
offlineDataStore
|
private PamDataBlock |
parentDataBlock
|
static int |
POINT_END
|
static int |
POINT_START
|
static int |
SCALE_NONE
Vertical scaling - scale each Map data point to a data rate, or don't bother scaling at all. |
static int |
SCALE_PERDAY
|
static int |
SCALE_PERHOUR
|
static int |
SCALE_PERMINUTE
|
static int |
SCALE_PERSECOND
|
private DataMapDrawing |
specialDrawing
|
| Constructor Summary | |
|---|---|
OfflineDataMap(OfflineDataStore offlineDataStore,
PamDataBlock parentDataBlock)
|
|
| Method Summary | |
|---|---|
void |
addDataPoint(TmapPoint mapPoint)
Add a new map point into the list. |
void |
clear()
Clear the data map. |
int |
getDataCount()
|
long |
getFirstDataTime()
|
double |
getHighestPoint(int vScaleType)
Return the highest point on the map using the given scale |
long |
getLastDataTime()
|
java.util.Iterator<TmapPoint> |
getListIterator()
Get an iterator over the map contents. |
double |
getLowestNonZeroPoint(int vScaleType)
|
double |
getLowestPoint(int vScaleType)
|
long |
getNextDataStart(long timeMillis)
Get the next data start point. |
int |
getNumMapPoints()
|
OfflineDataStore |
getOfflineDataSource()
|
PamDataBlock |
getParentDataBlock()
|
long |
getPrevDataEnd(long timeMillis)
Get the previous data end point. |
DataMapDrawing |
getSpecialDrawing()
|
int |
isInGap(long timeMillis)
Work out where the time is within a map. |
static double |
scaleData(double count,
long duration,
int scaleType)
|
void |
setFirstDataTime(long firstDataTime)
|
void |
setLastDataTime(long lastDataTime)
|
void |
setSpecialDrawing(DataMapDrawing specialDrawing)
|
void |
sortMapPoints()
Sort all map points into ascending order based on start time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private PamDataBlock parentDataBlock
private OfflineDataStore offlineDataStore
private java.util.List<TmapPoint extends OfflineDataMapPoint> mapPoints
private DataMapDrawing specialDrawing
private long firstDataTime
private long lastDataTime
private long highestPoint
private long lowestPoint
private long lowestNonZeroPoint
public static final int SCALE_NONE
public static final int SCALE_PERSECOND
public static final int SCALE_PERMINUTE
public static final int SCALE_PERHOUR
public static final int SCALE_PERDAY
public static final int IN_GAP
public static final int BEFORE_FIRST
public static final int AFTER_LAST
public static final int POINT_START
public static final int POINT_END
public static final int IN_DATA
public static final int NO_DATA
| Constructor Detail |
|---|
public OfflineDataMap(OfflineDataStore offlineDataStore,
PamDataBlock parentDataBlock)
| Method Detail |
|---|
public java.util.Iterator<TmapPoint> getListIterator()
Objects using this iterator should synchronise on the map object first.
public PamDataBlock getParentDataBlock()
public void clear()
public void addDataPoint(TmapPoint mapPoint)
mapPoint - new map point to addpublic int getNumMapPoints()
public void sortMapPoints()
this should be called after all data have been loaded.
public long getFirstDataTime()
public void setFirstDataTime(long firstDataTime)
firstDataTime - the firstDataTime to setpublic long getLastDataTime()
public void setLastDataTime(long lastDataTime)
lastDataTime - the lastDataTime to setpublic int getDataCount()
public double getHighestPoint(int vScaleType)
vScaleType - scale type
public double getLowestPoint(int vScaleType)
public double getLowestNonZeroPoint(int vScaleType)
public static double scaleData(double count,
long duration,
int scaleType)
public OfflineDataStore getOfflineDataSource()
public DataMapDrawing getSpecialDrawing()
public void setSpecialDrawing(DataMapDrawing specialDrawing)
specialDrawing - the specialDrawing to setpublic int isInGap(long timeMillis)
timeMillis - time
NO_DATA
BEFORE_FIRST
AFTER_LAST
POINT_START
POINT_END
IN_GAP
IN_DATA
public long getNextDataStart(long timeMillis)
timeMillis - current time in milliseconds
public long getPrevDataEnd(long timeMillis)
timeMillis - current time in milliseconds
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||