jade.mtp
Interface MTP
- All Superinterfaces:
- InChannel, OutChannel
public interface MTP
- extends InChannel, OutChannel
Abstract interface for Message Transport Protocols
- Version:
- $Date: 2001-10-05 15:36:54 +0200 (ven, 05 ott 2001) $ $Revision: 2757 $
- Author:
- Giovanni Rimassa - Universita` di Parma
|
Method Summary |
java.lang.String |
addrToStr(TransportAddress ta)
Converts a TransportAddress object into a string
representation. |
java.lang.String |
getName()
Reads the name of the message transport protocol managed by this
MTP. |
java.lang.String[] |
getSupportedProtocols()
|
TransportAddress |
strToAddr(java.lang.String rep)
Converts a string representing a valid address in this MTP to a
TransportAddress object. |
strToAddr
TransportAddress strToAddr(java.lang.String rep)
throws MTPException
- Converts a string representing a valid address in this MTP to a
TransportAddress object.
- Parameters:
rep - The string representation of the address.
- Returns:
- A
TransportAddress object, created from the
given string.
- Throws:
MTPException - If the given string is not a valid
address according to this MTP.
addrToStr
java.lang.String addrToStr(TransportAddress ta)
throws MTPException
- Converts a
TransportAddress object into a string
representation.
- Parameters:
ta - The TransportAddress object.
- Returns:
- A string representing the given address.
- Throws:
MTPException - If the given
TransportAddress is not a valid address for this
MTP.
getName
java.lang.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
java.lang.String[] getSupportedProtocols()