com.agentfactory.cldc.mts
Class MessageContainer

java.lang.Object
  extended by com.agentfactory.cldc.mts.MessageContainer

public class MessageContainer
extends java.lang.Object

The message container represents a list of messages.

Author:
Conor Muldoon

Constructor Summary
MessageContainer()
          Creates a new instance of MessageContainer.
 
Method Summary
 void addMessage(Message msg)
          Adds a message to the container.
 FOS createMessageFOS()
          Creates a first order structure representation of the message list.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageContainer

public MessageContainer()
Creates a new instance of MessageContainer.

Method Detail

addMessage

public void addMessage(Message msg)
Adds a message to the container.

Parameters:
msg - the message to be added.

createMessageFOS

public FOS createMessageFOS()
                     throws MalformedLogicException
Creates a first order structure representation of the message list. The first order structure takes the form messages(message1,message2,..., messageN).

Returns:
null if there are no messages, otherwise a first order structure of the form messages(message1,message2,...), whereby each message is converted to its belief string representation.
Throws:
MalformedLogicException - if there is a logic error.