Class AbstractPollingFunction
java.lang.Object
com.inductiveautomation.ignition.common.expressions.functions.BaseFunction
com.inductiveautomation.ignition.common.expressions.functions.AbstractFunction
com.inductiveautomation.ignition.common.expressions.functions.AbstractPollingFunction
- All Implemented Interfaces:
- Function,- ActionListener,- EventListener
- Direct Known Subclasses:
- ClientFunctionFactory.IsAlarmActiveFilteredFunctionClient,- ClientFunctionFactory.IsAlarmActiveFunctionClient,- DefaultFunctionFactory.NowFunction,- HasChangedFunction,- ScriptFunction
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected CommonContextprotected intprotected booleanprotected TimerTaskprotected static final Timerprotected InteractionListener
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidNOTE: This is in an "action listener" for legacy reasons, and doesn't need to be anymore.protected voidvoidconnect(CommonContext context, InteractionListener updateListener) Empty implementation from BaseFunction.abstract Functioncopy()Returns this.voidEmpty implementation from BaseFunction.protected voidsetPollRate(int rate) Updates the poll rate.voidshutdown()Empty implementation from BaseFunction.protected voidvoidstartup()Empty implementation from BaseFunction.Methods inherited from class com.inductiveautomation.ignition.common.expressions.functions.AbstractFunctionexecuteArg, getFunctionDisplayName, initArgs, log, validateNumArgsMethods inherited from class com.inductiveautomation.ignition.common.expressions.functions.BaseFunctionexecuteAllMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.common.expressions.functions.Functionexecute, getArgDocString, getType
- 
Field Details- 
TIMER
- 
context
- 
updateListener
- 
task
- 
rateprotected int rate
- 
startedprotected boolean started
 
- 
- 
Constructor Details- 
AbstractPollingFunctionpublic AbstractPollingFunction()
 
- 
- 
Method Details- 
connectDescription copied from class:BaseFunctionEmpty implementation from BaseFunction. Override if necessary.- Specified by:
- connectin interface- Function
- Overrides:
- connectin class- BaseFunction
 
- 
disconnectpublic void disconnect()Description copied from class:BaseFunctionEmpty implementation from BaseFunction. Override if necessary.- Specified by:
- disconnectin interface- Function
- Overrides:
- disconnectin class- BaseFunction
 
- 
shutdownpublic void shutdown()Description copied from class:BaseFunctionEmpty implementation from BaseFunction. Override if necessary.- Specified by:
- shutdownin interface- Function
- Overrides:
- shutdownin class- BaseFunction
 
- 
startuppublic void startup()Description copied from class:BaseFunctionEmpty implementation from BaseFunction. Override if necessary.- Specified by:
- startupin interface- Function
- Overrides:
- startupin class- BaseFunction
 
- 
startTaskprotected void startTask()
- 
cancelTaskprotected void cancelTask()
- 
copyDescription copied from class:BaseFunctionReturns this. Override to create a clone if you need a unique function object per Expression.- Specified by:
- copyin interface- Function
- Overrides:
- copyin class- BaseFunction
 
- 
setPollRateprotected void setPollRate(int rate) Updates the poll rate. If the rate is <= 0, polling is disabled.
- 
actionPerformedNOTE: This is in an "action listener" for legacy reasons, and doesn't need to be anymore. However, since we switched the timer in 7.7.6, we needed to maintain backwards compatibility with any sub classes that might override this function.- Specified by:
- actionPerformedin interface- ActionListener
 
 
-