|
|||||||||||
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.LoaderBehaviour
This behaviour serves behaviour-loading requests
according to the Behaviour-loading ontology.
When an agent runs an instance of this behaviour it becomes able
to load and execute completely new behaviours, i.e. behaviours
whose code is not included in the classpath of the JVM where the
agent lives.
Loading behaviour requests must have the ACLMessage.REQUEST
performative and must use the BehaviourLoading ontology and the
LEAP language.
NOT available in MIDP
LoadBehaviour
,
BehaviourLoadingOntology
,
LEAPCodec
,
Serialized FormField Summary |
Fields inherited from class jade.core.behaviours.Behaviour |
myAgent |
Constructor Summary | |
LoaderBehaviour()
Construct a LoaderBehaviour. |
|
LoaderBehaviour(Agent a)
Construct a LoaderBehaviour to be executed by the given agent. |
Method Summary | |
protected boolean |
accept(ACLMessage msg)
Suclasses may redefine this method to prevent the behaviour loading operation under specific conditions. |
void |
action()
The action() method is redefined to serve behaviour loading requests |
protected void |
addBehaviour(Behaviour b,
ACLMessage request)
Add a loaded behaviour to the agent. |
boolean |
done()
The done() method is redefined to make this behaviour terminate when its stop() method is called. |
void |
stop()
Make this behaviour terminate. |
Methods inherited from class jade.core.behaviours.Behaviour |
block, block, getBehaviourName, getDataStore, getParent, isRunnable, onEnd, onStart, reset, 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 LoaderBehaviour()
public LoaderBehaviour(Agent a)
Method Detail |
public final void action()
action
in class Behaviour
CompositeBehaviour
public boolean done()
stop()
method is called.
done
in class Behaviour
true
if the behaviour has completely executed.public void stop()
protected void addBehaviour(Behaviour b, ACLMessage request)
b
- The Behaviour
to be added.request
- The ACLMessage
carrying the
LoadBehaviour
request.protected boolean accept(ACLMessage msg)
true
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |