Boeing Simulation 3.1 API Specification

mission
Class MoveMission

java.lang.Object
  |
  +--mission.MoveMission
All Implemented Interfaces:
Mission, Serializable

public class MoveMission
extends Object
implements Mission, Serializable

An implementation of the Mission interface for the purpose of moving target units to a specific Location or a small distance in a specific direction.

Version:
$Revision: 1.1 $
Author:
Rob LeGrand
See Also:
Serialized Form

Field Summary
private  objects.Location destination
          The Location to move the units to.
private  String direction
          If equal to "right", "left", "up" or "down", the direction to move the units in; "loc" indicates a move to the destination Location; "stop" halts random movement; "go" restarts random movement.
private static long serialVersionUID
           
private  List units
          The list of objects to be moved in the same way.
 
Constructor Summary
MoveMission(List units, objects.Location destination)
           
MoveMission(List units, String direction)
           
 
Method Summary
 objects.Location getDestination()
           
 String getDirection()
           
 List getTargets()
          Return the List of all the targets.
 List getUnits()
          Return the List of all units currently involved in this mission.
protected  String printList(List list)
          Return a String of the items in the list, separated by commas.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

units

private final List units
The list of objects to be moved in the same way.


destination

private final objects.Location destination
The Location to move the units to.


direction

private final String direction
If equal to "right", "left", "up" or "down", the direction to move the units in; "loc" indicates a move to the destination Location; "stop" halts random movement; "go" restarts random movement.

Constructor Detail

MoveMission

public MoveMission(List units,
                   objects.Location destination)

MoveMission

public MoveMission(List units,
                   String direction)
Method Detail

getUnits

public List getUnits()
Description copied from interface: Mission
Return the List of all units currently involved in this mission. It is inferred that all units are to interact with all targets, though the behavior upon contact will differ due to the unit's nature.

Specified by:
getUnits in interface Mission

getTargets

public List getTargets()
Description copied from interface: Mission
Return the List of all the targets. Targets are inferred to be execute in fifo order, with the first target being the first in the list and so on.

Specified by:
getTargets in interface Mission

getDestination

public objects.Location getDestination()

getDirection

public String getDirection()

toString

public String toString()
Overrides:
toString in class Object

printList

protected String printList(List list)
Return a String of the items in the list, separated by commas.


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.