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


Field Summary
 final static intBYTELENGTH_ENCODING
           
 final static StringCONTENT
           
 final static StringCONVERSATION_ID
           
 final static StringENVELOPE
           
 final static StringIN_REPLY_TO
           
 final static StringLANGUAGE
           
 final static intNO_ENCODING
           
 final static StringONTOLOGY
           
 final static StringPROTOCOL
           
 final static StringRECEIVER
           
 final static StringREPLY_BY
           
 final static StringREPLY_WITH
           
 final static StringSENDER
           
 final static intSTRINGLITERAL_ENCODING
           

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

Method Summary
 ACLMessagecopy()
          Method to obtain a de-coupled clone of this TBC.
 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, byteLengthDecode, byteLengthEncode, clone, getContentObject, getConversationID, getInReplyTo, getLanguage, getOntology, getPerformative, getProtocol, getReceiverAIDs, getReplyByUTC, getReplyToAIDs, getReplyWith, getSenderAID, setContentObject, setConversationID, setInReplyTo, setLanguage, setOntology, setPerformative, setProtocol, setReceiverAID, setReceiverAIDs, setReplyByUTC, setReplyToAIDs, setReplyWith, setSenderAID, stringLiteralDecode, stringLiteralEncode, toString

Field Detail

BYTELENGTH_ENCODING

public final static int BYTELENGTH_ENCODING

CONTENT

public final static String CONTENT

CONVERSATION_ID

public final static String CONVERSATION_ID

ENVELOPE

public final static String ENVELOPE

IN_REPLY_TO

public final static String IN_REPLY_TO

LANGUAGE

public final static String LANGUAGE

NO_ENCODING

public final static int NO_ENCODING

ONTOLOGY

public final static String ONTOLOGY

PROTOCOL

public final static String PROTOCOL

RECEIVER

public final static String RECEIVER

REPLY_BY

public final static String REPLY_BY

REPLY_WITH

public final static String REPLY_WITH

SENDER

public final static String SENDER

STRINGLITERAL_ENCODING

public final static int STRINGLITERAL_ENCODING
Constructor Detail

ACLMessage

public ACLMessage()
Constructor of ACLMessage

ACLMessage

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

copy

public ACLMessage copy()
Method to obtain a de-coupled clone of this

TBC.


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

Association Links

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String