public class TagHistoryPenDatasource extends AbstractChartQuery implements IPenDatasource, TagHistoryQueryParams
badQuality, chart, data, log, showWarnings
Constructor and Description |
---|
TagHistoryPenDatasource(AggregationMode aggMode) |
Modifier and Type | Method and Description |
---|---|
void |
addPen(PenData penData)
Adds a pen to this datasource.
|
Aggregate |
getAggregationMode()
Specifies how aggregation should occur.
|
java.util.List<java.lang.String> |
getAliases()
If not null, must be a 1-to-1 list corresponding to tag paths.
|
java.util.List<Aggregate> |
getColumnAggregationModes()
If not null, must be 1-to-1 list corresponding to tag paths, specifying the aggregation mode for the column.
|
Dataset |
getDataset()
The underlying dataset that drives this datasource
|
java.util.Date |
getEndDate()
The ending range of the query.
|
int |
getNumDatapoints()
Return the number of datapoints currently loaded in this source
|
java.util.List<? extends Path> |
getPaths()
The paths to query.
|
protected java.lang.String |
getQuasiPropertyName()
Generate a unique string for the query, independent of any values that may change (date ranges, for example.)
Used as the "property key" for the quality system in case the query fails.
|
Flags |
getQueryFlags()
Optional flags that provide additional query settings.
|
ReturnFormat |
getReturnFormat()
Always returns Wide, because I don't think easy charts can handle Tall format.
|
int |
getReturnSize()
How many results are desired.
|
java.util.Date |
getStartDate()
The starting range of the query.
|
void |
initRefs(java.util.Map<java.lang.String,PenData> allPens)
Gives the datasource a chance to install references to other pens
|
boolean |
isZoomTracking()
True if this datasource should be restarted when the zoom level changes.
|
protected java.lang.Object |
registerQuery(int pollTime,
boolean runOnce)
Register this query with the QueryManager.
|
protected void |
setChart(PMIEasyChart chart) |
protected void |
setData(Dataset data) |
java.lang.String |
toString() |
getData, getTargetFullPath, handleQueryReturnedError, handleQueryReturnedNoRows, handleQueryReturnedValue, notifyQueryRunning, shutdown, startup, warn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
shutdown, startup
public TagHistoryPenDatasource(AggregationMode aggMode)
public void addPen(PenData penData)
IPenDatasource
addPen
in interface IPenDatasource
public void initRefs(java.util.Map<java.lang.String,PenData> allPens)
IPenDatasource
initRefs
in interface IPenDatasource
public java.lang.String toString()
toString
in class java.lang.Object
protected java.lang.String getQuasiPropertyName()
AbstractChartQuery
getQuasiPropertyName
in class AbstractChartQuery
protected java.lang.Object registerQuery(int pollTime, boolean runOnce)
AbstractChartQuery
AbstractChartQuery.startup(PMIEasyChart)
registerQuery
in class AbstractChartQuery
public Dataset getDataset()
IPenDatasource
getDataset
in interface IPenDatasource
public int getNumDatapoints()
IPenDatasource
getNumDatapoints
in interface IPenDatasource
protected void setData(Dataset data)
setData
in class AbstractChartQuery
protected void setChart(PMIEasyChart chart)
setChart
in class AbstractChartQuery
public boolean isZoomTracking()
IPenDatasource
isZoomTracking
in interface IPenDatasource
public Aggregate getAggregationMode()
TagHistoryQueryParams
getAggregationMode
in interface TagHistoryQueryParams
public java.util.List<Aggregate> getColumnAggregationModes()
TagHistoryQueryParams
getColumnAggregationModes
in interface TagHistoryQueryParams
public ReturnFormat getReturnFormat()
getReturnFormat
in interface TagHistoryQueryParams
public java.util.List<? extends Path> getPaths()
TagHistoryQueryParams
getPaths
in interface TagHistoryQueryParams
public java.util.List<java.lang.String> getAliases()
TagHistoryQueryParams
getAliases
in interface TagHistoryQueryParams
public int getReturnSize()
TagHistoryQueryParams
getReturnSize
in interface TagHistoryQueryParams
public java.util.Date getStartDate()
TagHistoryQueryParams
getStartDate
in interface TagHistoryQueryParams
public java.util.Date getEndDate()
TagHistoryQueryParams
getEndDate
in interface TagHistoryQueryParams
public Flags getQueryFlags()
TagHistoryQueryParams
TagHistoryQueryFlags
getQueryFlags
in interface TagHistoryQueryParams