|
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.fsm.FSM
aos.jack.jak.event.Event
Event is a base class for events. All events extend this class.
Field Summary | |
Behavior |
behavior
The behaviour of this event. |
int |
priority
The event priority. |
Plan[] |
relevant
The plans relevant for this event. |
aos.jack.jak.task.Task |
task
The task that is processing this event. |
Constructor Summary | |
Event()
|
Method Summary | |
Plan |
computeFirstApplicable()
|
void |
dump(java.io.PrintWriter p)
Utility method for dumping events to a stream. |
java.lang.String |
getEventName()
Gets the name of the Event , as a fully qualified
Java class name. |
java.lang.Object |
getVariable(int n)
Gets the numbered Object variable. |
java.lang.Object |
getVariable(java.lang.String name)
Gets the named Object variable. |
java.lang.String |
getVariableValue(int n)
Converts the value of the numbered variable to a String as if it had been appended to "". |
java.lang.String |
getVariableValue(java.lang.String name)
Converts the value of the named variable to a String as if it had been appended to "". |
boolean |
gotException()
Returns true if the event got an exception. |
boolean |
init_sentinel(Agent a)
|
boolean |
isFailed()
Returns true if the event has failed. |
boolean |
isPassed()
Returns true if the event has succeeded. |
boolean |
isRunning()
Returns true while the event is processing. |
void |
remove()
|
java.lang.String |
stateInfo()
Describe the events current state. |
java.lang.String[] |
variableNames()
Gets a String array of the names of the Object's variables. |
java.lang.String[] |
variableTypes()
Gets a String array of the type names of the Object's variables. |
Methods inherited from class aos.jack.jak.fsm.FSM |
describe, discard, exceptionInfo, getAgent, getPreferredPriority, init, loadClass, restart, run, setMode, thrownAnException, toString, traceGoal |
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, wait, wait, wait |
Field Detail |
public transient aos.jack.jak.task.Task task
public transient Plan[] relevant
public transient Behavior behavior
public int priority
Constructor Detail |
public Event()
Method Detail |
public void dump(java.io.PrintWriter p)
public java.lang.String stateInfo()
stateInfo
in class FSM
public boolean isPassed()
public boolean isFailed()
public boolean gotException()
public boolean isRunning()
public boolean init_sentinel(Agent a)
public Plan computeFirstApplicable()
public java.lang.String[] variableNames()
getValue
.
public java.lang.String[] variableTypes()
variableNames
.
public java.lang.String getVariableValue(int n)
public java.lang.String getVariableValue(java.lang.String name)
public java.lang.Object getVariable(int n)
public java.lang.Object getVariable(java.lang.String name)
public java.lang.String getEventName()
Event
, as a fully qualified
Java class name.
Event
public void remove()
remove
in class FSM
|
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.