public abstract class AbstractPollingFunction extends AbstractFunction implements java.awt.event.ActionListener
| Modifier and Type | Field and Description |
|---|---|
protected CommonContext |
context |
protected int |
rate |
protected boolean |
started |
protected java.util.TimerTask |
task |
protected static java.util.Timer |
TIMER |
protected InteractionListener |
updateListener |
| Constructor and Description |
|---|
AbstractPollingFunction() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
NOTE: This is in an "action listener" for legacy reasons, and doesn't need to be anymore.
|
protected void |
cancelTask() |
void |
connect(CommonContext context,
InteractionListener updateListener)
Empty implementation from BaseFunction.
|
abstract Function |
copy()
Returns this.
|
void |
disconnect()
Empty implementation from BaseFunction.
|
protected void |
setPollRate(int rate)
Updates the poll rate.
|
void |
shutdown()
Empty implementation from BaseFunction.
|
protected void |
startTask() |
void |
startup()
Empty implementation from BaseFunction.
|
executeArg, getFunctionDisplayName, initArgs, log, validateNumArgsexecuteAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, getArgDocString, getTypeprotected static final java.util.Timer TIMER
protected CommonContext context
protected InteractionListener updateListener
protected java.util.TimerTask task
protected int rate
protected boolean started
public void connect(CommonContext context, InteractionListener updateListener)
BaseFunctionconnect in interface Functionconnect in class BaseFunctionpublic void disconnect()
BaseFunctiondisconnect in interface Functiondisconnect in class BaseFunctionpublic void shutdown()
BaseFunctionshutdown in interface Functionshutdown in class BaseFunctionpublic void startup()
BaseFunctionstartup in interface Functionstartup in class BaseFunctionprotected void startTask()
protected void cancelTask()
public abstract Function copy()
BaseFunctioncopy in interface Functioncopy in class BaseFunctionprotected void setPollRate(int rate)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListener