hla.rti1516.jlc
Class RtiFactoryFactory

java.lang.Object
  extended by hla.rti1516.jlc.RtiFactoryFactory

public class RtiFactoryFactory
extends java.lang.Object

Implementation of the RtiFactoryFactory class as defined in the SISO Standard SISO-STD-004.1-2004.

Version:
$Id:$
Author:
ibirrer
See Also:
SISO-STD-004.1-2004.pdf

Constructor Summary
RtiFactoryFactory()
           
 
Method Summary
static java.util.Map getAvailableRtis()
          Returns a java.util.Map with RTI names as keys and factory class names as mapped values.
static RtiFactory getRtiFactory()
          Returns an RtiFactory instance for the default RTI as specified in the stored settings.
static RtiFactory getRtiFactory(java.lang.String factoryClassName)
          Returns an RtiFactory instance of the specified factory class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RtiFactoryFactory

public RtiFactoryFactory()
Method Detail

getRtiFactory

public static RtiFactory getRtiFactory(java.lang.String factoryClassName)
                                throws RTIinternalError
Returns an RtiFactory instance of the specified factory class. If no RtiFactory is associated with the specified name, the RTIinternalError exception shall be thrown.

Parameters:
factoryClassName - the fully qualified name of the factory class
Returns:
an instance of the RtiFactory class
Throws:
RTIinternalError - If the given RtiFactory class could not be found, instantiated or accessed.

getRtiFactory

public static RtiFactory getRtiFactory()
                                throws RTIinternalError
Returns an RtiFactory instance for the default RTI as specified in the stored settings. If no stored settings are available, or if no default RTI is specified in the stored settings then the RtiFactoryFactory may choose an RTI freely.

Returns:
an RtiFactory. The default factory returned is: org.eodisp.erti.client.rti1516.jlc.ERTIFactory.
Throws:
RTIinternalError - If the Link compatibility settings file could not be read or if the factory class setting could not be find for the default RTI

getAvailableRtis

public static java.util.Map getAvailableRtis()
                                      throws RTIinternalError
Returns a java.util.Map with RTI names as keys and factory class names as mapped values. The names and values are read from the stored settings.

Returns:
A map of available RTIs
Throws:
RTIinternalError - If the Link compatibility settings file could not be read