|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.action.Activity
public abstract class Activity
An Action that supports the capability of pausing/unpausing and terminating on request. Subclasses define the activity performed by implementing the run() method.
| Field Summary | |
|---|---|
protected boolean |
haltRequested
|
protected boolean |
isActive
|
protected boolean |
pauseRequested
|
| Constructor Summary | |
|---|---|
|
Activity()
Create class with a simple default label. |
protected |
Activity(Activity activity)
Copy constructor. |
| Method Summary | |
|---|---|
void |
actionPerformed()
Sets integrator to begin isActive on its own thread. |
protected boolean |
doContinue()
|
protected void |
doWait()
Method to put activity in a condition of being paused. |
void |
halt()
Request that the activity terminate as soon as safely possible. |
boolean |
isActive()
Indicates if the integrator has been started and has not yet completed. |
boolean |
isPaused()
Queries whether the integrator is in a state of being paused. |
void |
pause()
Requests that the Activity pause its execution. |
protected abstract void |
run()
Method defining the behavior of the activity. |
void |
unPause()
Removes activity from the paused state, resuming execution where it left off. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean isActive
protected boolean haltRequested
protected boolean pauseRequested
| Constructor Detail |
|---|
public Activity()
protected Activity(Activity activity)
| Method Detail |
|---|
protected abstract void run()
public void actionPerformed()
actionPerformed in interface IActionprotected boolean doContinue()
protected void doWait()
public void pause()
public void unPause()
public void halt()
public boolean isPaused()
public boolean isActive()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||