fipaos.mts
Class DefaultTransportProvider
fipaos.mts.TransportProvider
|
+--fipaos.mts.DefaultTransportProvider
- public class DefaultTransportProvider
- extends TransportProvider
TODO: Write a description of the class
Method Summary |
ExternalMTP | getExternalMTP(String name, URL url) Creates an ExternalMTP instance based upon the URL given for a naming service |
InternalMTP | getInternalMTP(String name, URL url) Creates an InternalMTP instance based upon the URL given for a naming service |
String | getMTPProfileName(String protocol) Gets the FIPA-defined MTP profile-name for the given protocol type |
DefaultTransportProvider
DefaultTransportProvider()
- Package only constructor
getExternalMTP
public ExternalMTP getExternalMTP(String name, URL url)
- 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 InternalMTP getInternalMTP(String name, URL url)
- 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 String getMTPProfileName(String protocol)
- Gets the FIPA-defined MTP profile-name for the given protocol type