public class IntrospectionServer extends CyclicBehaviour
Constructor and Description |
---|
IntrospectionServer(Agent a) |
Modifier and Type | Method and Description |
---|---|
void |
action()
Runs the behaviour.
|
void |
onStart()
This method is just an empty placeholders for subclasses.
|
protected void |
reply(ACLMessage request,
int performative) |
protected void |
serveGetKeys(ACLMessage request,
Action aExpr,
GetKeys action) |
protected void |
serveGetValue(ACLMessage request,
Action aExpr,
GetValue action) |
protected void |
serveUnknownAction(ACLMessage request,
Action aExpr,
java.lang.Object action) |
done
reset
block, block, getAgent, getBehaviourName, getDataStore, getParent, isRunnable, onEnd, restart, root, setAgent, setBehaviourName, setDataStore
public IntrospectionServer(Agent a)
public void onStart()
Behaviour
Behaviour
.public void action()
Behaviour
Behaviour
subclasses to perform ordinary behaviour
duty. An agent schedules its behaviours calling their
action()
method; since all the behaviours belonging
to the same agent are scheduled cooperatively, this method
must not enter in an endless loop and should return as
soon as possible to preserve agent responsiveness. To split a
long and slow task into smaller section, recursive behaviour
aggregation may be used.action
in class Behaviour
CompositeBehaviour
protected void reply(ACLMessage request, int performative)
protected void serveGetKeys(ACLMessage request, Action aExpr, GetKeys action) throws java.lang.Exception
java.lang.Exception
protected void serveGetValue(ACLMessage request, Action aExpr, GetValue action) throws java.lang.Exception
java.lang.Exception
protected void serveUnknownAction(ACLMessage request, Action aExpr, java.lang.Object action)