is.lill.acre.message
Class ACREMessage

java.lang.Object
  extended by is.lill.acre.message.ACREMessage
All Implemented Interfaces:
IACREMessage
Direct Known Subclasses:
ACREFIPAMessage

public class ACREMessage
extends java.lang.Object
implements IACREMessage

Simple class to represent an ACL message Content is stored as a raw string - it will be parsed by ACRE using an appropriate ITermParser. The appropriate parser is identified using the getLanguage() method of this class


Constructor Summary
ACREMessage()
           
 
Method Summary
 java.lang.String getContent()
           
 java.lang.String getConversationIdentifier()
           
 java.lang.String getLanguage()
           
 java.lang.String getPerformative()
           
 ProtocolDescriptor getProtocol()
           
 IACREAgentID getReceiver()
           
 IACREAgentID getSender()
           
 void setContent(java.lang.String content)
           
 void setConversationId(java.lang.String cid)
           
 void setLanguage(java.lang.String language)
           
 void setPerformative(java.lang.String p)
           
 void setProtocol(ProtocolDescriptor protocol)
           
 void setReceiver(IACREAgentID receiver)
           
 void setSender(IACREAgentID sender)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ACREMessage

public ACREMessage()
Method Detail

getContent

public java.lang.String getContent()
Specified by:
getContent in interface IACREMessage

setContent

public void setContent(java.lang.String content)

getConversationIdentifier

public java.lang.String getConversationIdentifier()
Specified by:
getConversationIdentifier in interface IACREMessage

setConversationId

public void setConversationId(java.lang.String cid)

getPerformative

public java.lang.String getPerformative()
Specified by:
getPerformative in interface IACREMessage

setPerformative

public void setPerformative(java.lang.String p)

getProtocol

public ProtocolDescriptor getProtocol()
Specified by:
getProtocol in interface IACREMessage

setProtocol

public void setProtocol(ProtocolDescriptor protocol)

getReceiver

public IACREAgentID getReceiver()
Specified by:
getReceiver in interface IACREMessage

setReceiver

public void setReceiver(IACREAgentID receiver)

getSender

public IACREAgentID getSender()
Specified by:
getSender in interface IACREMessage

setSender

public void setSender(IACREAgentID sender)

getLanguage

public java.lang.String getLanguage()
Specified by:
getLanguage in interface IACREMessage

setLanguage

public void setLanguage(java.lang.String language)

toString

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