jade.content
Class OntoACLMessage

java.lang.Object
  |
  +--jade.lang.acl.ACLMessage
        |
        +--jade.content.OntoACLMessage
All Implemented Interfaces:
AgentAction, java.lang.Cloneable, Concept, ContentElement, java.io.Serializable, Serializable, Term

public class OntoACLMessage
extends ACLMessage
implements AgentAction

Utility class that allow using an ACLMessage object 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, CANCEL, CFP, CONFIRM, DISCONFIRM, FAILURE, IGNORE_FAILURE, INFORM, INFORM_IF, INFORM_REF, NOT_UNDERSTOOD, POST_TIME_STAMP, PROPAGATE, PROPOSE, PROXY, QUERY_IF, QUERY_REF, REFUSE, REJECT_PROPOSAL, REQUEST, REQUEST_WHEN, REQUEST_WHENEVER, SUBSCRIBE, UNKNOWN
 
Constructor Summary
OntoACLMessage()
          Construct an ontological ACL message whose performative is ACLMessage.NOT_UNDERSTOOD
OntoACLMessage(int performative)
          Construct an ontological ACL message with a given performative
 
Method Summary
 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.
 
Methods inherited from class jade.lang.acl.ACLMessage
addUserDefinedParameter, clearAllReceiver, clearAllReplyTo, clone, createReply, getAllIntendedReceiver, getAllPerformativeNames, getAllReceiver, getAllReplyTo, getAllUserDefinedParameters, getByteSequenceContent, getContent, getContentObject, getConversationId, getEncoding, getEnvelope, getInReplyTo, getInteger, getLanguage, getOntology, getPerformative, getPerformative, getProtocol, getReplyBy, getReplyByDate, getReplyWith, getSender, getUserDefinedParameter, hasByteSequenceContent, removeReceiver, removeReplyTo, removeUserDefinedParameter, reset, setByteSequenceContent, setContent, setContentObject, setConversationId, setDefaultEnvelope, setEncoding, setEnvelope, setInReplyTo, setLanguage, setOntology, setPerformative, setProtocol, setReplyByDate, setReplyWith, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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.ACLMessage(int)
Method Detail

wrap

public static OntoACLMessage wrap(ACLMessage msg)
Create an ontological ACL message that wraps an existing ACLMessage.

Parameters:
msg - the ACLMessageto 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.

setSender

public void setSender(AID aid)
This method is redefined so that the sender AID is automatically wrapped into an OntoAID

Overrides:
setSender in class ACLMessage
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:
addReceiver in class ACLMessage
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:
addReplyTo in class ACLMessage
Parameters:
aid - The value to add to the slot value set.


JADE