localpostoffice
Class LocalPostOffice

java.lang.Object
  |
  +--localpostoffice.LocalPostOffice

public class LocalPostOffice
extends java.lang.Object

LocalPostOffice implements a local message delivery system. If an agent is running within the same process, this will deliver messages without going outside of the process, providing a performance improvement. Requires a slightly modified conversation manager.


Constructor Summary
LocalPostOffice(java.util.Hashtable started_agents)
          Constructor.
 
Method Summary
 void sendMessage(fipaos.mts.Message msg)
          deliver a message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalPostOffice

public LocalPostOffice(java.util.Hashtable started_agents)
Constructor. Set the _started_agents list.
Method Detail

sendMessage

public void sendMessage(fipaos.mts.Message msg)
                 throws java.lang.Exception
deliver a message. If the receiver is listed in this localpo, then call the receivers receiveMessage directly. Otherwise, throw an exception