Boeing Simulation 3.1 API Specification

connect
Interface CreatesConnection

All Known Implementing Classes:
FacetConnection, SocketConnection

public interface CreatesConnection

A class that connects a remote component to the component that generated this object through a hidden representation and returns channels through which they can communicate.

Version:
$Revision: 1.7 $
Author:
Dave Jurgens

Method Summary
 connect.ChannelBundle connect(connect.ComponentEmissary requesting)
          This method should connect the requesting component to the object that generates this CreatesComponent and then initialize the channel objects for the connection.
 Class getHostType()
          Return the type of component that this CreatesConnection is hooked up to.
 

Method Detail

connect

public connect.ChannelBundle connect(connect.ComponentEmissary requesting)
                              throws ConnectionRejectedException
This method should connect the requesting component to the object that generates this CreatesComponent and then initialize the channel objects for the connection. Components should be aware that this object may be passed across a stream and thereby break any JVM specific connections. Implemenations may then choose to use differentiated behavior based upon whether the Object is still within the JVM that it was created. The suggested way to do this is to compare the identity hash code for the class file of the implementation. Objects in the same JVM will have the same value for this, but will not have the same identity hash code for themselves when compared to the pre-serialization object. If the remote component rejected the connection, a ConnectionRejectedException is thrown.

ConnectionRejectedException

getHostType

public Class getHostType()
Return the type of component that this CreatesConnection is hooked up to.


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.