org.npsnet.xrti
Class MessageChannelFactory

java.lang.Object
  extended byorg.npsnet.xrti.MessageChannelFactory
Direct Known Subclasses:
DefaultMessageChannelFactory

public abstract class MessageChannelFactory
extends java.lang.Object

The abstract base class of all message channel factories.

Author:
Andrzej Kapolka

Constructor Summary
MessageChannelFactory()
           
 
Method Summary
abstract  MessageChannelAcceptor newFederateChannelAcceptor(java.util.Properties config)
          Creates a new acceptor for channels from federates.
abstract  MessageChannel newChannelToExecutive(java.util.Properties config)
          Creates a new channel to the XRTI Executive based on the specified configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageChannelFactory

public MessageChannelFactory()
Method Detail

newChannelToExecutive

public abstract MessageChannel newChannelToExecutive(java.util.Properties config)
                                              throws java.lang.IllegalArgumentException,
                                                     java.io.IOException
Creates a new channel to the XRTI Executive based on the specified configuration.

Parameters:
config - the configuration properties to use
Returns:
the newly created channel
Throws:
java.lang.IllegalArgumentException - if the configuration properties are invalid
java.io.IOException - if the channel could not be created

newFederateChannelAcceptor

public abstract MessageChannelAcceptor newFederateChannelAcceptor(java.util.Properties config)
                                                           throws java.lang.IllegalArgumentException,
                                                                  java.io.IOException
Creates a new acceptor for channels from federates.

Parameters:
config - the configuration properties to use
Returns:
the newly created acceptor
Throws:
java.lang.IllegalArgumentException - if the configuration properties are invalid
java.io.IOException - if the acceptor could not be created