jade.domain.introspection
Class IntrospectionServer

java.lang.Object
  |
  +--jade.core.behaviours.Behaviour
        |
        +--jade.core.behaviours.SimpleBehaviour
              |
              +--jade.core.behaviours.CyclicBehaviour
                    |
                    +--jade.domain.introspection.IntrospectionServer
All Implemented Interfaces:
Serializable, java.io.Serializable

public class IntrospectionServer
extends CyclicBehaviour

See Also:
Serialized Form

Field Summary
 
Fields inherited from class jade.core.behaviours.Behaviour
myAgent
 
Constructor Summary
IntrospectionServer(Agent a)
           
 
Method Summary
 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)
           
 
Methods inherited from class jade.core.behaviours.CyclicBehaviour
done
 
Methods inherited from class jade.core.behaviours.SimpleBehaviour
reset
 
Methods inherited from class jade.core.behaviours.Behaviour
block, block, getBehaviourName, getDataStore, getParent, isRunnable, onEnd, 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

IntrospectionServer

public IntrospectionServer(Agent a)
Method Detail

onStart

public void onStart()
Description copied from class: Behaviour
This method is just an empty placeholders for subclasses. It is executed just once before starting behaviour execution. Therefore, it acts as a prolog to the task represented by this Behaviour.

Overrides:
onStart in class Behaviour

action

public void action()
Description copied from class: Behaviour
Runs the behaviour. This abstract method must be implemented by Behavioursubclasses 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.

Specified by:
action in class Behaviour
See Also:
CompositeBehaviour

reply

protected void reply(ACLMessage request,
                     int performative)

serveGetKeys

protected void serveGetKeys(ACLMessage request,
                            Action aExpr,
                            GetKeys action)
                     throws java.lang.Exception
java.lang.Exception

serveGetValue

protected void serveGetValue(ACLMessage request,
                             Action aExpr,
                             GetValue action)
                      throws java.lang.Exception
java.lang.Exception

serveUnknownAction

protected void serveUnknownAction(ACLMessage request,
                                  Action aExpr,
                                  java.lang.Object action)


JADE