Uses of Class
jade.core.behaviours.Behaviour
-
Packages that use Behaviour Package Description jade.core This package contains the microkernel of JADE system.jade.core.behaviours This package is a subpackage ofjade.coreand contains the classes used to implement basic agent behaviours.jade.domain This package and its sub-packages contains FIPA specific agents and ontologies.jade.domain.introspection This package contains the definition of the ontology used by JADE for internal monitoring of the agent platform and running agents.jade.proto This package contains role behaviours for FIPA standard protocols.jade.proto.states This package contains classes for common states of an interaction protocol, such as "waiting for a given message", "selecting between a number of alternatives", ...jade.tools jade.tools.introspector jade.tools.testagent jade.util jade.wrapper.gateway This is a subpackage of jade.wrapper and contains a set of classes that enables a non-JADE application to issue commands to a JADE-based application. -
-
Uses of Behaviour in jade.core
Methods in jade.core that return Behaviour Modifier and Type Method Description BehaviourBaseService. getAMSBehaviour()This should be properly implemented by the services that require a service specific Behaviour running in the AMS.BehaviourService. getAMSBehaviour()Retrieve a behaviour that is associated with this service, and that will be deployed within the AMS.Methods in jade.core with parameters of type Behaviour Modifier and Type Method Description voidAgent. addBehaviour(Behaviour b)This method adds a new behaviour to the agent.voidAgent. notifyChangeBehaviourState(Behaviour b, String from, String to)voidAgent. notifyRestarted(Behaviour b)Notifies this agent that one of its behaviours has been restarted for some reason.voidAgent. removeBehaviour(Behaviour b)This method removes a given behaviour from the agent.voidAgent. removeTimer(Behaviour b)voidAgent. restartLater(Behaviour b, long millis)Schedules a restart for a behaviour, after a certain amount of time has passed.voidAgent. setO2AManager(Behaviour b)Sets the behaviour responsible for managing objects passed to the agent by means of the Object-To-Agent (O2A) communication mechanism.Constructors in jade.core with parameters of type Behaviour Constructor Description BehaviourID(Behaviour b)This constructor builds a new behaviour ID, describing the given behaviour object. -
Uses of Behaviour in jade.core.behaviours
Subclasses of Behaviour in jade.core.behaviours Modifier and Type Class Description classActionExecutor<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)classBaseInitiatorBase class for behaviours implementing a FIPA-request like pattern with a single target agent.classCompositeBehaviourAn abstract superclass for behaviours composed by many parts.classCyclicBehaviourAtomic behaviour that must be executed forever.classFSMBehaviourComposite behaviour with Finite State Machine based children scheduling.classLoaderBehaviourThis behaviour serves behaviour-loading requests according to the Behaviour-loading ontology.classOneShotBehaviourAtomic behaviour that executes just once.classOntologyServerReady 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.classParallelBehaviourComposite behaviour with concurrent children scheduling.classReceiverBehaviourBehaviour for receiving an ACL message.classSenderBehaviourBehaviour for sending an ACL message.classSequentialBehaviourComposite behaviour with sequential children scheduling.classSerialBehaviourBase class for all composite behaviour whose children run serially, i.e.classSimpleBehaviourAn atomic behaviour.classThreadedBehaviourFactory.ThreadedBehaviourWrapperInner class ThreadedBehaviourWrapper This class is declared public for debugging purpose onlyclassTickerBehaviourThis abstract class implements aBehaviourthat periodically executes a user-defined piece of code.classWakerBehaviourThis abstract class implements a OneShot task that must be executed only one just after a given timeout is elapsed.classWrapperBehaviourThis 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.Methods in jade.core.behaviours that return Behaviour Modifier and Type Method Description BehaviourFSMBehaviour. deregisterState(String name)Deregister a state of thisFSMBehaviour.BehaviourThreadedBehaviourFactory.ThreadedBehaviourWrapper. getBehaviour()protected abstract BehaviourCompositeBehaviour. getCurrent()This method returns the child behaviour currently scheduled for executionprotected BehaviourFSMBehaviour. getCurrent()Get the current childprotected BehaviourParallelBehaviour. getCurrent()Get the current childprotected BehaviourSequentialBehaviour. getCurrent()Get the current childprotected BehaviourFSMBehaviour. getPrevious()Get the previously executed childBehaviourBehaviour.RunnableChangedEvent. getSource()Read event source.BehaviourFSMBehaviour. getState(String name)Retrieve the child behaviour associated to the FSM state with the given name.BehaviourWrapperBehaviour. getWrappedBehaviour()BehaviourBehaviour. root()Returns the root for thisBehaviourobject.BehaviourThreadedBehaviourFactory. wrap(Behaviour b)Wraps a normal JADE Behaviourbinto a "threaded behaviour".Methods in jade.core.behaviours with parameters of type Behaviour Modifier and Type Method Description protected voidLoaderBehaviour. addBehaviour(Behaviour b, ACLMessage request)Add a loaded behaviour to the agent.voidParallelBehaviour. addSubBehaviour(Behaviour b)Add a sub behaviour to thisParallelBehaviourvoidSequentialBehaviour. addSubBehaviour(Behaviour b)Add a sub behaviour to thisSequentialBehaviourStringFSMBehaviour. getName(Behaviour state)Retrieve the name of the FSM state associated to the given child behaviour.protected voidLoaderBehaviour. getOutputParameters(Behaviour b, List params)ThreadThreadedBehaviourFactory. getThread(Behaviour b)protected voidFSMBehaviour. handleStateEntered(Behaviour state)ThreadThreadedBehaviourFactory. interrupt(Behaviour b)Interrupt a threaded behaviour.protected voidCompositeBehaviour. registerAsChild(Behaviour b)voidFSMBehaviour. registerFirstState(Behaviour state, String name)Register aBehaviouras the initial state of thisFSMBehaviour.voidFSMBehaviour. registerLastState(Behaviour state, String name)Register aBehaviouras a final state of thisFSMBehaviour.voidFSMBehaviour. registerState(Behaviour state, String name)Register aBehaviouras a state of thisFSMBehaviour.voidParallelBehaviour. removeSubBehaviour(Behaviour b)Remove a sub behaviour from thisParallelBehaviourvoidSequentialBehaviour. removeSubBehaviour(Behaviour b)Remove a sub behaviour from thisSequentialBehaviourvoidThreadedBehaviourFactory. resume(Behaviour b)Resume a threaded behaviour.protected voidLoaderBehaviour. setInputParameters(Behaviour b, List params)voidThreadedBehaviourFactory. suspend(Behaviour b)Suspend a threaded behaviour.BehaviourThreadedBehaviourFactory. wrap(Behaviour b)Wraps a normal JADE Behaviourbinto a "threaded behaviour".Constructors in jade.core.behaviours with parameters of type Behaviour Constructor Description OutcomeManager(Behaviour bh)WrapperBehaviour(Behaviour wrapped) -
Uses of Behaviour in jade.domain
Subclasses of Behaviour in jade.domain Modifier and Type Class Description classDFSubscriberclassRequestFIPAServiceBehaviourThis class extends theFipaRequestIntiatorBehaviourin order to request an agent, e.g.classRequestManagementBehaviourBase class for AMS and DF behaviours managing requests from agents. -
Uses of Behaviour in jade.domain.introspection
Subclasses of Behaviour in jade.domain.introspection Modifier and Type Class Description classAMSSubscriberThis behaviour subscribes to the AMS to receive notifications about platform-wide events.classIntrospectionServer -
Uses of Behaviour in jade.proto
Subclasses of Behaviour in jade.proto Modifier and Type Class Description classAchieveREInitiatorThis is a single homogeneous and effective implementation of all the FIPA-Request-like interaction protocols defined by FIPA, that is all those protocols where the initiator sends a single message (i.e.classAchieveREResponderThis is a single homogeneous and effective implementation of all the FIPA-Request-like interaction protocols defined by FIPA, that is all those protocols where the initiator sends a single message (i.e.classContractNetInitiatorThis class implements the initiator role in a Fipa-Contract-Net or Iterated-Fipa-Contract-Net interaction protocol.
This implementation works both for 1:1 and 1:N conversation.classContractNetResponderBehaviour class forfipa-contract-netResponder role.classIteratedAchieveREInitiatorThis class implements the initiator role in the iterated version of fipa-request like interaction protocols.classProposeInitiatorThis class implements the Fipa-Propose interaction protocol with an API similar and homogeneous toAchieveREInitiator.classProposeResponderBehaviour class forfipa-proposeResponder role.classSimpleAchieveREInitiatorThis is simple implementation of the AchieveREInitiator.classSimpleAchieveREResponderThis is a single homogeneous and effective implementation of all the FIPA-Request-like interaction protocols defined by FIPA, that is all those protocols where the initiator sends a single message (i.e.classSSContractNetResponderSingle Session version of the Responder role in the Fipa-Contract-Net protocol.classSSIteratedAchieveREResponderSingle Session version of the Responder role in the Iterated-Fipa-Request protocol.classSSIteratedContractNetResponderclassSSResponderDispatcherThis behaviour is designed to be used together with the Single-Session responder protocol classes.classSubscriptionInitiatorThis is a single homogeneous and effective implementation of the initiator role in all the FIPA-Subscribe-like interaction protocols defined by FIPA, that is all those protocols where the initiator sends a single "subscription" message and receives notifications each time a given condition becomes true.classSubscriptionResponderThis is a single homogeneous and effective implementation of the responder role in all the FIPA-Subscribe-like interaction protocols defined by FIPA, that is all those protocols where the initiator sends a single "subscription" message and receives notifications each time a given condition becomes true.classTwoPh0InitiatorClass descriptionclassTwoPh1InitiatorClass descriptionclassTwoPh2InitiatorClass descriptionclassTwoPhInitiatorClass descriptionclassTwoPhResponderClass descriptionMethods in jade.proto that return Behaviour Modifier and Type Method Description protected abstract BehaviourSSResponderDispatcher. createResponder(ACLMessage initiationMsg)This method is responsible for creating a suitableBehaviouracting as responder in the interaction protocol initiated by messageinitiationMsg.BehaviourTwoPhInitiator. getPhase(String name)Methods in jade.proto with parameters of type Behaviour Modifier and Type Method Description protected voidSSResponderDispatcher. addBehaviour(Behaviour b)voidProposeInitiator. registerHandleAcceptProposal(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_ACCEPT_PROPOSAL state.voidSSContractNetResponder. registerHandleAcceptProposal(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_ACCEPT_PROPOSAL state.voidTwoPhResponder. registerHandleAcceptProposal(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_ACCEPTANCE state.voidAchieveREInitiator. registerHandleAgree(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_AGREE state.voidSubscriptionInitiator. registerHandleAgree(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_AGREE state.voidAchieveREInitiator. registerHandleAllResponses(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_ALL_RESPONSES state.voidContractNetInitiator. registerHandleAllResponses(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_ALL_RESPONSES state.voidProposeInitiator. registerHandleAllResponses(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_ALL_RESPONSES state.voidSubscriptionInitiator. registerHandleAllResponses(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_ALL_RESPONSES state.voidTwoPh0Initiator. registerHandleAllResponses(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_ALL_RESPONSES state.voidTwoPh1Initiator. registerHandleAllResponses(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_ALL_RESPONSES state.voidTwoPh2Initiator. registerHandleAllResponses(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_ALL_RESPONSES state.voidAchieveREInitiator. registerHandleAllResultNotifications(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_ALL_RESULT_NOTIFICATIONS state.voidContractNetInitiator. registerHandleAllResultNotifications(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_ALL_RESULT_NOTIFICATIONS state.voidIteratedAchieveREInitiator. registerHandleAllResultNotifications(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_ALL_RESULT_NOTIFICATIONS state.voidSSIteratedAchieveREResponder. registerHandleCancel(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_CANCEL state.voidSubscriptionResponder. registerHandleCancel(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_CANCEL state.voidContractNetResponder. registerHandleCfp(Behaviour b)Redefine this method so that the HANDLE_CFP state is not registered as first statevoidSSContractNetResponder. registerHandleCfp(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_CFP state.voidTwoPhResponder. registerHandleCfp(Behaviour b)This method allows to register a user definedBehaviourin the PREPARE_PROPOSE state.voidTwoPh1Initiator. registerHandleConfirm(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_CONFIRM state.voidTwoPh1Initiator. registerHandleDisconfirm(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_DISCONFIRM state.voidAchieveREInitiator. registerHandleInform(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_INFORM state.voidContractNetInitiator. registerHandleInform(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_INFORM state.voidIteratedAchieveREInitiator. registerHandleInform(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_REFUSE state.voidSubscriptionInitiator. registerHandleInform(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_INFORM state.voidTwoPh1Initiator. registerHandleInform(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_INFORM state.voidTwoPh2Initiator. registerHandleInform(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_INFORM state.voidProposeInitiator. registerHandleNotUnderstood(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_NOT_UNDERSTOOD state.voidTwoPh2Initiator. registerHandleOldResponse(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_OLD_RESPONSE state.voidProposeInitiator. registerHandleOutOfSequence(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_OUT_OF_SEQ state.voidContractNetInitiator. registerHandlePropose(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_PROPOSE state.voidTwoPh0Initiator. registerHandlePropose(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_PROPOSE state.voidTwoPhResponder. registerHandleQueryIf(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_QUERY_IF state.voidAchieveREInitiator. registerHandleRefuse(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_REFUSE state.voidContractNetInitiator. registerHandleRefuse(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_REFUSE state.voidSubscriptionInitiator. registerHandleRefuse(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_REFUSE state.voidProposeInitiator. registerHandleRejectProposal(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_REJECT_PROPOSAL state.voidSSContractNetResponder. registerHandleRejectProposal(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_REJECT_PROPOSAL state.voidTwoPhResponder. registerHandleRejectProposal(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_REJECT state.voidAchieveREResponder. registerHandleRequest(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_REQUEST state.voidSSIteratedAchieveREResponder. registerHandleRequest(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_REQUEST state.voidSubscriptionResponder. registerHandleSubscription(Behaviour b)This method allows to register a user definedBehaviourin the HANDLE_SUBSCRIPTION state.voidContractNetInitiator. registerPrepareCfps(Behaviour b)This method allows to register a user-definedBehaviourin the PREPARE_CFPS state.voidTwoPh0Initiator. registerPrepareCfps(Behaviour b)This method allows to register a user-definedBehaviourin the PREPARE_CFPS state.voidTwoPh2Initiator. registerPrepareProposals(Behaviour b)This method allows to register a user-definedBehaviourin the PREPARE_ACCEPTANCES state.voidTwoPh1Initiator. registerPrepareQueryIfs(Behaviour b)This method allows to register a user-definedBehaviourin the PREPARE_QUERYIFS state.voidAchieveREInitiator. registerPrepareRequests(Behaviour b)This method allows to register a user definedBehaviourin the PREPARE_REQUESTS state.voidAchieveREResponder. registerPrepareResponse(Behaviour b)Deprecated.Use registerHandleRequest() instead.voidContractNetResponder. registerPrepareResponse(Behaviour b)Deprecated.UseregisterHandleCfp()instead.voidProposeResponder. registerPrepareResponse(Behaviour b)This method allows to register a user definedBehaviourin the PREPARE_RESPONSE state.voidSubscriptionResponder. registerPrepareResponse(Behaviour b)Deprecated.Use registerHandleSubscription() instead.voidAchieveREResponder. registerPrepareResultNotification(Behaviour b)This method allows to register a user definedBehaviourin the PREPARE_RESULT_NOTIFICATION state.voidContractNetResponder. registerPrepareResultNotification(Behaviour b)Deprecated.UseregisterHandleAcceptProposal()instead.voidSubscriptionInitiator. registerPrepareSubscriptions(Behaviour b)This method allows to register a user definedBehaviourin the PREPARE_SUBSCRIPTIONS state. -
Uses of Behaviour in jade.proto.states
Subclasses of Behaviour in jade.proto.states Modifier and Type Class Description classHandlerSelectorThis class implements a selector of handler (i.e.classMsgReceiverThis behaviour is a simple implementation of a message receiver.classReplySenderThis behaviour sends a reply to a given message adjusting all protocol fields and receivers.classStateResetterThis behaviour is used as a state of a FSMbehavior in order to reset some of the FSM's states or the whole FSMMethods in jade.proto.states with parameters of type Behaviour Modifier and Type Method Description voidHandlerSelector. registerHandler(Object key, Behaviour h)Register the bounding between an handler and a key. -
Uses of Behaviour in jade.tools
Subclasses of Behaviour in jade.tools Modifier and Type Class Description protected classToolAgent.AMSListenerBehaviourThis abstract behaviour is used to receive notifications from the AMS. -
Uses of Behaviour in jade.tools.introspector
Subclasses of Behaviour in jade.tools.introspector Modifier and Type Class Description classSensorManagerMethods in jade.tools.introspector with parameters of type Behaviour Modifier and Type Method Description voidSensor. setManager(Behaviour b) -
Uses of Behaviour in jade.tools.testagent
Subclasses of Behaviour in jade.tools.testagent Modifier and Type Class Description classReceiveCyclicBehaviourThis behaviour is used for receiving ACLMessage and giving them to the TestAgent -
Uses of Behaviour in jade.util
Methods in jade.util with parameters of type Behaviour Modifier and Type Method Description voidInputQueue. associate(Behaviour b)Associate thisInputQueueobject with the indicatedBehaviourso that it will be restarted each time a new object is inserted. -
Uses of Behaviour in jade.wrapper.gateway
Subclasses of Behaviour in jade.wrapper.gateway Modifier and Type Class Description classGatewayBehaviourThis is a cyclic behaviour that processes the commands received via JadeGateway.
-