Class AbstractChartQuery
- java.lang.Object
- 
- com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractChartQuery
 
- 
- All Implemented Interfaces:
- IQueryResponseListener
 - Direct Known Subclasses:
- AbstractSQLQuery,- TagDensityHistogramSource,- TagHistoryPenDatasource
 
 public abstract class AbstractChartQuery extends java.lang.Object implements IQueryResponseListener 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 SummaryFields Modifier and Type Field Description protected QualityCodebadQualityprotected PMIEasyChartchartprotected Datasetdataprotected org.apache.log4j.Loggerlogprotected booleanshowWarnings
 - 
Constructor SummaryConstructors Constructor Description AbstractChartQuery()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description DatasetgetData()protected abstract java.lang.StringgetQuasiPropertyName()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.java.lang.StringgetTargetFullPath()voidhandleQueryReturnedError(java.lang.Exception error)voidhandleQueryReturnedNoRows()voidhandleQueryReturnedValue(java.lang.Object value)voidnotifyQueryRunning(boolean loading)protected abstract java.lang.ObjectregisterQuery(int pollTime, boolean runOnce)Register this query with the QueryManager.protected voidsetChart(PMIEasyChart chart)protected voidsetData(Dataset data)voidshutdown()voidstartup(PMIEasyChart chart)protected voidwarn(java.lang.String err)
 
- 
- 
- 
Field Detail- 
dataprotected Dataset data 
 - 
chartprotected PMIEasyChart chart 
 - 
showWarningsprotected boolean showWarnings 
 - 
badQualityprotected QualityCode badQuality 
 - 
logprotected org.apache.log4j.Logger log 
 
- 
 - 
Method Detail- 
getTargetFullPathpublic java.lang.String getTargetFullPath() - Specified by:
- getTargetFullPathin interface- IQueryResponseListener
 
 - 
warnprotected void warn(java.lang.String err) 
 - 
setChartprotected void setChart(PMIEasyChart chart) 
 - 
startuppublic void startup(PMIEasyChart chart) 
 - 
registerQueryprotected abstract java.lang.Object registerQuery(int pollTime, boolean runOnce)Register this query with the QueryManager. Called by AbstractchartQuery duringstartup(PMIEasyChart)- Returns:
- The key object that the query manager gave back.
 
 - 
shutdownpublic void shutdown() 
 - 
getQuasiPropertyNameprotected abstract 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.
 - 
notifyQueryRunningpublic void notifyQueryRunning(boolean loading) - Specified by:
- notifyQueryRunningin interface- IQueryResponseListener
 
 - 
handleQueryReturnedErrorpublic void handleQueryReturnedError(java.lang.Exception error) - Specified by:
- handleQueryReturnedErrorin interface- IQueryResponseListener
 
 - 
handleQueryReturnedValuepublic void handleQueryReturnedValue(java.lang.Object value) - Specified by:
- handleQueryReturnedValuein interface- IQueryResponseListener
 
 - 
handleQueryReturnedNoRowspublic void handleQueryReturnedNoRows() - Specified by:
- handleQueryReturnedNoRowsin interface- IQueryResponseListener
 
 - 
setDataprotected void setData(Dataset data) 
 - 
getDatapublic Dataset getData() 
 
- 
 
-