fipaos.parser.acl
Class ACLMessage

java.lang.Object
  |
  +--fipaos.ont.fipa.ACL
        |
        +--fipaos.parser.acl.ACLMessage
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class ACLMessage
extends ACL
implements java.io.Serializable

ACLMessage is the java object for an acl message string

See Also:
Serialized Form

Fields inherited from class fipaos.ont.fipa.ACL
BYTELENGTH_ENCODING, FIPA_OS_SERIALIZATION, FIPA00069, FIPA00070, FIPA00071, STRINGLITERAL_ENCODING
 
Constructor Summary
ACLMessage()
          Constructor of ACLMessage
ACLMessage(ACL other)
          Duplicate the given ACL object
 
Method Summary
 java.lang.String getContent()
          Gets the content, dencoding the content as if it were encoded using the given encoding type (see FIPA specification)
 java.util.Vector getEnvelope()
          Deprecated. This method is no longer supported - please use the Envelope class instead
 java.lang.String getMessageType()
          Deprecated. Please use getPerformative() in preference to this
 java.lang.String getReceiver()
          Gets Receiver
 java.lang.String getReplyBy()
          Gets Replyby
 java.lang.String getReplyTo()
          Get the AID of the first Agent to reply to
 java.lang.String getSender()
          Gets Sender AID
static void main(java.lang.String[] args)
           
 void setContent(java.lang.String the_content)
          Sets the content of the message
 void setContent(java.lang.String content, int encode)
          Sets the content, optionally encoding the content as the specified type (see FIPA specification)
 void setMessageType(java.lang.String n)
          Deprecated. Please use setPerformative() in preference to this
 void setReceiver(java.lang.String n)
          Sets Receiver
 void setReplyBy(java.lang.String reply_by)
          Sets the reply-by time of this
 void setReplyTo(java.lang.String n)
          Set the AID of the Agent to reply to
 void setSender(java.lang.String n)
          Sets Sender
 
Methods inherited from class fipaos.ont.fipa.ACL
addReceiverAID, addReplyToAID, byteLengthDecode, byteLengthEncode, clone, getContentEncoding, getContentObject, getConversationID, getInReplyTo, getLanguage, getOntology, getPerformative, getProtocol, getReceiverAID, getReceiverAIDs, getReplyByUTC, getReplyToAIDs, getReplyWith, getSenderAID, setContentEncoding, setContentObject, setContentObject, setContentObjectACLParser, setConversationID, setInReplyTo, setLanguage, setOntology, setPerformative, setProtocol, setReceiverAID, setReceiverAIDs, setReplyByUTC, setReplyToAIDs, setReplyWith, setSenderAID, stringLiteralDecode, stringLiteralEncode, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ACLMessage

public ACLMessage()
Constructor of ACLMessage

ACLMessage

public ACLMessage(ACL other)
Duplicate the given ACL object
Method Detail

setMessageType

public void setMessageType(java.lang.String n)
Deprecated. Please use setPerformative() in preference to this

Sets Message performative
Parameters:
n - value to be set

setSender

public void setSender(java.lang.String n)
Sets Sender
Parameters:
n - value to be set

setReceiver

public void setReceiver(java.lang.String n)
Sets Receiver
Parameters:
n - value to be set

setContent

public void setContent(java.lang.String the_content)
Sets the content of the message
Parameters:
the_content - value to be set NB:: the_content must not be null.

setContent

public void setContent(java.lang.String content,
                       int encode)
Sets the content, optionally encoding the content as the specified type (see FIPA specification)
Parameters:
content - The content of the message
encode - Indicates the type of encoding to use for the string

setReplyTo

public void setReplyTo(java.lang.String n)
Set the AID of the Agent to reply to

setReplyBy

public void setReplyBy(java.lang.String reply_by)
Sets the reply-by time of this

getMessageType

public java.lang.String getMessageType()
Deprecated. Please use getPerformative() in preference to this

Gets Message performative
Returns:
type_

getSender

public java.lang.String getSender()
Gets Sender AID
Returns:
sender_

getReceiver

public java.lang.String getReceiver()
Gets Receiver
Returns:
receiver_

getContent

public java.lang.String getContent()
Gets the content, dencoding the content as if it were encoded using the given encoding type (see FIPA specification)
Parameters:
incoding - Indicates the type of encoding the content is in
Returns:
The content of the message

getReplyBy

public java.lang.String getReplyBy()
Gets Replyby
Returns:
replyby_

getReplyTo

public java.lang.String getReplyTo()
Get the AID of the first Agent to reply to

getEnvelope

public java.util.Vector getEnvelope()
Deprecated. This method is no longer supported - please use the Envelope class instead

Gets Envelope
Returns:
envelope_

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception