Boeing Simulation 3.1 API Specification

connect.facet
Class FacetComponentTemplate

java.lang.Object
  |
  +--connect.facet.FacetComponentTemplate
All Implemented Interfaces:
Component

public abstract class FacetComponentTemplate
extends Object
implements Component


Nested Class Summary
protected static class FacetComponentTemplate.ConnectionListener
           
 
Field Summary
private  connect.CreatesConnection connection
           
private static boolean DEBUG
           
private  FacetComponentTemplate.ConnectionListener incoming
           
private  int numOfPoints
           
private  connect.ComponentEmissary representative
           
private static long serialVersionUID
           
 
Constructor Summary
FacetComponentTemplate()
           
 
Method Summary
protected abstract  boolean accept(Class requestingType)
           
protected abstract  boolean allowMethod(util.MethodRequest request)
           
 void connect(connect.CreatesConnection cc)
          connect to the component specified by the CreatesConnection
 connect.ComponentEmissary getComponentEmissary()
           
 connect.CreatesConnection getConnection()
          return the CreatesConnection that would allow another component to connect.
protected  int getMaxPoints()
           
abstract  int getNextConnection()
           
abstract  int getSourceType()
           
protected abstract  void processAcceptedConnection(Class hostType, connect.ChannelBundle acceptedConnection)
           
protected  void processRelayPoint(connect.ChannelBundle bundle)
           
protected abstract  void processRequestingConnection(connect.ComponentEmissary requesting, connect.ChannelBundle incomingConnection)
           
 void spawnRelayPoint(int relayPort)
           
private  void startAcceptingThread()
           
protected  void startProcessingThread(connect.ComponentEmissary ce, connect.ChannelBundle b)
           
private  void startRelayThread(connect.ChannelBundle bundle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

incoming

private FacetComponentTemplate.ConnectionListener incoming

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

DEBUG

private static boolean DEBUG

connection

private connect.CreatesConnection connection

representative

private final connect.ComponentEmissary representative

numOfPoints

private int numOfPoints
Constructor Detail

FacetComponentTemplate

public FacetComponentTemplate()
Method Detail

getSourceType

public abstract int getSourceType()

getNextConnection

public abstract int getNextConnection()

getConnection

public connect.CreatesConnection getConnection()
Description copied from interface: Component
return the CreatesConnection that would allow another component to connect. Implementations should be aware that this object may be passed across a stream thereby breaking any JVM specific CreatesConnection. More documentation on this can be seen in the CreatesConnection class.

Specified by:
getConnection in interface Component

getComponentEmissary

public connect.ComponentEmissary getComponentEmissary()

startAcceptingThread

private void startAcceptingThread()

processRelayPoint

protected void processRelayPoint(connect.ChannelBundle bundle)

startRelayThread

private void startRelayThread(connect.ChannelBundle bundle)

getMaxPoints

protected int getMaxPoints()

startProcessingThread

protected void startProcessingThread(connect.ComponentEmissary ce,
                                     connect.ChannelBundle b)

connect

public void connect(connect.CreatesConnection cc)
Description copied from interface: Component
connect to the component specified by the CreatesConnection

Specified by:
connect in interface Component

spawnRelayPoint

public void spawnRelayPoint(int relayPort)

accept

protected abstract boolean accept(Class requestingType)

allowMethod

protected abstract boolean allowMethod(util.MethodRequest request)

processRequestingConnection

protected abstract void processRequestingConnection(connect.ComponentEmissary requesting,
                                                    connect.ChannelBundle incomingConnection)

processAcceptedConnection

protected abstract void processAcceptedConnection(Class hostType,
                                                  connect.ChannelBundle acceptedConnection)

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.