com.agentfactory.platform.mts
Class StringMessage

java.lang.Object
  extended by com.agentfactory.platform.mts.Message
      extended by com.agentfactory.platform.mts.StringMessage

public class StringMessage
extends Message

Implementation of FIPA ACL Messaging Representation in String.


Field Summary
 
Fields inherited from class com.agentfactory.platform.mts.Message
ACCEPT_PROPOSAL, ACTION, AGREE, CALL_FOR_PROPOSAL, CANCEL, CONFIRM, content, contentLength, conversationId, DISCONFIRM, FAILURE, INFORM, INFORM_IF, INFORM_REF, language, NOT_UNDERSTOOD, ontology, performative, PROPOGATE, PROPOSE, protocol, PROXY, QUERY_IF, QUERY_REF, receivers, REFUSE, REJECT_PROPOSAL, replyTo, replyWith, REQUEST, REQUEST_WHEN, REQUEST_WHENEVER, sender, SUBSCRIBE
 
Method Summary
 java.lang.String getAclRepresentation()
           
 java.lang.String getPayloadEncoding()
           
static StringMessage newInstance()
           
static StringMessage newInstance(java.lang.String content)
          Factory method that is responsible for the creation of a StringMessage object based upon the String passed as a parameter.
 java.lang.String toFIPAString()
           
 java.lang.String toString()
           
 
Methods inherited from class com.agentfactory.platform.mts.Message
getContent, getContentLength, getConversationId, getLanguage, getOntology, getPerformative, getProtocol, getReceivers, getReplyTo, getReplyWith, getSender, setContent, setContentLength, setConversationId, setLanguage, setOntology, setPerformative, setProtocol, setReceivers, setReplyTo, setReplyWith, setSender, toByteArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

newInstance

public static StringMessage newInstance()

newInstance

public static StringMessage newInstance(java.lang.String content)
Factory method that is responsible for the creation of a StringMessage object based upon the String passed as a parameter.

Parameters:
content - the message in a string format
Returns:
the message as a StringMessage object

toFIPAString

public java.lang.String toFIPAString()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getAclRepresentation

public java.lang.String getAclRepresentation()
Overrides:
getAclRepresentation in class Message

getPayloadEncoding

public java.lang.String getPayloadEncoding()
Overrides:
getPayloadEncoding in class Message