Boeing Simulation 3.1 API Specification

connect.facet
Class FacetConnection

java.lang.Object
  |
  +--connect.facet.FacetConnection
All Implemented Interfaces:
CreatesConnection, Serializable

public class FacetConnection
extends Object
implements CreatesConnection, Serializable

See Also:
Serialized Form

Field Summary
private  Class ctype
           
private  int lsource
           
private  int ltype
           
private  ORB orb
           
private  POA poa
           
private  edu.wustl.doc.facet.EventChannelAdmin.ProxyPushConsumer ppc
           
private  edu.wustl.doc.facet.EventChannelAdmin.ProxyPushSupplier pps
           
private  int rsource
           
private static long serialVersionUID
           
 
Constructor Summary
FacetConnection(Class ctype, int lsource, int ltype, int rsource)
           
 
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.
private  void initialize()
           
 boolean needsLocalInfo()
           
private  void readObject(ObjectInputStream in)
           
 void setLocalSource(int lsource)
           
 void setLocalType(int ltype)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lsource

private int lsource

ltype

private int ltype

rsource

private int rsource

orb

private transient ORB orb

poa

private transient POA poa

pps

private transient edu.wustl.doc.facet.EventChannelAdmin.ProxyPushSupplier pps

ppc

private transient edu.wustl.doc.facet.EventChannelAdmin.ProxyPushConsumer ppc

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

ctype

private final Class ctype
Constructor Detail

FacetConnection

public FacetConnection(Class ctype,
                       int lsource,
                       int ltype,
                       int rsource)
Method Detail

initialize

private void initialize()

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
IOException
ClassNotFoundException

getHostType

public Class getHostType()
Description copied from interface: CreatesConnection
Return the type of component that this CreatesConnection is hooked up to.

Specified by:
getHostType in interface CreatesConnection

needsLocalInfo

public boolean needsLocalInfo()

setLocalType

public void setLocalType(int ltype)

setLocalSource

public void setLocalSource(int lsource)

connect

public connect.ChannelBundle connect(connect.ComponentEmissary requesting)
                              throws ConnectionRejectedException
Description copied from interface: CreatesConnection
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.

Specified by:
connect in interface CreatesConnection
ConnectionRejectedException

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.