public class LoaderBehaviour extends Behaviour
ACLMessage.REQUEST
performative and must use the BehaviourLoading ontology and the
LEAP language.
LoadBehaviour,
BehaviourLoadingOntology,
LEAPCodec,
Serialized Form| Constructor and Description |
|---|
LoaderBehaviour()
Construct a LoaderBehaviour.
|
LoaderBehaviour(Agent a)
Construct a LoaderBehaviour to be executed by a given agent.
|
LoaderBehaviour(Agent a,
java.lang.ClassLoader cl)
Construct a LoaderBehaviour to be executed by a given agent and that will use a given class loader to load behaviours whose code
is not embedded in the LoadBehaviour request.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
protected void |
getOutputParameters(Behaviour b,
List params) |
protected void |
setInputParameters(Behaviour b,
List params) |
void |
stop()
Make this behaviour terminate.
|
block, block, getAgent, getBehaviourName, getDataStore, getParent, isRunnable, onEnd, onStart, reset, restart, root, setAgent, setBehaviourName, setDataStorepublic LoaderBehaviour()
public LoaderBehaviour(Agent a)
public LoaderBehaviour(Agent a, java.lang.ClassLoader cl)
public final void action()
action in class BehaviourCompositeBehaviourpublic boolean done()
stop() method is called.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