Method defining the behavior of the activity. Implementation should
ensure regular checking of doContinue() to permit any requests to pause
or halt to be put in effect. If doContinue() returns false, run method
should end activity.
public void actionPerformed()
Sets integrator to begin isActive on its own thread. This is the normal
way to begin the integrator's activity. Fires an event to listeners
indicating that integrator has started, calls the initialize method, and
starts a new thread that then enters the integrators run() method. If
integrator is already isActive, method call return immediately and has no
Method to put activity in a condition of being paused.
public void pause()
Requests that the Activity pause its execution. The actual suspension of
execution occurs only after activity notices the pause request. The
calling thread is put in a wait state until the pause takes effect.
public void unPause()
Removes activity from the paused state, resuming execution where it left
public void halt()
Request that the activity terminate as soon as safely possible. Causes
calling thread to wait until the halt is in effect.
public boolean isPaused()
Queries whether the integrator is in a state of being paused. This may
occur independent of whether the integrator is isActive or not. If paused
but not isActive, then pause will take effect upon start.
public boolean isActive()
Indicates if the integrator has been started and has not yet completed.
If so, returns true, even if integrator is presently paused (but not