|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fipaos.mts.MTPBase | +--fipaos.mts.InternalMTPBase | +--fipaos.test.agent.TestingMTP
MTP implementation which allows an Agent to be tested at the ACL level of abstraction
Field Summary | |
static java.lang.Object |
__dummy
Dummy object for observer to use |
static URL |
__dummy_url
URL for tester |
static java.util.Map |
__ns
NS Map ;) |
Fields inherited from class fipaos.mts.MTPBase |
_hap, _name, _ns_url, _shutdown, ACC_NAME |
Fields inherited from interface fipaos.mts.service.Service |
ACL_LANGUAGE_UNKNOWN, CONTENT_LANGUAGE_UNKNOWN, ERROR_STRING, ERROR_UNKNOWN, FIPAOS_DEBUG, FIPAOS_MSG_ID_SLOT, MALFORMED_ENVELOPE, MSG_DELIVERY_FAILURE_REASON, NONE, PROTOCOL_UNKNOWN, TARGET_UNKNOWN |
Constructor Summary | |
TestingMTP(java.lang.String name,
URL ns)
|
Method Summary | |
protected void |
bind()
Bind the MTP to the NS (if it exists) and perform other start-up operations |
java.util.List |
getAddresses()
Method to retreive the protocol dependant addresses of an object that can be used to receive messages. |
static AgentID |
getAID()
Get the AID to be used by tester |
static Message |
getNextIncomingMessage()
Get the next incoming message from the given Agent |
java.util.List |
getProtocols()
Retreives the protocols known by this comms implementation |
protected java.lang.Object |
lookup(java.lang.String str)
Attempt to lookup a reference to the MTS belonging to the given Agent |
protected java.lang.Object |
lookup(URL uRL)
Lookup a reference to the MTS at the given URL |
protected void |
send(java.lang.Object obj,
Message message)
Invoked to send the given Message to the given target |
static boolean |
sendMessage(java.lang.String name,
Message msg)
Send the given message to the given Agent - please ensure to set AID in ACL and Envelope appropriately |
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 |
void |
shutdown()
This should be invoked when the service should be safely shutdown |
protected void |
unbind()
Un-bind the MTP to the NS (if it exists) |
Methods inherited from class fipaos.mts.InternalMTPBase |
handleIncoming, incoming, initialise, main, outgoing |
Methods inherited from class fipaos.mts.MTPBase |
handleIncoming, handleOutgoing, shutdownMTPBase |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.util.Map __ns
public static java.lang.Object __dummy
public static URL __dummy_url
Constructor Detail |
public TestingMTP(java.lang.String name, URL ns) throws java.lang.Exception
Method Detail |
protected void bind() throws InitialisationException
MTPBase
bind
in class MTPBase
public java.util.List getAddresses()
InternalMTPBase
getAddresses
in class InternalMTPBase
fipaos.mts.InternalMTPBase
public java.util.List getProtocols()
InternalMTPBase
getProtocols
in class InternalMTPBase
fipaos.mts.InternalMTPBase
protected java.lang.Object lookup(URL uRL) throws UnknownTargetException
MTPBase
lookup
in class MTPBase
protected java.lang.Object lookup(java.lang.String str) throws UnknownTargetException
MTPBase
lookup
in class MTPBase
protected void send(java.lang.Object obj, Message message) throws UnknownTargetException, UnknownProtocolException, UnableToSendException
InternalMTPBase
send
in class InternalMTPBase
public void shutdown()
InternalMTPBase
shutdown
in class InternalMTPBase
protected void unbind()
MTPBase
unbind
in class MTPBase
public static boolean sendMessage(java.lang.String name, Message msg)
public static boolean sendMessage(URL url, Message msg)
public static Message getNextIncomingMessage()
public static AgentID getAID()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |