public class OntoACLMessage extends ACLMessage implements AgentAction
ACLMessage
object
as an ontological agent action.ACCEPT_PROPOSAL, AGREE, AMS_FAILURE_AGENT_NOT_FOUND, AMS_FAILURE_AGENT_UNREACHABLE, AMS_FAILURE_FOREIGN_AGENT_NO_ADDRESS, AMS_FAILURE_FOREIGN_AGENT_UNREACHABLE, AMS_FAILURE_SERVICE_ERROR, AMS_FAILURE_UNAUTHORIZED, AMS_FAILURE_UNEXPECTED_ERROR, CANCEL, CFP, CONFIRM, DISCONFIRM, DONT_NOTIFY_FAILURE, FAILURE, IGNORE_FAILURE, INFORM, INFORM_IF, INFORM_REF, NO_CLONE, NOT_UNDERSTOOD, PROPAGATE, PROPOSE, PROXY, QUERY_IF, QUERY_REF, REAL_SENDER, REFUSE, REJECT_PROPOSAL, REQUEST, REQUEST_WHEN, REQUEST_WHENEVER, SF_TIMEOUT, SUBSCRIBE, SYNCH_DELIVERY, TRACE, UNKNOWN
Constructor and Description |
---|
OntoACLMessage()
Construct an ontological ACL message whose performative
is ACLMessage.NOT_UNDERSTOOD
|
OntoACLMessage(int performative)
Construct an ontological ACL message with a given
performative
|
Modifier and Type | Method and Description |
---|---|
void |
addReceiver(AID aid)
This method is redefined so that the receiver AID is automatically
wrapped into an OntoAID
|
void |
addReplyTo(AID aid)
This method is redefined so that the replyTo AID is automatically
wrapped into an OntoAID
|
void |
setSender(AID aid)
This method is redefined so that the sender AID is automatically
wrapped into an OntoAID
|
static OntoACLMessage |
wrap(ACLMessage msg)
Create an ontological ACL message that wraps an existing
ACLMessage . |
addUserDefinedParameter, clearAllReceiver, clearAllReplyTo, clearUserDefinedParameter, clone, createReply, getAllIntendedReceiver, getAllPerformativeNames, getAllReceiver, getAllReplyTo, getAllUserDefinedParameters, getByteSequenceContent, getContent, getContentObject, getConversationId, getEncoding, getEnvelope, getInReplyTo, getInteger, getLanguage, getOntology, getPerformative, getPerformative, getPostTimeStamp, getProtocol, getReplyBy, getReplyByDate, getReplyWith, getSender, getUserDefinedParameter, hasByteSequenceContent, removeReceiver, removeReplyTo, removeUserDefinedParameter, reset, setAllUserDefinedParameters, setByteSequenceContent, setContent, setContentObject, setConversationId, setDefaultEnvelope, setEncoding, setEnvelope, setInReplyTo, setLanguage, setOntology, setPerformative, setPostTimeStamp, setProtocol, setReplyByDate, setReplyWith, shallowClone, toString
public OntoACLMessage()
public OntoACLMessage(int performative)
performative
- the performative of this ACL message.ACLMessage.ACLMessage(int)
public static OntoACLMessage wrap(ACLMessage msg)
ACLMessage
.msg
- the ACLMessage
to be wrapped. If
msg
is already an ontological ACL message no new object is
created and msg
is returned with the sender
and receivers properly wrapped if necessary.public void setSender(AID aid)
setSender
in class ACLMessage
ACLMessage.getSender()
public void addReceiver(AID aid)
addReceiver
in class ACLMessage
aid
- The value to add to the slot value set.public void addReplyTo(AID aid)
addReplyTo
in class ACLMessage
aid
- The value to add to the slot value set.