Boeing Simulation 3.1 API Specification

connect.socket
Class SocketRelayPoint

java.lang.Object
  |
  +--connect.socket.SocketRelayPoint
All Implemented Interfaces:
RelayPoint, Runnable

public class SocketRelayPoint
extends Object
implements RelayPoint, Runnable

A socket implementation of the RelayPoint interface.

This implementation allows for one relay request before exiting the Thread listening for additional relay requests.

Version:
$Revision:
Author:
Dave Jurgens
See Also:
Component, MethodRequest

Field Summary
private  connect.ChannelBundle relayChannels
          The SupplierChannel connected to the component to which this point will relay MethodRequest objects.
private  ServerSocket ss
          The ServerSocket on which this relay point will listen.
 
Constructor Summary
SocketRelayPoint(int port, connect.ChannelBundle relayChannels)
           
 
Method Summary
 void relay(util.MethodRequest request)
          Sends the request to the Component for which this point responsible.
 void run()
          Listens for one MethodRequest requesting the method Component.connect(CreatesConnection) and then closes the ServerSocket so as to stop any additional requests.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

relayChannels

private final connect.ChannelBundle relayChannels
The SupplierChannel connected to the component to which this point will relay MethodRequest objects.


ss

private final ServerSocket ss
The ServerSocket on which this relay point will listen.

Constructor Detail

SocketRelayPoint

public SocketRelayPoint(int port,
                        connect.ChannelBundle relayChannels)
Method Detail

relay

public void relay(util.MethodRequest request)
Description copied from interface: RelayPoint
Sends the request to the Component for which this point responsible.

Specified by:
relay in interface RelayPoint

run

public void run()
Listens for one MethodRequest requesting the method Component.connect(CreatesConnection) and then closes the ServerSocket so as to stop any additional requests.

Specified by:
run in interface Runnable

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.