Package jade.content
Class OntoACLMessage
- java.lang.Object
-
- jade.lang.acl.ACLMessage
-
- jade.content.OntoACLMessage
-
- All Implemented Interfaces:
AgentAction,Concept,ContentElement,Term,Serializable,Serializable,Cloneable
public class OntoACLMessage extends ACLMessage implements AgentAction
Utility class that allow using anACLMessageobject as an ontological agent action.- Author:
- Giovanni Caire - TILAB
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class jade.lang.acl.ACLMessage
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 Summary
Constructors Constructor Description OntoACLMessage()Construct an ontological ACL message whose performative is ACLMessage.NOT_UNDERSTOODOntoACLMessage(int performative)Construct an ontological ACL message with a given performative
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddReceiver(AID aid)This method is redefined so that the receiver AID is automatically wrapped into an OntoAIDvoidaddReplyTo(AID aid)This method is redefined so that the replyTo AID is automatically wrapped into an OntoAIDvoidsetSender(AID aid)This method is redefined so that the sender AID is automatically wrapped into an OntoAIDstatic OntoACLMessagewrap(ACLMessage msg)Create an ontological ACL message that wraps an existingACLMessage.-
Methods inherited from class jade.lang.acl.ACLMessage
addUserDefinedParameter, clearAllReceiver, clearAllReplyTo, clearUserDefinedParameter, clone, createReply, 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, shortToString, toString
-
-
-
-
Constructor Detail
-
OntoACLMessage
public OntoACLMessage()
Construct an ontological ACL message whose performative is ACLMessage.NOT_UNDERSTOOD
-
OntoACLMessage
public OntoACLMessage(int performative)
Construct an ontological ACL message with a given performative- Parameters:
performative- the performative of this ACL message.- See Also:
ACLMessage(int)
-
-
Method Detail
-
wrap
public static OntoACLMessage wrap(ACLMessage msg)
Create an ontological ACL message that wraps an existingACLMessage.- Parameters:
msg- theACLMessageto be wrapped. Ifmsgis already an ontological ACL message no new object is created andmsgis returned with the sender and receivers properly wrapped if necessary.
-
setSender
public void setSender(AID aid)
This method is redefined so that the sender AID is automatically wrapped into an OntoAID- Overrides:
setSenderin classACLMessage- See Also:
ACLMessage.getSender()
-
addReceiver
public void addReceiver(AID aid)
This method is redefined so that the receiver AID is automatically wrapped into an OntoAID- Overrides:
addReceiverin classACLMessage- Parameters:
aid- The value to add to the slot value set.
-
addReplyTo
public void addReplyTo(AID aid)
This method is redefined so that the replyTo AID is automatically wrapped into an OntoAID- Overrides:
addReplyToin classACLMessage- Parameters:
aid- The value to add to the slot value set.
-
-