|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--jade.core.behaviours.Behaviour
|
+--jade.core.behaviours.SimpleBehaviour
|
+--jade.core.behaviours.OneShotBehaviour
Atomic behaviour that executes just once. This abstract class can be extended by application programmers to create behaviours for operations that need to be done just one time.
| Field Summary |
| Fields inherited from class jade.core.behaviours.Behaviour |
myAgent, parent |
| Constructor Summary | |
OneShotBehaviour()
Default constructor. |
|
OneShotBehaviour(Agent a)
This constructor sets the owner agent for this OneShotBehaviour. |
|
| Method Summary | |
boolean |
done()
This is the method that makes OneShotBehaviour
one-shot, because it always returns true. |
| Methods inherited from class jade.core.behaviours.SimpleBehaviour |
reset |
| Methods inherited from class jade.core.behaviours.Behaviour |
action, block, block, getBehaviourName, getDataStore, isRunnable, onEnd, onStart, restart, root, setAgent, setBehaviourName, setDataStore |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OneShotBehaviour()
public OneShotBehaviour(Agent a)
OneShotBehaviour.
a - The agent this behaviour belongs to.| Method Detail |
public final boolean done()
OneShotBehaviour
one-shot, because it always returns true.
done in class Behaviourtrue.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||