fipaos.test.agent
Class TestingMTP

fipaos.mts.MTPBase
  |
  +--fipaos.mts.InternalMTPBase
        |
        +--fipaos.test.agent.TestingMTP

public class TestingMTP
extends InternalMTPBase

MTP implementation which allows an Agent to be tested at the ACL level of
abstraction


Field Summary
 static Object__dummy
          Dummy object for observer to use
 static URL__dummy_url
          URL for tester
 static Map__ns
          NS Map ;)

Fields inherited from class fipaos.mts.MTPBase
_shutdown, ACC_NAME

Constructor Summary
TestingMTP(String name, URL ns)
           

Method Summary
 java.util.ListgetAddresses()
           
 static AgentIDgetAID()
          Get the AID to be used by tester
 static MessagegetNextIncomingMessage()
          Get the next incoming message from the given Agent
 java.util.ListgetProtocols()
           
 static booleansendMessage(String name, Message msg)
          Send the given message to the given Agent - please ensure to set AID in ACL and Envelope appropriately
 static booleansendMessage(URL url, Message msg)
          Send the given message to the given Agent - please ensure to set AID in ACL and Envelope appropriately
 voidshutdown()
           

Methods inherited from class fipaos.mts.InternalMTPBase
incoming, initialise, main, outgoing

Field Detail

__dummy

public static Object __dummy
Dummy object for observer to use

__dummy_url

public static URL __dummy_url
URL for tester

__ns

public static Map __ns
NS Map ;)
Constructor Detail

TestingMTP

public TestingMTP(String name, URL ns)
throws java.lang.Exception
Method Detail

getAddresses

public java.util.List getAddresses()

getAID

public static AgentID getAID()
Get the AID to be used by tester

getNextIncomingMessage

public static Message getNextIncomingMessage()
Get the next incoming message from the given Agent

getProtocols

public java.util.List getProtocols()

sendMessage

public static boolean sendMessage(String name, Message msg)
Send the given message to the given Agent - please ensure to set AID in ACL and Envelope appropriately

sendMessage

public static boolean sendMessage(URL url, Message msg)
Send the given message to the given Agent - please ensure to set AID in ACL and Envelope appropriately

shutdown

public void shutdown()

Association Links

to Class java.util.Map

NS Map ;)

to Class java.lang.Object

Dummy object for observer to use

to Class fipaos.util.URL

URL for tester

to Class java.lang.String

Agent name for this

to Class fipaos.util.URL

NS URL for the agent

to Class fipaos.util.Queue

Incoming queue for the tester