Package 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,Serializable
public class IntrospectionServer extends CyclicBehaviour
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jade.core.behaviours.Behaviour
Behaviour.RunnableChangedEvent
-
-
Field Summary
-
Fields inherited from class jade.core.behaviours.Behaviour
myAgent, myEvent, NOTIFY_DOWN, NOTIFY_UP, parent, STATE_BLOCKED, STATE_READY, STATE_RUNNING
-
-
Constructor Summary
Constructors Constructor Description IntrospectionServer(Agent a)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaction()Runs the behaviour.voidonStart()This method is just an empty placeholders for subclasses.protected voidreply(ACLMessage request, int performative)protected voidserveGetKeys(ACLMessage request, Action aExpr, GetKeys action)protected voidserveGetValue(ACLMessage request, Action aExpr, GetValue action)protected voidserveUnknownAction(ACLMessage request, Action aExpr, 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
actionWrapper, block, block, getAgent, getBehaviourName, getDataStore, getExecutionState, getParent, getRestartCounter, handle, handleBlockEvent, handleRestartEvent, isRunnable, onEnd, restart, root, setAgent, setBehaviourName, setDataStore, setExecutionState
-
-
-
-
Constructor Detail
-
IntrospectionServer
public IntrospectionServer(Agent a)
-
-
Method Detail
-
onStart
public void onStart()
Description copied from class:BehaviourThis 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 thisBehaviour.
-
action
public void action()
Description copied from class:BehaviourRuns the behaviour. This abstract method must be implemented byBehavioursubclasses to perform ordinary behaviour duty. An agent schedules its behaviours calling theiraction()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:
actionin classBehaviour- See Also:
CompositeBehaviour
-
reply
protected void reply(ACLMessage request, int performative)
-
serveGetKeys
protected void serveGetKeys(ACLMessage request, Action aExpr, GetKeys action) throws Exception
- Throws:
Exception
-
serveGetValue
protected void serveGetValue(ACLMessage request, Action aExpr, GetValue action) throws Exception
- Throws:
Exception
-
serveUnknownAction
protected void serveUnknownAction(ACLMessage request, Action aExpr, Object action)
-
-