|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--jade.core.behaviours.Behaviour
|
+--jade.core.behaviours.ComplexBehaviour
|
+--jade.core.behaviours.SequentialBehaviour
Composite behaviour with sequential children scheduling. It is a
ComplexBehaviour that executes its children behaviours
in sequential order, and terminates when its last child has ended.
| Inner classes inherited from class jade.core.behaviours.ComplexBehaviour |
ComplexBehaviour.BehaviourList |
| Inner classes inherited from class jade.core.behaviours.Behaviour |
Behaviour.RunnableChangedEvent |
| Fields inherited from class jade.core.behaviours.ComplexBehaviour |
subBehaviours |
| Fields inherited from class jade.core.behaviours.Behaviour |
myAgent,
myEvent,
NOTIFY_DOWN,
NOTIFY_UP,
parent |
| Constructor Summary | |
SequentialBehaviour()
Default constructor. |
|
SequentialBehaviour(Agent a)
This constructor sets the owner agent for this behaviour. |
|
| Method Summary | |
protected boolean |
bodyAction()
Sequential policy for children scheduling. |
protected void |
handle(Behaviour.RunnableChangedEvent rce)
Handle block/restart notifications. |
| Methods inherited from class jade.core.behaviours.ComplexBehaviour |
action,
addSubBehaviour,
done,
postAction,
preAction,
removeSubBehaviour,
reset,
restart |
| Methods inherited from class jade.core.behaviours.Behaviour |
block,
block,
isRunnable,
root |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public SequentialBehaviour()
public SequentialBehaviour(Agent a)
a - The agent this behaviour belongs to.| Method Detail |
protected boolean bodyAction()
ComplexBehaviour.bodyAction()protected void handle(Behaviour.RunnableChangedEvent rce)
SequentialBehaviour is blocked only when
its currently active child is blocked, and becomes ready again
when its current child is ready. This method takes care of the
various possibilities.rce - The event to handle.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||