Package jadex.bridge.fipa
Class FipaMessage
- java.lang.Object
- 
- jadex.bridge.fipa.FipaMessage
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classFipaMessage.PerformativeFIPA performatives.
 - 
Constructor SummaryConstructors Constructor Description FipaMessage()Bean constructor.FipaMessage(IComponentIdentifier sender, java.util.Set<IComponentIdentifier> receivers, java.lang.String performative, java.lang.Object content, java.lang.String convid, java.lang.String protocol, IComponentIdentifier reply_to, java.lang.String language, java.lang.String ontology, java.lang.String encoding, java.lang.String reply_with, java.lang.String in_reply_to, java.lang.Long reply_by)Constructor for all fields (e.g.FipaMessage(java.lang.String performative, java.lang.Object content, IComponentIdentifier... receiver)Constructor for most common fields (for sending).
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddReceiver(IComponentIdentifier receiver)Denotes the identity of the intended recipients of the message.FipaMessagecreateReply()Create a reply for a given message.booleanfilter(java.lang.Object obj)Test if an object passes the filter.java.lang.ObjectgetContent()Denotes the content of the message; equivalently denotes the object of the action.java.lang.StringgetConversationId()Introduces an expression (a conversation identifier) which is used to identify the ongoing sequence of communicative acts that together form a conversation.java.lang.StringgetEncoding()Denotes the specific encoding of the content language expression.java.lang.StringgetInReplyTo()Denotes an expression that references an earlier action to which this message is a reply.java.lang.StringgetLanguage()Denotes the language in which the content parameter is expressed.java.lang.StringgetOntology()Denotes the ontology(s) used to give a meaning to the symbols in the content expression.java.lang.StringgetPerformative()Denotes the type of the communicative act of the ACL message.java.lang.StringgetProtocol()Denotes the interaction protocol that the sending agent is employing with this ACL message.java.util.Set<IComponentIdentifier>getReceivers()Denotes the identity of the intended recipients of the message.java.lang.LonggetReplyBy()Denotes a time and/or date expression which indicates the latest time by which the sending agent would like to receive a reply.IComponentIdentifiergetReplyTo()This parameter indicates that subsequent messages in this conversation thread are to be directed to the agent named in the reply-to parameter, instead of to the agent named in the sender parameter.java.lang.StringgetReplyWith()Introduces an expression that will be used by the responding agent to identify this message.IComponentIdentifiergetSender()Denotes the identity of the sender of the message, that is, the name of the agent of the communicative act.voidremoveReceiver(IComponentIdentifier receiver)Denotes the identity of the intended recipients of the message.voidsetContent(java.lang.Object content)Denotes the content of the message; equivalently denotes the object of the action.voidsetConversationId(java.lang.String convid)Introduces an expression (a conversation identifier) which is used to identify the ongoing sequence of communicative acts that together form a conversation.voidsetEncoding(java.lang.String encoding)Denotes the specific encoding of the content language expression.voidsetInReplyTo(java.lang.String in_reply_to)Denotes an expression that references an earlier action to which this message is a reply.voidsetLanguage(java.lang.String language)Denotes the language in which the content parameter is expressed.voidsetOntology(java.lang.String ontology)Denotes the ontology(s) used to give a meaning to the symbols in the content expression.voidsetPerformative(java.lang.String performative)Denotes the type of the communicative act of the ACL message.voidsetProtocol(java.lang.String protocol)Denotes the interaction protocol that the sending agent is employing with this ACL message.voidsetReceivers(java.util.Set<IComponentIdentifier> receivers)Denotes the identity of the intended recipients of the message.voidsetReplyBy(java.lang.Long reply_by)Denotes a time and/or date expression which indicates the latest time by which the sending agent would like to receive a reply.voidsetReplyTo(IComponentIdentifier reply_to)This parameter indicates that subsequent messages in this conversation thread are to be directed to the agent named in the reply-to parameter, instead of to the agent named in the sender parameter.voidsetReplyWith(java.lang.String reply_with)Introduces an expression that will be used by the responding agent to identify this message.voidsetSender(IComponentIdentifier sender)Denotes the identity of the sender of the message, that is, the name of the agent of the communicative act.java.lang.StringtoString()Get a string representation.
 
- 
- 
- 
Constructor Detail- 
FipaMessagepublic FipaMessage() Bean constructor.
 - 
FipaMessagepublic FipaMessage(java.lang.String performative, java.lang.Object content, IComponentIdentifier... receiver)Constructor for most common fields (for sending).
 - 
FipaMessagepublic FipaMessage(IComponentIdentifier sender, java.util.Set<IComponentIdentifier> receivers, java.lang.String performative, java.lang.Object content, java.lang.String convid, java.lang.String protocol, IComponentIdentifier reply_to, java.lang.String language, java.lang.String ontology, java.lang.String encoding, java.lang.String reply_with, java.lang.String in_reply_to, java.lang.Long reply_by) Constructor for all fields (e.g. for match template).
 
- 
 - 
Method Detail- 
getPerformativepublic java.lang.String getPerformative() Denotes the type of the communicative act of the ACL message.
 - 
setPerformativepublic void setPerformative(java.lang.String performative) Denotes the type of the communicative act of the ACL message.
 - 
getSenderpublic IComponentIdentifier getSender() Denotes the identity of the sender of the message, that is, the name of the agent of the communicative act.
 - 
setSenderpublic void setSender(IComponentIdentifier sender) Denotes the identity of the sender of the message, that is, the name of the agent of the communicative act.
 - 
getReceiverspublic java.util.Set<IComponentIdentifier> getReceivers() Denotes the identity of the intended recipients of the message.
 - 
setReceiverspublic void setReceivers(java.util.Set<IComponentIdentifier> receivers) Denotes the identity of the intended recipients of the message.
 - 
addReceiverpublic void addReceiver(IComponentIdentifier receiver) Denotes the identity of the intended recipients of the message.
 - 
removeReceiverpublic void removeReceiver(IComponentIdentifier receiver) Denotes the identity of the intended recipients of the message.
 - 
getReplyTopublic IComponentIdentifier getReplyTo() This parameter indicates that subsequent messages in this conversation thread are to be directed to the agent named in the reply-to parameter, instead of to the agent named in the sender parameter.
 - 
setReplyTopublic void setReplyTo(IComponentIdentifier reply_to) This parameter indicates that subsequent messages in this conversation thread are to be directed to the agent named in the reply-to parameter, instead of to the agent named in the sender parameter.
 - 
getContentpublic java.lang.Object getContent() Denotes the content of the message; equivalently denotes the object of the action. The meaning of the content of any ACL message is intended to be interpreted by the receiver of the message. This is particularly relevant for instance when referring to referential expressions, whose interpretation might be different for the sender and the receiver.
 - 
setContentpublic void setContent(java.lang.Object content) Denotes the content of the message; equivalently denotes the object of the action. The meaning of the content of any ACL message is intended to be interpreted by the receiver of the message. This is particularly relevant for instance when referring to referential expressions, whose interpretation might be different for the sender and the receiver.
 - 
getLanguagepublic java.lang.String getLanguage() Denotes the language in which the content parameter is expressed.
 - 
setLanguagepublic void setLanguage(java.lang.String language) Denotes the language in which the content parameter is expressed.
 - 
getEncodingpublic java.lang.String getEncoding() Denotes the specific encoding of the content language expression.
 - 
setEncodingpublic void setEncoding(java.lang.String encoding) Denotes the specific encoding of the content language expression.
 - 
getOntologypublic java.lang.String getOntology() Denotes the ontology(s) used to give a meaning to the symbols in the content expression.
 - 
setOntologypublic void setOntology(java.lang.String ontology) Denotes the ontology(s) used to give a meaning to the symbols in the content expression.
 - 
getProtocolpublic java.lang.String getProtocol() Denotes the interaction protocol that the sending agent is employing with this ACL message.
 - 
setProtocolpublic void setProtocol(java.lang.String protocol) Denotes the interaction protocol that the sending agent is employing with this ACL message.
 - 
getConversationIdpublic java.lang.String getConversationId() Introduces an expression (a conversation identifier) which is used to identify the ongoing sequence of communicative acts that together form a conversation.
 - 
setConversationIdpublic void setConversationId(java.lang.String convid) Introduces an expression (a conversation identifier) which is used to identify the ongoing sequence of communicative acts that together form a conversation.
 - 
getReplyWithpublic java.lang.String getReplyWith() Introduces an expression that will be used by the responding agent to identify this message.
 - 
setReplyWithpublic void setReplyWith(java.lang.String reply_with) Introduces an expression that will be used by the responding agent to identify this message.
 - 
getInReplyTopublic java.lang.String getInReplyTo() Denotes an expression that references an earlier action to which this message is a reply.
 - 
setInReplyTopublic void setInReplyTo(java.lang.String in_reply_to) Denotes an expression that references an earlier action to which this message is a reply.
 - 
getReplyBypublic java.lang.Long getReplyBy() Denotes a time and/or date expression which indicates the latest time by which the sending agent would like to receive a reply.
 - 
setReplyBypublic void setReplyBy(java.lang.Long reply_by) Denotes a time and/or date expression which indicates the latest time by which the sending agent would like to receive a reply.
 - 
toStringpublic java.lang.String toString() Get a string representation.- Overrides:
- toStringin class- java.lang.Object
 
 - 
createReplypublic FipaMessage createReply() Create a reply for a given message.
 
- 
 
-