fipaos.mts
Class TransportProvider
- Direct Known Subclasses:
- DefaultTransportProvider
- public abstract class TransportProvider
This class should be extended by classes providing factory-like services
for the creation of MTP classes.
To change the default TransportProvider, the
setDefaultTransportProvider()
method should be used.
Method Summary |
abstract ExternalMTP | getExternalMTP(String agent_name, URL ns) Creates an ExternalMTP instance based upon the URL given for a naming service |
abstract InternalMTP | getInternalMTP(String agent_name, URL ns) Creates an InternalMTP instance based upon the URL given for a naming service |
abstract String | getMTPProfileName(String protocol) Gets the FIPA-defined MTP profile-name for the given protocol type |
getExternalMTP
public abstract ExternalMTP getExternalMTP(String agent_name, URL ns)
- Creates an ExternalMTP instance based upon the URL given for a naming service
- Parameters:
- ns - Naming service URL for the transport
- name - Name of the Agent this belongs to
- Returns: An initialised ExternalMTP instance, or null
getInternalMTP
public abstract InternalMTP getInternalMTP(String agent_name, URL ns)
- Creates an InternalMTP instance based upon the URL given for a naming service
- Parameters:
- ns - URL of the naming service for the transport
- name - Name of the Agent this belongs to
- Returns: Either an initialised InternalMTP instance, or null
getMTPProfileName
public abstract String getMTPProfileName(String protocol)
- Gets the FIPA-defined MTP profile-name for the given protocol type