Package jade.mtp
Interface MTP
-
- All Superinterfaces:
InChannel,OutChannel
- All Known Implementing Classes:
MessageTransportProtocol,MessageTransportProtocol
public interface MTP extends InChannel, OutChannel
Abstract interface for Message Transport Protocols- Version:
- $Date$ $Revision$
- Author:
- Giovanni Rimassa - Universita` di Parma
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jade.mtp.InChannel
InChannel.Dispatcher
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringaddrToStr(TransportAddress ta)Converts aTransportAddressobject into a string representation.StringgetName()Reads the name of the message transport protocol managed by this MTP.String[]getSupportedProtocols()TransportAddressstrToAddr(String rep)Converts a string representing a valid address in this MTP to aTransportAddressobject.-
Methods inherited from interface jade.mtp.InChannel
activate, activate, deactivate, deactivate
-
Methods inherited from interface jade.mtp.OutChannel
deliver
-
-
-
-
Method Detail
-
strToAddr
TransportAddress strToAddr(String rep) throws MTPException
Converts a string representing a valid address in this MTP to aTransportAddressobject.- Parameters:
rep- The string representation of the address.- Returns:
- A
TransportAddressobject, created from the given string. - Throws:
MTPException- If the given string is not a valid address according to this MTP.
-
addrToStr
String addrToStr(TransportAddress ta) throws MTPException
Converts aTransportAddressobject into a string representation.- Parameters:
ta- TheTransportAddressobject.- Returns:
- A string representing the given address.
- Throws:
MTPException- If the givenTransportAddressis not a valid address for this MTP.
-
getName
String getName()
Reads the name of the message transport protocol managed by this MTP. The FIPA standard message transport protocols have a name starting with"fipa.mts.mtp".- Returns:
- A string, that is the name of this MTP.
-
getSupportedProtocols
String[] getSupportedProtocols()
-
-