Class AbstractChartQuery
java.lang.Object
com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractChartQuery
- All Implemented Interfaces:
IQueryResponseListener
- Direct Known Subclasses:
AbstractSQLQuery
,TagDensityHistogramSource
,TagHistoryPenDatasource
Base class for all of the easy chart query objects that run through the QueryManager. Holds the Dataset response
object, as well as the target PMIEasyChart object and the query repetition parameters.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected QualityCode
protected PMIEasyChart
protected Dataset
protected org.apache.log4j.Logger
protected boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetData()
protected abstract String
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.void
void
void
handleQueryReturnedValue
(Object value) void
notifyQueryRunning
(boolean loading) protected abstract Object
registerQuery
(int pollTime, boolean runOnce) Register this query with the QueryManager.protected void
setChart
(PMIEasyChart chart) protected void
void
shutdown()
void
startup
(PMIEasyChart chart) protected void
-
Field Details
-
data
-
chart
-
showWarnings
protected boolean showWarnings -
badQuality
-
log
protected org.apache.log4j.Logger log
-
-
Constructor Details
-
AbstractChartQuery
public AbstractChartQuery()
-
-
Method Details
-
getTargetFullPath
- Specified by:
getTargetFullPath
in interfaceIQueryResponseListener
-
warn
-
setChart
-
startup
-
registerQuery
Register this query with the QueryManager. Called by AbstractchartQuery duringstartup(PMIEasyChart)
- Returns:
- The key object that the query manager gave back.
-
shutdown
public void shutdown() -
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. -
notifyQueryRunning
public void notifyQueryRunning(boolean loading) - Specified by:
notifyQueryRunning
in interfaceIQueryResponseListener
-
handleQueryReturnedError
- Specified by:
handleQueryReturnedError
in interfaceIQueryResponseListener
-
handleQueryReturnedValue
- Specified by:
handleQueryReturnedValue
in interfaceIQueryResponseListener
-
handleQueryReturnedNoRows
public void handleQueryReturnedNoRows()- Specified by:
handleQueryReturnedNoRows
in interfaceIQueryResponseListener
-
setData
-
getData
-