|
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 | +--mission.MoveMission
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.
| 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 |
private static final long serialVersionUID
private final List units
private final objects.Location destination
Location to move the units to.
private final String direction
Location; "stop" halts random movement; "go" restarts
random movement.
| Constructor Detail |
public MoveMission(List units,
objects.Location destination)
public MoveMission(List units,
String direction)
| Method Detail |
public List getUnits()
MissionList 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.
getUnits in interface Missionpublic List getTargets()
MissionList 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.
getTargets in interface Missionpublic objects.Location getDestination()
public String getDirection()
public String toString()
toString in class Objectprotected String printList(List list)
|
Boeing Simulation 3.1 API Specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||