Package | Description |
---|---|
jade.content | |
jade.core |
This package contains the microkernel of JADE
system.
|
jade.core.behaviours |
This package is a subpackage of
jade.core and 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.FIPAAgentManagement |
This package contains the definition of the FIPA-Agent-Management ontology
as specified by the FIPA standard
FIPA Agent Management
Specification - document no. 23 version H (15th August 2001).
|
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.lang.acl |
This package contains the support for the FIPA Agent Communication Language (ACL)
including the ACLMessage class, the parser, the encoder, and
an helper class for representing templates of ACL messages.
|
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", ...
|
Modifier and Type | Class and Description |
---|---|
class |
OntoACLMessage
Utility class that allow using an
ACLMessage object
as an ontological agent action. |
Modifier and Type | Method and Description |
---|---|
AbsContentElement |
ContentManager.extractAbsContent(ACLMessage msg)
Translates the
:content slot of an
ACLMessage msg into an AbsContentElement
using the content language and ontology indicated in the
:language and :ontology fields of msg . |
ContentElement |
ContentManager.extractContent(ACLMessage msg)
Translates the
:content slot of an
ACLMessage msg into a ContentElement
using the content language and ontology indicated in the
:language and :ontology fields of msg . |
void |
ContentManager.fillContent(ACLMessage msg,
AbsContentElement content)
Fills the
:content slot of an
ACLMessage msg using the content language
and ontology indicated in the :language and
:ontology fields of msg . |
void |
ContentManager.fillContent(ACLMessage msg,
ContentElement content)
Fills the
:content slot of an
ACLMessage msg using the content language
and ontology indicated in the :language and
:ontology fields of msg . |
static OntoACLMessage |
OntoACLMessage.wrap(ACLMessage msg)
Create an ontological ACL message that wraps an existing
ACLMessage . |
Modifier and Type | Method and Description |
---|---|
ACLMessage |
Agent.blockingReceive()
Receives an ACL message from the agent message
queue.
|
ACLMessage |
Agent.blockingReceive(long millis)
Receives an ACL message from the agent message queue,
waiting at most a specified amount of time.
|
ACLMessage |
Agent.blockingReceive(MessageTemplate pattern)
Receives an ACL message matching a given message
template.
|
ACLMessage |
Agent.blockingReceive(MessageTemplate pattern,
long millis)
Receives an ACL message matching a given message template,
waiting at most a specified time.
|
ACLMessage |
Agent.receive()
Receives an ACL message from the agent message
queue.
|
ACLMessage |
MessageQueue.receive(MessageTemplate pattern)
Return and remove the first message that matches the
specified message template.
|
ACLMessage |
Agent.receive(MessageTemplate pattern)
Receives an ACL message matching a given template.
|
Modifier and Type | Method and Description |
---|---|
void |
MessageQueue.addFirst(ACLMessage msg)
Add a message to the front of this queue.
|
void |
MessageQueue.addLast(ACLMessage msg)
Add a message to the end of this queue.
|
void |
Agent.postMessage(ACLMessage msg)
Put a received message into the agent message queue.
|
void |
Agent.putBack(ACLMessage msg)
Puts a received ACL message back into the message
queue.
|
void |
Agent.send(ACLMessage msg)
Send an ACL message to another agent.
|
Modifier and Type | Method and Description |
---|---|
protected abstract ACLMessage |
BaseInitiator.createInitiation()
Concrete subclasses are expected to implement this method to create the initiation message.
|
protected ACLMessage |
ActionExecutor.createInitiation() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
LoaderBehaviour.accept(ACLMessage msg)
Suclasses may redefine this method to prevent the behaviour
loading operation under specific conditions.
|
protected void |
LoaderBehaviour.addBehaviour(Behaviour b,
ACLMessage request)
Add a loaded behaviour to the agent.
|
void |
BaseInitiator.handleFailure(ACLMessage failure) |
void |
ActionExecutor.handleInform(ACLMessage inform) |
protected void |
OntologyServer.handleMessage(ACLMessage msg) |
void |
BaseInitiator.handleNotUnderstood(ACLMessage notUnderstood) |
protected void |
OntologyServer.handleNotUnderstood(ContentException ce,
ACLMessage msg) |
void |
BaseInitiator.handleRefuse(ACLMessage refuse) |
protected void |
OntologyServer.handleServingFailure(java.lang.Throwable t,
java.lang.Object cel,
ACLMessage msg) |
protected void |
OntologyServer.handleUnsupported(java.lang.Object keyCel,
ACLMessage msg) |
java.util.Vector |
BaseInitiator.prepareRequests(ACLMessage msg) |
Modifier and Type | Field and Description |
---|---|
protected ACLMessage |
FIPAException.msg |
Modifier and Type | Method and Description |
---|---|
static ACLMessage |
DFService.createCancelMessage(Agent a,
AID dfName,
ACLMessage subscribe)
Utility method that creates a suitable message to be used
to CANCEL a subscription to a DF agent.
|
static ACLMessage |
DFService.createRequestMessage(Agent a,
AID dfName,
java.lang.String action,
DFAgentDescription dfd,
SearchConstraints constraints)
Utility method that creates a suitable message to be used
to REQUEST a DF agent to perform a given action of the
FIPA-Management-ontology.
|
static ACLMessage |
DFService.createSubscriptionMessage(Agent a,
AID dfName,
DFAgentDescription template,
SearchConstraints constraints)
Utility method that creates a suitable message to be used
to SUBSCRIBE to a DF agent in order to receive notifications when a new
DF-Description matching the indicated template is registererd
with that DF.
|
static ACLMessage |
FIPAService.doFipaRequestClient(Agent a,
ACLMessage request)
This method plays the initiator role in the Fipa-Request
interaction protocol and performs all the steps of the
protocol.
|
static ACLMessage |
FIPAService.doFipaRequestClient(Agent a,
ACLMessage request,
long timeout)
This method plays the initiator role in the Fipa-Request
interaction protocol and performs all the steps of the protocol,
and additionally sets a conversation timeout.
|
ACLMessage |
FIPAException.getACLMessage()
Retrieve the ACL message whose content is represented by this
exception.
|
static ACLMessage |
DFService.getSubscriptionMessage(Agent a,
AID dfName,
DFAgentDescription template,
SearchConstraints constraints)
Deprecated.
Use
createSubscriptionMessage() instead |
Modifier and Type | Method and Description |
---|---|
static ACLMessage |
DFService.createCancelMessage(Agent a,
AID dfName,
ACLMessage subscribe)
Utility method that creates a suitable message to be used
to CANCEL a subscription to a DF agent.
|
static ACLMessage |
FIPAService.doFipaRequestClient(Agent a,
ACLMessage request)
This method plays the initiator role in the Fipa-Request
interaction protocol and performs all the steps of the
protocol.
|
static ACLMessage |
FIPAService.doFipaRequestClient(Agent a,
ACLMessage request,
long timeout)
This method plays the initiator role in the Fipa-Request
interaction protocol and performs all the steps of the protocol,
and additionally sets a conversation timeout.
|
static AID |
AMSService.getFailedReceiver(Agent a,
ACLMessage failure)
Extracts the receiver a message could not be delivered to from
a FAILURE message received by the AMS.
|
static java.lang.String |
AMSService.getFailureReason(Agent a,
ACLMessage failure) |
protected void |
DFSubscriber.handleInform(ACLMessage inform) |
Constructor and Description |
---|
FIPAException(ACLMessage message)
Constructs a
FIPAException from the given ACL
message. |
Modifier and Type | Method and Description |
---|---|
ACLMessage |
RefuseException.getACLMessage() |
ACLMessage |
FailureException.getACLMessage() |
Constructor and Description |
---|
FailureException(ACLMessage failure) |
NotUnderstoodException(ACLMessage notUnderstood) |
RefuseException(ACLMessage refuse) |
Modifier and Type | Method and Description |
---|---|
ACLMessage |
AMSSubscriber.getCancel()
Retrieve the
cancel ACL message
used to cancel the subscription to the AMS. |
ACLMessage |
AMSSubscriber.getSubscribe()
Retrieve the
subscribe ACL message used to subscribe
to the AMS. |
Modifier and Type | Method and Description |
---|---|
protected void |
IntrospectionServer.reply(ACLMessage request,
int performative) |
protected void |
IntrospectionServer.serveGetKeys(ACLMessage request,
Action aExpr,
GetKeys action) |
protected void |
IntrospectionServer.serveGetValue(ACLMessage request,
Action aExpr,
GetValue action) |
protected void |
IntrospectionServer.serveUnknownAction(ACLMessage request,
Action aExpr,
java.lang.Object action) |
Modifier and Type | Method and Description |
---|---|
ACLMessage |
ACLMessage.createReply()
create a new ACLMessage that is a reply to this message.
|
ACLMessage |
StringACLCodec.decode()
decode and parses the next message from the Reader passed in the
constructor.
|
ACLMessage |
StringACLCodec.decode(byte[] data,
java.lang.String charset) |
ACLMessage |
LEAPACLCodec.decode(byte[] data,
java.lang.String charset)
Recovers an
ACLMessage object back from raw data,
using the specific message representation to interpret the byte
sequence. |
ACLMessage |
ACLCodec.decode(byte[] data,
java.lang.String charset)
Recovers an
ACLMessage object back from raw data,
using the specific message representation to interpret the byte
sequence. |
static ACLMessage |
LEAPACLCodec.deserializeACL(java.io.DataInputStream dis) |
ACLMessage |
ACLMessage.shallowClone()
Normal clone() method actually perform a deep-clone of the ACLMessage object.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
StringACLCodec.encode(ACLMessage msg,
java.lang.String charset)
If the content of the message is a byteSequence, then this
method encodes the content in Base64 and automatically sets the value
of the encoding slot.
|
byte[] |
LEAPACLCodec.encode(ACLMessage msg,
java.lang.String charset)
Encodes an
ACLMessage object into a byte sequence,
according to the specific message representation. |
byte[] |
ACLCodec.encode(ACLMessage msg,
java.lang.String charset)
Encodes an
ACLMessage object into a byte sequence,
according to the specific message representation. |
boolean |
MessageTemplate.match(ACLMessage msg)
Matches an ACL message against this
MessageTemplate
object. |
boolean |
MessageTemplate.MatchExpression.match(ACLMessage msg)
Check whether a given ACL message matches this
template.
|
static MessageTemplate |
MessageTemplate.MatchCustom(ACLMessage msg,
boolean matchPerformative)
This Factory Method returns a message template that
matches ACL messages against a given one, passed as
parameter.
|
static void |
LEAPACLCodec.serializeACL(ACLMessage msg,
java.io.DataOutputStream dos) |
void |
StringACLCodec.write(ACLMessage msg)
encodes the message and writes it into the Writer passed in the
constructor.
|
Modifier and Type | Method and Description |
---|---|
ACLMessage |
SubscriptionResponder.Subscription.getMessage()
Retrieve the ACL message with which this
subscription object was created.
|
protected ACLMessage |
TwoPhResponder.handleAcceptProposal(ACLMessage accept)
This method is called after the
ACCEPT-PROPOSAL has been received. |
protected ACLMessage |
SSContractNetResponder.handleAcceptProposal(ACLMessage cfp,
ACLMessage propose,
ACLMessage accept)
This method is called when an ACCEPT_PROPOSAL message is received from the
initiator.
|
protected ACLMessage |
SubscriptionResponder.handleCancel(ACLMessage cancel)
This method is called when a CANCEL message is received for a previous subscription.
|
protected ACLMessage |
TwoPhResponder.handleCfp(ACLMessage cfp)
This method is called when the initiator's
message is received that matches the message template
passed in the constructor.
|
protected ACLMessage |
SSContractNetResponder.handleCfp(ACLMessage cfp)
This method is called to handle the initial CFP message.
|
protected ACLMessage |
TwoPhResponder.handleQueryIf(ACLMessage queryIf)
This method is called after the
QUERY-IF has been received. |
protected ACLMessage |
TwoPhResponder.handleRejectProposal(ACLMessage reject)
This method is called after the
REJECT-PROPOSAL has been received. |
protected ACLMessage |
SSIteratedAchieveREResponder.handleRequest(ACLMessage request)
This method is called to handle the initial REQUEST message and
then again whenever a REQUEST message is received.
|
protected ACLMessage |
AchieveREResponder.handleRequest(ACLMessage request)
This method is called when the protocol initiation message (matching the
MessageTemplate specified in the constructor) is received.
|
protected ACLMessage |
SubscriptionResponder.handleSubscription(ACLMessage subscription)
This method is called when a subscription
message is received that matches the message template
specified in the constructor.
|
protected ACLMessage |
SimpleAchieveREInitiator.prepareRequest(ACLMessage msg)
This method must return the ACLMessage to be sent.
|
protected ACLMessage |
SubscriptionResponder.prepareResponse(ACLMessage subscription)
Deprecated.
Use handleSubscription() instead
|
protected ACLMessage |
SimpleAchieveREResponder.prepareResponse(ACLMessage request)
This method is called when the initiator's
message is received that matches the message template
passed in the constructor.
|
protected ACLMessage |
ProposeResponder.prepareResponse(ACLMessage propose)
This method is called when the initiator's
message is received that matches the message template
passed in the constructor.
|
protected ACLMessage |
ContractNetResponder.prepareResponse(ACLMessage cfp)
Deprecated.
Use
handleCfp() instead |
protected ACLMessage |
AchieveREResponder.prepareResponse(ACLMessage request)
Deprecated.
Use handleRequest() instead
|
protected ACLMessage |
SimpleAchieveREResponder.prepareResultNotification(ACLMessage request,
ACLMessage response)
This method is called after the response has been sent
and only when one of the folliwing two cases arise:
the response was an
agree message OR no response
message was sent. |
protected ACLMessage |
AchieveREResponder.prepareResultNotification(ACLMessage request,
ACLMessage response)
This method is called after the execution of the handleRequest() method if
no response was sent or the response was an
AGREE message. |
protected ACLMessage |
ContractNetResponder.prepareResultNotification(ACLMessage cfp,
ACLMessage propose,
ACLMessage accept)
Deprecated.
Use
handleAcceptProposal() instead. |
Modifier and Type | Method and Description |
---|---|
protected void |
SSIteratedContractNetResponder.afterReply(ACLMessage reply) |
protected void |
SSIteratedContractNetResponder.beforeReply(ACLMessage reply) |
protected boolean |
SSIteratedContractNetResponder.checkInSequence(ACLMessage received) |
protected boolean |
ProposeInitiator.checkInSequence(ACLMessage reply)
Check whether a reply is in-sequence and update the appropriate Session.
|
protected int |
ProposeInitiator.checkSessions(ACLMessage reply)
Check the status of the sessions after the reception of the last reply
or the expiration of the timeout.
|
protected abstract Behaviour |
SSResponderDispatcher.createResponder(ACLMessage initiationMsg)
This method is responsible for creating a suitable
Behaviour acting as responder
in the interaction protocol initiated by message initiationMsg . |
SubscriptionResponder.Subscription |
SubscriptionResponder.createSubscription(ACLMessage subsMsg)
Utility method to correctly create a new
Subscription object
managed by this SubscriptionResponder |
protected void |
SubscriptionInitiator.fillCancelContent(ACLMessage subscription,
ACLMessage cancel)
This method is used to fill the
:content slot
of the CANCEL message that is being sent to an agent to cancel
the subscription previously activated by means of the
subscription message. |
protected ProtocolSession |
TwoPh2Initiator.getSession(ACLMessage msg,
int sessionIndex) |
protected ProtocolSession |
TwoPh1Initiator.getSession(ACLMessage msg,
int sessionIndex) |
protected ProtocolSession |
TwoPh0Initiator.getSession(ACLMessage msg,
int sessionIndex) |
protected ProtocolSession |
ContractNetInitiator.getSession(ACLMessage msg,
int sessionIndex) |
protected ProtocolSession |
AchieveREInitiator.getSession(ACLMessage msg,
int sessionIndex) |
SubscriptionResponder.Subscription |
SubscriptionResponder.getSubscription(ACLMessage msg)
Utility method to correctly retrieve the
Subscription object that is related to the conversation
message msg belongs to. |
protected ACLMessage |
TwoPhResponder.handleAcceptProposal(ACLMessage accept)
This method is called after the
ACCEPT-PROPOSAL has been received. |
protected void |
ProposeInitiator.handleAcceptProposal(ACLMessage accept_proposal)
This method is called every time an
accept-proposal
message is received, which is not out-of-sequence according
to the protocol rules. |
protected ACLMessage |
SSContractNetResponder.handleAcceptProposal(ACLMessage cfp,
ACLMessage propose,
ACLMessage accept)
This method is called when an ACCEPT_PROPOSAL message is received from the
initiator.
|
protected void |
SubscriptionInitiator.handleAgree(ACLMessage agree)
This method is called every time an
agree
message is received, which is not out-of-sequence according
to the protocol rules. |
protected void |
SimpleAchieveREInitiator.handleAgree(ACLMessage msg)
This method is called every time an
agree
message is received, which is not out-of-sequence according
to the protocol rules. |
protected void |
AchieveREInitiator.handleAgree(ACLMessage agree)
This method is called every time an
agree
message is received, which is not out-of-sequence according
to the protocol rules. |
protected ACLMessage |
SubscriptionResponder.handleCancel(ACLMessage cancel)
This method is called when a CANCEL message is received for a previous subscription.
|
protected void |
SSIteratedAchieveREResponder.handleCancel(ACLMessage cancel)
This method is called when a CANCEL message is received from the
initiator.
|
protected ACLMessage |
TwoPhResponder.handleCfp(ACLMessage cfp)
This method is called when the initiator's
message is received that matches the message template
passed in the constructor.
|
protected ACLMessage |
SSContractNetResponder.handleCfp(ACLMessage cfp)
This method is called to handle the initial CFP message.
|
protected void |
TwoPhInitiator.handleConfirm(ACLMessage confirm)
This method is called every time a
confirm message is received,
which is not out-of-sequence according to the protocol rules. |
protected void |
TwoPh1Initiator.handleConfirm(ACLMessage confirm)
This method is called every time a
confirm message is received,
which is not out-of-sequence according to the protocol rules. |
protected void |
TwoPhInitiator.handleDisconfirm(ACLMessage disconfirm)
This method is called every time a
disconfirm message is received,
which is not out-of-sequence according to the protocol rules. |
protected void |
TwoPh1Initiator.handleDisconfirm(ACLMessage disconfirm)
This method is called every time a
disconfirm message is received,
which is not out-of-sequence according to the protocol rules. |
protected void |
TwoPhInitiator.handleFailure(ACLMessage failure)
This method is called every time a
failure message is received,
which is not out-of-sequence according to the protocol rules. |
protected void |
SimpleAchieveREInitiator.handleFailure(ACLMessage msg)
This method is called every time a
failure
message is received, which is not out-of-sequence according
to the protocol rules. |
protected void |
TwoPh2Initiator.handleInform(ACLMessage inform)
This method is called every time a
inform message is received,
which is not out-of-sequence according to the protocol rules. |
protected void |
TwoPh1Initiator.handleInform(ACLMessage inform)
This method is called every time a
inform message is received,
which is not out-of-sequence according to the protocol rules. |
protected void |
SubscriptionInitiator.handleInform(ACLMessage inform)
This method is called every time a
inform
message is received, which is not out-of-sequence according
to the protocol rules. |
protected void |
SimpleAchieveREInitiator.handleInform(ACLMessage msg)
This method is called every time a
inform
message is received, which is not out-of-sequence according
to the protocol rules. |
protected void |
IteratedAchieveREInitiator.handleInform(ACLMessage inform)
This method is redefined to call the proper overloaded method
|
protected void |
ContractNetInitiator.handleInform(ACLMessage inform)
This method is called every time a
inform
message is received, which is not out-of-sequence according
to the protocol rules. |
protected void |
AchieveREInitiator.handleInform(ACLMessage inform)
This method is called every time a
inform
message is received, which is not out-of-sequence according
to the protocol rules. |
protected void |
IteratedAchieveREInitiator.handleInform(ACLMessage inform,
java.util.Vector nextRequests)
This method is called every time an
inform
message is received, which is not out-of-sequence according
to the protocol rules. |
protected void |
TwoPhInitiator.handleNotUnderstood(ACLMessage notUnderstood) |
protected void |
SimpleAchieveREInitiator.handleNotUnderstood(ACLMessage msg)
This method is called every time a
not-understood
message is received, which is not out-of-sequence according
to the protocol rules. |
protected void |
ProposeInitiator.handleNotUnderstood(ACLMessage notUnderstood)
This method is called every time a
not-understood
message is received, which is not out-of-sequence according
to the protocol rules. |
protected void |
TwoPhInitiator.handleOldResponse(ACLMessage old)
This method is called every time a
failure , a disconfirm
or an inform message is received in phase 2, which is not out-of-sequence
according to the protocol rules. |
protected void |
TwoPh2Initiator.handleOldResponse(ACLMessage old)
This method is called every time a
failure , a disconfirm
or an inform message is received, which is not out-of-sequence
according to the protocol rules. |
protected void |
TwoPhInitiator.handleOutOfSequence(ACLMessage msg)
This method is called every time a message is received in phase n (use
getCurrentPhase method to know the phase), which is
out-of-sequence according to the protocol rules. |
protected void |
SimpleAchieveREInitiator.handleOutOfSequence(ACLMessage msg)
This method is called every time a
message is received, which is out-of-sequence according
to the protocol rules.
|
protected void |
ProposeInitiator.handleOutOfSequence(ACLMessage msg)
This method is called every time a
message is received, which is out-of-sequence according
to the protocol rules.
|
protected void |
SSContractNetResponder.handleOutOfSequence(ACLMessage cfp,
ACLMessage propose,
ACLMessage msg)
This method is called whenever a message is received that does
not comply to the protocol rules.
|
protected void |
TwoPhInitiator.handlePh1Inform(ACLMessage inform)
This method is called every time an
inform message in phase 1
is received, which is not out-of-sequence according to the protocol rules. |
protected void |
TwoPhInitiator.handlePh2Inform(ACLMessage inform)
This method is called every time an
inform message in phase 2
is received, which is not out-of-sequence according to the protocol rules. |
protected void |
TwoPhInitiator.handlePropose(ACLMessage propose)
This method is called every time a
propose message is received,
which is not out-of-sequence according to the protocol rules. |
protected void |
TwoPh0Initiator.handlePropose(ACLMessage propose)
This method is called every time a
propose message is received,
which is not out-of-sequence according to the protocol rules. |
protected void |
ContractNetInitiator.handlePropose(ACLMessage propose,
java.util.Vector acceptances)
This method is called every time a
propose
message is received, which is not out-of-sequence according
to the protocol rules. |
protected ACLMessage |
TwoPhResponder.handleQueryIf(ACLMessage queryIf)
This method is called after the
QUERY-IF has been received. |
protected void |
SubscriptionInitiator.handleRefuse(ACLMessage refuse)
This method is called every time a
refuse
message is received, which is not out-of-sequence according
to the protocol rules. |
protected void |
SimpleAchieveREInitiator.handleRefuse(ACLMessage msg)
This method is called every time a
refuse
message is received, which is not out-of-sequence according
to the protocol rules. |
protected void |
ContractNetInitiator.handleRefuse(ACLMessage refuse)
This method is called every time a
refuse
message is received, which is not out-of-sequence according
to the protocol rules. |
protected void |
AchieveREInitiator.handleRefuse(ACLMessage refuse)
This method is called every time a
refuse
message is received, which is not out-of-sequence according
to the protocol rules. |
protected ACLMessage |
TwoPhResponder.handleRejectProposal(ACLMessage reject)
This method is called after the
REJECT-PROPOSAL has been received. |
protected void |
ProposeInitiator.handleRejectProposal(ACLMessage reject_proposal)
This method is called every time an
reject-proposal
message is received, which is not out-of-sequence according
to the protocol rules. |
protected void |
SSContractNetResponder.handleRejectProposal(ACLMessage cfp,
ACLMessage propose,
ACLMessage reject)
This method is called when a REJECT_PROPOSAL message is received from the
initiator.
|
protected ACLMessage |
SSIteratedAchieveREResponder.handleRequest(ACLMessage request)
This method is called to handle the initial REQUEST message and
then again whenever a REQUEST message is received.
|
protected ACLMessage |
AchieveREResponder.handleRequest(ACLMessage request)
This method is called when the protocol initiation message (matching the
MessageTemplate specified in the constructor) is received.
|
protected ACLMessage |
SubscriptionResponder.handleSubscription(ACLMessage subscription)
This method is called when a subscription
message is received that matches the message template
specified in the constructor.
|
protected void |
ProposeInitiator.initializeDataStore(ACLMessage msg)
Initialize the data store.
|
static boolean |
IteratedAchieveREInitiator.isSessionTerminated(ACLMessage inform)
Check if the responder has closed the session just after sending this
inform message. |
void |
SubscriptionResponder.Subscription.notify(ACLMessage notification)
This method allows sending back a notification message to the subscribed
agent associated to this
Subscription object. |
protected java.util.Vector |
TwoPh2Initiator.prepareAcceptances(ACLMessage acceptance)
This method must return the vector of ACLMessage objects to be sent.
|
protected java.util.Vector |
TwoPhInitiator.prepareCfps(ACLMessage cfp)
This method must return the vector of ACLMessage objects to be sent.
|
protected java.util.Vector |
TwoPh0Initiator.prepareCfps(ACLMessage cfp)
This method must return the vector of ACLMessage objects to be sent.
|
protected java.util.Vector |
ContractNetInitiator.prepareCfps(ACLMessage cfp)
This method must return the vector of ACLMessage objects to be
sent.
|
protected java.util.Vector |
ProposeInitiator.prepareInitiations(ACLMessage propose)
This method must return the vector of ACLMessage objects to be
sent.
|
protected java.util.Vector |
TwoPh1Initiator.prepareQueryIfs(ACLMessage queryIf)
This method must return the vector of ACLMessage objects to be sent.
|
protected ACLMessage |
SimpleAchieveREInitiator.prepareRequest(ACLMessage msg)
This method must return the ACLMessage to be sent.
|
protected java.util.Vector |
AchieveREInitiator.prepareRequests(ACLMessage request)
This method must return the vector of ACLMessage objects to be
sent.
|
protected ACLMessage |
SubscriptionResponder.prepareResponse(ACLMessage subscription)
Deprecated.
Use handleSubscription() instead
|
protected ACLMessage |
SimpleAchieveREResponder.prepareResponse(ACLMessage request)
This method is called when the initiator's
message is received that matches the message template
passed in the constructor.
|
protected ACLMessage |
ProposeResponder.prepareResponse(ACLMessage propose)
This method is called when the initiator's
message is received that matches the message template
passed in the constructor.
|
protected ACLMessage |
ContractNetResponder.prepareResponse(ACLMessage cfp)
Deprecated.
Use
handleCfp() instead |
protected ACLMessage |
AchieveREResponder.prepareResponse(ACLMessage request)
Deprecated.
Use handleRequest() instead
|
protected ACLMessage |
SimpleAchieveREResponder.prepareResultNotification(ACLMessage request,
ACLMessage response)
This method is called after the response has been sent
and only when one of the folliwing two cases arise:
the response was an
agree message OR no response
message was sent. |
protected ACLMessage |
AchieveREResponder.prepareResultNotification(ACLMessage request,
ACLMessage response)
This method is called after the execution of the handleRequest() method if
no response was sent or the response was an
AGREE message. |
protected ACLMessage |
ContractNetResponder.prepareResultNotification(ACLMessage cfp,
ACLMessage propose,
ACLMessage accept)
Deprecated.
Use
handleAcceptProposal() instead. |
protected java.util.Vector |
SubscriptionInitiator.prepareSubscriptions(ACLMessage subscription)
This method must return the vector of subscription ACLMessage objects to be
sent.
|
void |
SimpleAchieveREInitiator.reset(ACLMessage msg)
This method resets this behaviour so that it restarts the protocol with
another request message.
|
void |
ProposeInitiator.reset(ACLMessage msg)
reset this behaviour
|
void |
SSIteratedAchieveREResponder.sendAgree(ACLMessage agree)
Utility method to send an optional AGREE message back to the
initiator ensuring that all protocol fields are properly set.
|
Constructor and Description |
---|
AchieveREInitiator(Agent a,
ACLMessage msg)
Construct an
AchieveREInitiator with an empty DataStore |
AchieveREInitiator(Agent a,
ACLMessage msg,
DataStore store)
Construct an
AchieveREInitiator with a given DataStore |
ContractNetInitiator(Agent a,
ACLMessage cfp)
Constructor for the class that creates a new empty DataStore
|
ContractNetInitiator(Agent a,
ACLMessage cfp,
DataStore store)
Constructs a
ContractNetInitiator behaviour |
IteratedAchieveREInitiator(Agent a,
ACLMessage msg)
Construct an
IteratedAchieveREInitiator with an empty DataStore |
IteratedAchieveREInitiator(Agent a,
ACLMessage msg,
DataStore store)
Construct an
IteratedAchieveREInitiator with a given DataStore |
ProposeInitiator(Agent a,
ACLMessage msg)
Construct a
ProposeInitiator with an empty DataStore |
ProposeInitiator(Agent a,
ACLMessage initiation,
DataStore store)
Construct a
ProposeInitiator with a given DataStore |
SimpleAchieveREInitiator(Agent a,
ACLMessage msg)
Construct for the class by creating a new empty DataStore
|
SimpleAchieveREInitiator(Agent a,
ACLMessage msg,
DataStore store)
Constructs a
SimpleAchieveREInitiator behaviour |
SSContractNetResponder(Agent a,
ACLMessage cfp)
Construct a SSContractNetResponder that is activated
by the reception of a given initiation CFP message.
|
SSContractNetResponder(Agent a,
ACLMessage cfp,
DataStore store)
Construct a SSContractNetResponder that is activated
by the reception of a given initiation CFP message and uses
a given DataStore.
|
SSIteratedAchieveREResponder(Agent a,
ACLMessage request)
Construct a SSIteratedAchieveREResponder that is activated
by the reception of a given initiation REQUEST message.
|
SSIteratedAchieveREResponder(Agent a,
ACLMessage request,
DataStore store)
Construct a SSIteratedAchieveREResponder that is activated
by the reception of a given initiation REQUEST message and uses
a given DataStore.
|
SSIteratedContractNetResponder(Agent a,
ACLMessage cfp) |
SSIteratedContractNetResponder(Agent a,
ACLMessage cfp,
DataStore store)
Construct a SSIteratedContractNetResponder that is activated
by the reception of a given initiation CFP message and uses
a given DataStore.
|
SubscriptionInitiator(Agent a,
ACLMessage msg)
Construct a
SubscriptionInitiator with an empty DataStore |
SubscriptionInitiator(Agent a,
ACLMessage msg,
DataStore store)
Construct a
SubscriptionInitiator with a given DataStore |
TwoPh0Initiator(Agent a,
ACLMessage cfp,
java.lang.String outputKey)
Constructs a
TwoPh0Initiator behaviour. |
TwoPh0Initiator(Agent a,
ACLMessage cfp,
java.lang.String outputKey,
DataStore store)
Constructs a
TwoPh0Initiator behaviour. |
TwoPh1Initiator(Agent a,
ACLMessage queryIf,
java.lang.String outputKey)
Constructs a
TwoPh1Initiator behaviour. |
TwoPh1Initiator(Agent a,
ACLMessage queryIf,
java.lang.String outputKey,
DataStore store)
Constructs a
TwoPh1Initiator behaviour. |
TwoPh2Initiator(Agent a,
ACLMessage acceptance)
Constructs a
TwoPh2Initiator behaviour. |
TwoPh2Initiator(Agent a,
ACLMessage acceptance,
DataStore store)
Constructs a
TwoPh2Initiator behaviour. |
TwoPhInitiator(Agent a,
ACLMessage cfp)
Constructs a
TwoPhInitiator behaviour. |
TwoPhInitiator(Agent a,
ACLMessage cfp,
DataStore ds)
Constructs a
TwoPhInitiator behaviour. |
Modifier and Type | Method and Description |
---|---|
static void |
ReplySender.adjustReply(Agent myAgent,
ACLMessage reply,
ACLMessage msg)
Adjust all protocol fields and receivers in a reply to a given
message.
|
protected void |
MsgReceiver.handleMessage(ACLMessage msg)
This is invoked when a message matching the specified template
is received or the timeout has expired (the
msg
parameter is null in this case). |