|
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
|
+--command.BasicCommandControl
A basic implementation that relies on a GraphicalVisualizer to send
it new Missions to process.
| Field Summary | |
private world.WorldState |
currentState
The most recently sent WorldState that is provided by
the Server. |
private util.ConsumerQueue |
fromServer
A buffered queue for reading in mission request responses as well as MethodRequest objects. |
private PropertyChangeSupport |
pcs
The bean by which the Visualizers will be notified of when the server updates this Component's current WorldState. |
private static long |
serialVersionUID
|
private boolean |
serverConnected
Whether the server is currently connected. |
private util.Queue |
toServer
A buffered queue for writing mission requests to the server. |
| Fields inherited from class connect.socket.SocketComponentTemplate |
portNumber |
| Constructor Summary | |
BasicCommandControl(int port)
|
|
| Method Summary | |
protected boolean |
accept(Class requestingType)
Returns true only if the requesting component is a Command Control visualizer. |
protected boolean |
allowMethod(util.MethodRequest request)
Allows visualizers to request the method requestMission(mission.Mission). |
protected void |
processAcceptedConnection(Class hostType,
connect.ChannelBundle acceptedConnection)
Processes requests from a single connection to the Server and no other component. |
protected void |
processRequestingConnection(connect.ComponentEmissary requesting,
connect.ChannelBundle incomingConnection)
Process an accepted request from a CommandControl Visualizer. |
util.ReturnValue |
requestMission(mission.Mission requested)
Formulate a Mission ask that the MissionControl process it. |
| Methods inherited from class connect.socket.SocketComponentTemplate |
connect, getComponentEmissary, getConnection, getMaxPoints, processRelayPoint, spawnRelayPoint |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final long serialVersionUID
private boolean serverConnected
private util.ConsumerQueue fromServer
MethodRequest objects.
private PropertyChangeSupport pcs
WorldState.
private util.Queue toServer
private world.WorldState currentState
WorldState that is provided by
the Server.
| Constructor Detail |
public BasicCommandControl(int port)
| Method Detail |
public util.ReturnValue requestMission(mission.Mission requested)
Mission ask that the MissionControl process it.
requestMission in interface CommandControl
protected void processRequestingConnection(connect.ComponentEmissary requesting,
connect.ChannelBundle incomingConnection)
processRequestingConnection in class SocketComponentTemplate
protected void processAcceptedConnection(Class hostType,
connect.ChannelBundle acceptedConnection)
Server and no other component.
processAcceptedConnection in class SocketComponentTemplateprotected boolean accept(Class requestingType)
accept in class SocketComponentTemplateprotected boolean allowMethod(util.MethodRequest request)
requestMission(mission.Mission).
allowMethod in class SocketComponentTemplate
|
Boeing Simulation 3.1 API Specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||