Boeing Simulation 3.1 API Specification

locater
Class ObjectLocaterFactory

java.lang.Object
  |
  +--locater.ObjectLocaterFactory

public class ObjectLocaterFactory
extends Object

Generates a new ObjectLocater. The current implementation creates a SocketObjectLocater in the same JVM as the factory.

Version:
$Revision: 1.9 $
Author:
Dave Jurgens

Field Summary
private  int currentPortNumber
          The last port number assigned for an ObjectLocater.
private static long serialVersionUID
           
private static locater.ObjectLocaterFactory singleton
          The singleton instance.
 
Constructor Summary
private ObjectLocaterFactory()
           
 
Method Summary
 connect.CreatesConnection generateObjectLocater(connect.CreatesConnection serverConnection)
          Returns a CreatesConnection to an ObjectLocater that is already connected to the Server.
private  int getNextPortNumber()
          Returns the next open port on which to start an socket based Component.
static locater.ObjectLocaterFactory instance()
          Returns the singleton instance of the factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

singleton

private static locater.ObjectLocaterFactory singleton
The singleton instance.


currentPortNumber

private int currentPortNumber
The last port number assigned for an ObjectLocater.

Constructor Detail

ObjectLocaterFactory

private ObjectLocaterFactory()
Method Detail

instance

public static locater.ObjectLocaterFactory instance()
Returns the singleton instance of the factory.


getNextPortNumber

private final int getNextPortNumber()
Returns the next open port on which to start an socket based Component. This method is guaranteed not to return a number unless it is free to initialize a ServerSocket.


generateObjectLocater

public connect.CreatesConnection generateObjectLocater(connect.CreatesConnection serverConnection)
Returns a CreatesConnection to an ObjectLocater that is already connected to the Server. An ObjectLocated is linked at call time and is guaranteed to be returned only if connected.


Boeing Simulation 3.1 API Specification

To submit a bug or feature email the author of that class. Funding for this research was provided by Boeing and DARPA.