Modifier and Type | Class and Description |
---|---|
static class |
FipaMessage.Performative
FIPA performatives.
|
Constructor and 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).
|
Modifier and Type | Method and Description |
---|---|
void |
addReceiver(IComponentIdentifier receiver)
Denotes the identity of the intended recipients of the message.
|
FipaMessage |
createReply()
Create a reply for a given message.
|
boolean |
filter(java.lang.Object obj)
Test if an object passes the filter.
|
java.lang.Object |
getContent()
Denotes the content of the message; equivalently denotes the object of the action.
|
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.
|
java.lang.String |
getEncoding()
Denotes the specific encoding of the content language expression.
|
java.lang.String |
getInReplyTo()
Denotes an expression that references an earlier action to which this message is a reply.
|
java.lang.String |
getLanguage()
Denotes the language in which the content parameter is expressed.
|
java.lang.String |
getOntology()
Denotes the ontology(s) used to give a meaning to the symbols in the content expression.
|
java.lang.String |
getPerformative()
Denotes the type of the communicative act of the ACL message.
|
java.lang.String |
getProtocol()
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.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.
|
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.
|
java.lang.String |
getReplyWith()
Introduces an expression that will be used by the responding agent to identify this message.
|
IComponentIdentifier |
getSender()
Denotes the identity of the sender of the message,
that is, the name of the agent of the communicative act.
|
void |
removeReceiver(IComponentIdentifier receiver)
Denotes the identity of the intended recipients of the message.
|
void |
setContent(java.lang.Object content)
Denotes the content of the message; equivalently denotes the object of the action.
|
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.
|
void |
setEncoding(java.lang.String encoding)
Denotes the specific encoding of the content language expression.
|
void |
setInReplyTo(java.lang.String in_reply_to)
Denotes an expression that references an earlier action to which this message is a reply.
|
void |
setLanguage(java.lang.String language)
Denotes the language in which the content parameter is expressed.
|
void |
setOntology(java.lang.String ontology)
Denotes the ontology(s) used to give a meaning to the symbols in the content expression.
|
void |
setPerformative(java.lang.String performative)
Denotes the type of the communicative act of the ACL message.
|
void |
setProtocol(java.lang.String protocol)
Denotes the interaction protocol that the sending agent is employing with this ACL message.
|
void |
setReceivers(java.util.Set<IComponentIdentifier> receivers)
Denotes the identity of the intended recipients of the message.
|
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.
|
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.
|
void |
setReplyWith(java.lang.String reply_with)
Introduces an expression that will be used by the responding agent to identify this message.
|
void |
setSender(IComponentIdentifier sender)
Denotes the identity of the sender of the message,
that is, the name of the agent of the communicative act.
|
java.lang.String |
toString()
Get a string representation.
|
public FipaMessage()
public FipaMessage(java.lang.String performative, java.lang.Object content, IComponentIdentifier... receiver)
public 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)
public java.lang.String getPerformative()
public void setPerformative(java.lang.String performative)
public IComponentIdentifier getSender()
public void setSender(IComponentIdentifier sender)
public java.util.Set<IComponentIdentifier> getReceivers()
public void setReceivers(java.util.Set<IComponentIdentifier> receivers)
public void addReceiver(IComponentIdentifier receiver)
public void removeReceiver(IComponentIdentifier receiver)
public IComponentIdentifier getReplyTo()
public void setReplyTo(IComponentIdentifier reply_to)
public java.lang.Object getContent()
public void setContent(java.lang.Object content)
public java.lang.String getLanguage()
public void setLanguage(java.lang.String language)
public java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
public java.lang.String getOntology()
public void setOntology(java.lang.String ontology)
public java.lang.String getProtocol()
public void setProtocol(java.lang.String protocol)
public java.lang.String getConversationId()
public void setConversationId(java.lang.String convid)
public java.lang.String getReplyWith()
public void setReplyWith(java.lang.String reply_with)
public java.lang.String getInReplyTo()
public void setInReplyTo(java.lang.String in_reply_to)
public java.lang.Long getReplyBy()
public void setReplyBy(java.lang.Long reply_by)
public java.lang.String toString()
toString
in class java.lang.Object
public FipaMessage createReply()