fipaos.parser.acl
Class ACLMessage

fipaos.ont.fipa.ACL
  |
  +--fipaos.parser.acl.ACLMessage

public class ACLMessage
extends ACL
implements Serializable

ACLMessage is the java object for an acl message string


Fields inherited from class fipaos.ont.fipa.ACL
BYTELENGTH_ENCODING, FIPA_OS_SERIALIZATION, FIPA00069, FIPA00070, FIPA00071, RESERVED_SLOT_NAMES, STRINGLITERAL_ENCODING

Constructor Summary
ACLMessage()
          Constructor of ACLMessage
ACLMessage(ACL other)
          Duplicate the given ACL object

Method Summary
 StringgetContent()
          Gets the content, dencoding the content as if it were encoded using the given encoding type (see FIPA specification)
 StringgetReceiver()
          Gets Receiver
 StringgetReplyBy()
          Gets Replyby
 StringgetReplyTo()
          Get the AID of the first Agent to reply to
 StringgetSender()
          Gets Sender AID
 static voidmain(String[] args)
           
 voidsetContent(String the_content)
          Sets the content of the message
 voidsetContent(String content, int encode)
          Sets the content, optionally encoding the content as the specified type (see FIPA specification)
 voidsetReceiver(String n)
          Sets Receiver
 voidsetReplyBy(String reply_by)
          Sets the reply-by time of this
 voidsetReplyTo(String n)
          Set the AID of the Agent to reply to
 voidsetSender(String n)
          Sets Sender

Methods inherited from class fipaos.ont.fipa.ACL
addReceiverAID, addReplyToAID, clone, getContentEncoding, getContentObject, getContentObject, getConversationID, getEncoding, getInReplyTo, getLanguage, getOntology, getPerformative, getProtocol, getReceiverAID, getReceiverAIDs, getReplyByUTC, getReplyToAIDs, getReplyWith, getSenderAID, getUserSlot, getUserSlots, isBracketsStripped, isEncoded, setContentEncoding, setContentObject, setContentObject, setContentObjectACLParser, setConversationID, setInReplyTo, setLanguage, setOntology, setPerformative, setProtocol, setReceiverAID, setReceiverAIDs, setReplyByUTC, setReplyToAIDs, setReplyWith, setSenderAID, setUserSlot

Constructor Detail

ACLMessage

public ACLMessage()
Constructor of ACLMessage

ACLMessage

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

getContent

public 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

getReceiver

public String getReceiver()
Gets Receiver
Returns: receiver_

getReplyBy

public String getReplyBy()
Gets Replyby
Returns: replyby_

getReplyTo

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

getSender

public String getSender()
Gets Sender AID
Returns: sender_

main

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

setContent

public void setContent(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(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

setReceiver

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

setReplyBy

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

setReplyTo

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

setSender

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