|
JACK 5.4 Application Interface | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectaos.jack.jak.util.Watchable
aos.jack.jak.cursor.Cursor
aos.jack.util.cursor.Change
aos.jack.util.cursor.Action
Action is a Cursor for invoking long-running Java methods from plans. The Action class implements the necessary logic for a Cursor that executes a durational action and captures the completion of that execution.
Field Summary |
Fields inherited from class aos.jack.jak.cursor.Cursor |
FALSE, falseCursor, TRUE, trueCursor, UNKNOWN |
Constructor Summary | |
Action()
Constructs an Action that uses the common ThreadPool for executing its durational action(). |
|
Action(java.lang.Runnable r)
Constructs an Action that uses the common ThreadPool for executing a given Runnable. |
|
Action(ThreadPool tp)
Constructs an Action that uses the given ThreadPool for executing its durational action(). |
|
Action(ThreadPool tp,
java.lang.Runnable r)
Constructs an Action that uses the given ThreadPool for executing a given Runnable. |
Method Summary | |
protected void |
action()
Callback for performing the durational action. |
protected boolean |
condition()
Overridden to call the action method. |
void |
register(java.util.Observer o)
|
void |
run()
|
boolean |
unRegister(java.util.Observer o)
|
Methods inherited from class aos.jack.util.cursor.Change |
finished, isTriggered, next, reset, undo |
Methods inherited from class aos.jack.jak.cursor.Cursor |
negate |
Methods inherited from class aos.jack.jak.util.Watchable |
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Action()
public Action(ThreadPool tp)
tp
- The ThreadPool to usepublic Action(java.lang.Runnable r)
r
- The Runnable to execute.public Action(ThreadPool tp, java.lang.Runnable r)
tp
- The ThreadPool to use.r
- The Runnable to execute.Method Detail |
public void register(java.util.Observer o)
register
in class Change
public boolean unRegister(java.util.Observer o)
unRegister
in class Change
protected boolean condition()
condition
in class Change
public final void run()
run
in interface java.lang.Runnable
protected void action()
|
JACK 5.4 Application Interface | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
US Government Restricted Rights
The JACK Modules and relevant Software Material have been developed entirely at private expense and are accordingly provided with RESTRICTED RIGHTS. Use, duplication, or disclosure by Government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of DFARS 252.227-7013 or subparagraph (c)(1) and (2) of the Commercial Computer Software Restricted Rights and 48 CFR 52.2270-19, as applicable.