|
Boeing Simulation 3.1 API Specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--connect.socket.SocketComponentTemplate
|
+--unifier.BasicPerspectiveUnifier
This class is meant to be a very basic implementation of Perspective Unifier. This PU is extremely simple (to a fault!). It adds all the objects from the WorldImage to the list of object currently known by the WorldState.
| Field Summary | |
static int |
PORT
|
private connect.ComponentEmissary |
representative
|
private static long |
serialVersionUID
|
private boolean |
serverConnected
|
private static boolean |
SHOW_ACCEPTS
|
| Fields inherited from class connect.socket.SocketComponentTemplate |
portNumber |
| Constructor Summary | |
BasicPerspectiveUnifier()
|
|
| Method Summary | |
protected boolean |
accept(Class requestingType)
Returns false. |
protected boolean |
allowMethod(util.MethodRequest request)
Accepts the method "unify" from the Server and returns
false for all others. |
protected connect.ComponentEmissary |
getComponentEmissary()
Returns the ComponentEmissary that represents this object. |
protected int |
getMaxPoints()
Returns 1 so that a single RelayPoint may be created. |
static void |
main(String[] args)
|
protected void |
processAcceptedConnection(Class remoteComponentType,
connect.ChannelBundle acceptedConnection)
Processes a connection to the Server. |
protected void |
processRequestingConnection(connect.ComponentEmissary remoteComponent,
connect.ChannelBundle incomingConnection)
No components are allowed to connect to us at this point in time. |
world.WorldState |
unify(world.WorldState current,
world.WorldImage deltaWorld)
Returns a new WorldState object that reflects the changes depicted in the WorldImage. |
| Methods inherited from class connect.socket.SocketComponentTemplate |
connect, getConnection, processRelayPoint, spawnRelayPoint |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface connect.Component |
connect, getConnection |
| Field Detail |
private static final long serialVersionUID
public static final int PORT
private static final boolean SHOW_ACCEPTS
private final connect.ComponentEmissary representative
private boolean serverConnected
| Constructor Detail |
public BasicPerspectiveUnifier()
| Method Detail |
public world.WorldState unify(world.WorldState current,
world.WorldImage deltaWorld)
unify in interface PerspectiveUnifiercurrent - the current list of known objectsdeltaWorld - processed information from a ObjectLocater
protected void processRequestingConnection(connect.ComponentEmissary remoteComponent,
connect.ChannelBundle incomingConnection)
processRequestingConnection in class SocketComponentTemplate
protected void processAcceptedConnection(Class remoteComponentType,
connect.ChannelBundle acceptedConnection)
Server. This gets called
when the connect method is called the the remote component
accepts our connection. Specifically, we should have requested
to connect to server right away and so we when are connected,
we receive this connection to the server.
processAcceptedConnection in class SocketComponentTemplateprotected boolean accept(Class requestingType)
accept in class SocketComponentTemplateprotected boolean allowMethod(util.MethodRequest request)
Server and returns
false for all others.
allowMethod in class SocketComponentTemplateprotected connect.ComponentEmissary getComponentEmissary()
SocketComponentTemplate
getComponentEmissary in class SocketComponentTemplateprotected int getMaxPoints()
RelayPoint may be created.
getMaxPoints in class SocketComponentTemplateSocketComponentTemplate.spawnRelayPoint(int)public static void main(String[] args)
|
Boeing Simulation 3.1 API Specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||