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
 static ExternalMTPgetDefaultExternalMTP(String agent_name, URL ns)
          Creates an ExternalMTP instance based upon the URL given for a naming service using the default TransportProvider instance
 static InternalMTPgetDefaultInternalMTP(String agent_name, URL ns)
          Creates an InternalMTP instance based upon the URL given for a naming service using the default TransportProvider instance
 static StringgetDefaultMTPProfileName(String protocol)
          Gets the FIPA-defined MTP profile-name for the given protocol type
 TransportProvidergetDefaultTransportProvider()
          Retreives the default TransportProvider currently in use
 abstract ExternalMTPgetExternalMTP(String agent_name, URL ns)
          Creates an ExternalMTP instance based upon the URL given for a naming service
 abstract InternalMTPgetInternalMTP(String agent_name, URL ns)
          Creates an InternalMTP instance based upon the URL given for a naming service
 abstract StringgetMTPProfileName(String protocol)
          Gets the FIPA-defined MTP profile-name for the given protocol type
 voidsetDefaultTransportProvider(TransportProvider tp)
          Sets the default TransportProvider currently in use

Method Detail

getDefaultExternalMTP

public static ExternalMTP getDefaultExternalMTP(String agent_name, URL ns)
Creates an ExternalMTP instance based upon the URL given for a naming service using the default TransportProvider instance
Parameters:
ns - Naming service URL for the transport
name - Name of the Agent this belongs to
Returns: An initialised ExternalMTP instance, or null

getDefaultInternalMTP

public static InternalMTP getDefaultInternalMTP(String agent_name, URL ns)
Creates an InternalMTP instance based upon the URL given for a naming service using the default TransportProvider instance
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

getDefaultMTPProfileName

public static String getDefaultMTPProfileName(String protocol)
Gets the FIPA-defined MTP profile-name for the given protocol type

getDefaultTransportProvider

public TransportProvider getDefaultTransportProvider()
Retreives the default TransportProvider currently in use

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

setDefaultTransportProvider

public void setDefaultTransportProvider(TransportProvider tp)
Sets the default TransportProvider currently in use

Association Links

to Class fipaos.mts.TransportProvider

Reference to the default provider