Class SumDiffPenDatasource
java.lang.Object
com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractCalculatedPenDatasource
com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractFunctionPenDatasource
com.inductiveautomation.factorypmi.application.components.chart.easychart.SumDiffPenDatasource
- All Implemented Interfaces:
IPenDatasource,EventListener,ChangeListener
Filename - SumPensDatasource Author: Perry Arellano-Jones Year: 2014
This datasource adds or subtracts the value of two pens and returns a dataset of the result. It requires two pens to be specified, a 'driving' Pen and a 'secondary' pen. Results are derived by adding to or subtracting from to the driving Pen. Utilizes the PenAttribute#FUNCTION_PARAM to determine whether summation or negation is done on the driving pen.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractFunctionPenDatasource
referencedPens -
Method Summary
Methods inherited from class com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractFunctionPenDatasource
stateChangedMethods inherited from class com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractCalculatedPenDatasource
addPen, getDataset, getMillisRange, getNumDatapoints, isZoomTracking, setDataset, setDatasetLater, shutdown, startup, warn
-
Field Details
-
SUM
- See Also:
-
DIFF
- See Also:
-
-
Method Details
-
createDataset
Description copied from class:AbstractFunctionPenDatasourceCalled when the dataset needs to be re-calculated- Specified by:
createDatasetin classAbstractFunctionPenDatasource
-
initRefs
Description copied from interface:IPenDatasourceGives the datasource a chance to install references to other pens- Specified by:
initRefsin interfaceIPenDatasource- Overrides:
initRefsin classAbstractFunctionPenDatasource
-