jade.content
Class OntoACLMessage

java.lang.Object
  |
  +--jade.lang.acl.ACLMessage
        |
        +--jade.content.OntoACLMessage

public class OntoACLMessage
extends ACLMessage
implements AgentAction

Author:
Giovanni Caire - TILAB
See Also:
Serialized Form

Fields inherited from class jade.lang.acl.ACLMessage
ACCEPT_PROPOSAL, AGREE, CANCEL, CFP, CONFIRM, DISCONFIRM, FAILURE, INFORM, INFORM_IF, INFORM_REF, NOT_UNDERSTOOD, PROPAGATE, PROPOSE, PROXY, QUERY_IF, QUERY_REF, REFUSE, REJECT_PROPOSAL, REQUEST, REQUEST_WHEN, REQUEST_WHENEVER, SUBSCRIBE, UNKNOWN
 
Constructor Summary
OntoACLMessage()
          Constructs an ontological ACL message whose performative is ACLMessage.NOT_UNDERSTOOD
OntoACLMessage(int performative)
          Constructor for 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()
Constructs an ontological ACL message whose performative is ACLMessage.NOT_UNDERSTOOD

OntoACLMessage

public OntoACLMessage(int performative)
Constructor for 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
Tags copied from class: ACLMessage
Parameters:
source - The new value for the slot.
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
Tags copied from class: ACLMessage
Parameters:
r - 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
Tags copied from class: ACLMessage
Parameters:
dest - The value to add to the slot value set.