JADE_SL
Class OntoACLMessage

java.lang.Object
  extended byJADE_SL.ACLMessage
      extended byJADE_SL.OntoACLMessage
All Implemented Interfaces:
AgentAction, Concept, ContentElement, Term

public class OntoACLMessage
extends ACLMessage
implements AgentAction

Author:
Giovanni Caire - TILAB

Field Summary
 
Fields inherited from class JADE_SL.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_SL.ACLMessage
addUserDefinedParameter, clearAllReceiver, clearAllReplyTo, clone, getAllPerformativeNames, getAllPerformatives, 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, setEncoding, setEnvelope, setInReplyTo, setLanguage, setOntology, setPerformative, setProtocol, setReplyBy, setReplyByDate, setReplyWith, toString, toText
 
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
See Also:
jade.lang.acl.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.


Copyright © 2000-2003 BT Exact Technologies. All Rights Reserved.