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) |
doneresetblock, block, getAgent, getBehaviourName, getDataStore, getParent, isRunnable, onEnd, restart, root, setAgent, setBehaviourName, setDataStorepublic IntrospectionServer(Agent a)
public void onStart()
BehaviourBehaviour.public void action()
BehaviourBehavioursubclasses 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 BehaviourCompositeBehaviourprotected void reply(ACLMessage request, int performative)
protected void serveGetKeys(ACLMessage request, Action aExpr, GetKeys action) throws java.lang.Exception
java.lang.Exceptionprotected void serveGetValue(ACLMessage request, Action aExpr, GetValue action) throws java.lang.Exception
java.lang.Exceptionprotected void serveUnknownAction(ACLMessage request, Action aExpr, java.lang.Object action)