|
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.TargetControl
A TargetControl is responsible for moving the objects that
fall outside the jurisdiction of the CommandControl. In the current simulation, these objects
may be of type Bus, Tank, or School. The TargetControl receives its
information directly from the ComponentizedSimulator and issues commands directly
to the units themselves. Commands are issues as MethodRequest objects since the units are responsible for
moving themselves. Connections to the units are obtained by the
SimulatorComponentGenerator.
| Field Summary | |
private world.WorldState |
currentState
The most recently sent WorldState that is provided by
the ComponentizedSimulator. |
static int |
DEFAULT_PORT
The default port to initialize a TargetControl on. |
private PropertyChangeSupport |
pcs
The bean by which the Visualizers will be notified of when the simulator updates this Component's current WorldState. |
private static long |
serialVersionUID
|
private boolean |
simulatorConnected
Whether the simulator is currently connected. |
private Map |
unitToBundle
A map from any known unit to the ChannelBundle
through which this component may communicate to it. |
| Fields inherited from class connect.socket.SocketComponentTemplate |
portNumber |
| Constructor Summary | |
TargetControl()
|
|
TargetControl(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 BasicCommandControl.requestMission(mission.Mission). |
protected void |
processAcceptedConnection(Class hostType,
connect.ChannelBundle acceptedConnection)
Processes requests from a single connection to the ComponentizedSimulator and no other component. |
protected void |
processRequestingConnection(connect.ComponentEmissary requesting,
connect.ChannelBundle incomingConnection)
Process an accepted request from a GraphicalTCVisualizer. |
void |
requestMission(Set units,
objects.Locatable loc)
Issues commands to all the units to move the specified location. |
| 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 simulatorConnected
public static final int DEFAULT_PORT
private PropertyChangeSupport pcs
WorldState.
private final Map unitToBundle
ChannelBundle
through which this component may communicate to it.
private world.WorldState currentState
WorldState that is provided by
the ComponentizedSimulator.
| Constructor Detail |
public TargetControl(int port)
public TargetControl()
| Method Detail |
public void requestMission(Set units,
objects.Locatable loc)
protected void processRequestingConnection(connect.ComponentEmissary requesting,
connect.ChannelBundle incomingConnection)
GraphicalTCVisualizer.
processRequestingConnection in class SocketComponentTemplate
protected void processAcceptedConnection(Class hostType,
connect.ChannelBundle acceptedConnection)
ComponentizedSimulator and no other component.
processAcceptedConnection in class SocketComponentTemplateprotected boolean accept(Class requestingType)
accept in class SocketComponentTemplateprotected boolean allowMethod(util.MethodRequest request)
BasicCommandControl.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 | ||||||||||