public abstract class AbstractPollingFunction extends AbstractFunction implements java.awt.event.ActionListener
Modifier and Type | Field and Description |
---|---|
protected BaseContext |
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(BaseContext 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.
|
getFunctionDisplayName, initArgs, validateArgType, validateNumArgs
executeAll
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, getArgDocString, getType
protected static final java.util.Timer timer
protected BaseContext context
protected InteractionListener updateListener
protected java.util.TimerTask task
protected int rate
protected boolean started
public void connect(BaseContext context, InteractionListener updateListener)
BaseFunction
connect
in interface Function
connect
in class BaseFunction
public void disconnect()
BaseFunction
disconnect
in interface Function
disconnect
in class BaseFunction
public void shutdown()
BaseFunction
shutdown
in interface Function
shutdown
in class BaseFunction
public void startup()
BaseFunction
startup
in interface Function
startup
in class BaseFunction
protected void startTask()
protected void cancelTask()
public abstract Function copy()
BaseFunction
copy
in interface Function
copy
in class BaseFunction
protected void setPollRate(int rate)
rate
- public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener