|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fipaos.ont.fipa.ACL | +--fipaos.parser.acl.ACLMessage
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, 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 java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ACLMessage()
public ACLMessage(ACL other)
Method Detail |
public void setMessageType(java.lang.String n)
n
- value to be setpublic void setSender(java.lang.String n)
n
- value to be setpublic void setReceiver(java.lang.String n)
n
- value to be setpublic void setContent(java.lang.String the_content)
the_content
- value to be set
NB:: the_content must not be null.public void setContent(java.lang.String content, int encode)
content
- The content of the messageencode
- Indicates the type of encoding to use for the stringpublic void setReplyTo(java.lang.String n)
public void setReplyBy(java.lang.String reply_by)
public java.lang.String getMessageType()
public java.lang.String getSender()
public java.lang.String getReceiver()
public java.lang.String getContent()
incoding
- Indicates the type of encoding the content is inpublic java.lang.String getReplyBy()
public java.lang.String getReplyTo()
public java.util.Vector getEnvelope()
public static void main(java.lang.String[] args) throws java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |