Package jade.core.behaviours
This package is a subpackage of
jade.core and contains
the classes used to implement basic agent
behaviours. JADE agents schedule their behaviours
within a single Java thread, using cooperative, non preemptive
scheduling.-
Interface Summary Interface Description ReceiverBehaviour.Handle An interface representing ACL messages due to arrive within a time limit. -
Class Summary Class Description ActionExecutor<ActionT extends AgentAction,ResultT> Base class for behaviours intended to request the execution of an action to a given actor and get back the result (if any)BaseInitiator Base class for behaviours implementing a FIPA-request like pattern with a single target agent.Behaviour Abstract base class for JADE behaviours.CompositeBehaviour An abstract superclass for behaviours composed by many parts.CyclicBehaviour Atomic behaviour that must be executed forever.DataStore FSMBehaviour Composite behaviour with Finite State Machine based children scheduling.LoaderBehaviour This behaviour serves behaviour-loading requests according to the Behaviour-loading ontology.OneShotBehaviour Atomic behaviour that executes just once.OntologyServer Ready made behaviour that for each incoming message automatically invokes a corresponding method of the form
public void serveCcccPppp(Cccc c, ACLMessage msg) throws Exception
where Cccc represents the key content-element referenced by the incoming message msg and Pppp represents the performative of the message.
ContentElement-s representing SL0 operatorsaction,doneandresultare automatically managed so that for instance if an incoming REQUEST message is received carrying a content of type
((action (actor ...) (Sell ...)))
a serving method with signature
public void serveSellRequest(Sell s, ACLMessage msg) throws Exception
will be searched.
Serving methods are responsible for sending back responses if any.OutcomeManager Utility class to manage the outcome of a behaviour in a uniform wayParallelBehaviour Composite behaviour with concurrent children scheduling.ReceiverBehaviour Behaviour for receiving an ACL message.SenderBehaviour Behaviour for sending an ACL message.SequentialBehaviour Composite behaviour with sequential children scheduling.SerialBehaviour Base class for all composite behaviour whose children run serially, i.e.SimpleBehaviour An atomic behaviour.ThreadedBehaviourFactory This class provides support for executing JADE Behaviours in dedicated Java Threads.TickerBehaviour This abstract class implements aBehaviourthat periodically executes a user-defined piece of code.WakerBehaviour This abstract class implements a OneShot task that must be executed only one just after a given timeout is elapsed.WrapperBehaviour This behaviour allows modifying on the fly the way an existing behaviour object works The following piece of code provides an example where we modify thedone()method of an existing behaviour object to print on the standard output a proper message when the behaviour is completing. -
Exception Summary Exception Description ReceiverBehaviour.NotYetReady Exception class for timeouts.ReceiverBehaviour.TimedOut Exception class for timeouts.