|
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
|
+--visualizer.SocketVisualizerTemplate
|
+--command.visualizer.GraphicalCCVisualizer
A visualizer designed to interact with an currently operating Command Control component. Mouse clicks are interpreted as different commands, based on the click location and the target on screen. The result of these clicks can be sent to the Command Control component to be sent out as a Mission request.
| Field Summary | |
protected static double |
CLICK_SIGNIFICANCE
The distance on the unit square at which the user's click is defined as clicking on a displayed object. |
private world.WorldState |
currentState
The most recent WorldState sent by the CommandControl. |
private List |
followingTargets
The List of all target to be continuously followed that are currently selected for the Mission waiting to be
sent. |
private static long |
serialVersionUID
This is hard-coded for cross-machine compatibility. |
private boolean |
targetListed
Whether selected objects are added to the target list. |
private List |
targets
The List of all target currently selected for the Mission waiting to be sent. |
private connect.SupplierChannel |
toCommandControl
The supplier connection to the CommandControl that is
connected. |
private boolean |
unitListed
Whether selected objects are added to the units list. |
private List |
units
The List of all units currently selected for the Mission waiting to be sent. |
private visualizer.WorldStateViz |
worldViz
This visualization for the current WorldState. |
| Fields inherited from class visualizer.SocketVisualizerTemplate |
|
| Constructor Summary | |
GraphicalCCVisualizer(connect.CreatesConnection remoteComponent)
|
|
| Method Summary | |
protected void |
addFollowingTarget(objects.Location clickLoc)
Identifies the closest non- Targetable object with in the
significant range and add it to the list of units. |
protected void |
addTarget(objects.Location clickLoc)
Identifies the closest non- Targetable object
with in the significant range and add it to the list of
units. |
protected void |
addUnit(objects.Location clickLoc)
Identifies the closest non- Targetable object
with in the significant range and add it to the list of units. |
protected void |
processAcceptedConnection(Class hostType,
connect.ChannelBundle acceptedConnection)
When a component connects to the component that it requested the connection to, this method is called. |
private void |
resetMission()
Resets the current list of targets and units. |
private void |
sendMission()
Send the Mission to the associated CommandControl if it is fully formed. |
| Methods inherited from class visualizer.SocketVisualizerTemplate |
connect, getComponentEmissary |
| 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 visualizer.WorldStateViz worldViz
WorldState.
private world.WorldState currentState
WorldState sent by the CommandControl.
protected static final double CLICK_SIGNIFICANCE
private boolean targetListed
private boolean unitListed
private List units
Mission waiting to be sent.
private List targets
Mission waiting to be sent.
private List followingTargets
Mission waiting to be
sent.
private connect.SupplierChannel toCommandControl
CommandControl that is
connected.
| Constructor Detail |
public GraphicalCCVisualizer(connect.CreatesConnection remoteComponent)
| Method Detail |
protected void addUnit(objects.Location clickLoc)
Targetable object
with in the significant range and add it to the list of units.
protected void addTarget(objects.Location clickLoc)
Targetable object
with in the significant range and add it to the list of
units. If no object is located and the current list of units is
all of type UAV, a Location will be
put in the target list.
protected void addFollowingTarget(objects.Location clickLoc)
Targetable object with in the
significant range and add it to the list of units.
protected void processAcceptedConnection(Class hostType,
connect.ChannelBundle acceptedConnection)
SocketVisualizerTemplate
processAcceptedConnection in class SocketVisualizerTemplateprivate void sendMission()
Mission to the associated CommandControl if it is fully formed. If it does not include
both units and targets, reset all current lists of each.
private void resetMission()
|
Boeing Simulation 3.1 API Specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||