Boeing Simulation 3.1 API Specification

objects
Class MovableWhatWhere

java.lang.Object
  |
  +--objects.WhatWhere
        |
        +--objects.MovableWhatWhere
All Implemented Interfaces:
Extensible, Locatable, Movable, Serializable
Direct Known Subclasses:
Bus, SimulatorUAV, SimulatorUCAV, SocketSimulatorComponentTemplate, Tank, UAVObject, UCAVObject

public class MovableWhatWhere
extends WhatWhere
implements Movable

This class is intended to be the the basis for moving physical objects in the world. It provides methods for update the location of the object. Note that this does not mean the objects are moving by themselves. Implementing this interface simply means that a WhatWhere is capable of changing its location in the world.

Version:
$Revision: 1.5 $
Author:
Dave Jurgens
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
 
Fields inherited from class objects.WhatWhere
dim, loc
 
Constructor Summary
MovableWhatWhere(double xcoord, double ycoord, double width, double height)
           
MovableWhatWhere(objects.Location loc, objects.Dimension dim)
           
 
Method Summary
 void setLoc(double xcoord, double ycoord)
          Sets the location of this object to the coordinate arguments.
 void setLoc(objects.Location loc)
          Sets the location of this object to loc.
 
Methods inherited from class objects.WhatWhere
bound, getCenter, getDimensions, getDistance, getHeight, getLoc, getWidth, isEastOf, isNorthOf, isSouthOf, isWestOf, overlaps
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface objects.Locatable
getDistance, getLoc, isEastOf, isNorthOf, isSouthOf, isWestOf
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

MovableWhatWhere

public MovableWhatWhere(objects.Location loc,
                        objects.Dimension dim)

MovableWhatWhere

public MovableWhatWhere(double xcoord,
                        double ycoord,
                        double width,
                        double height)
Method Detail

setLoc

public void setLoc(objects.Location loc)
Description copied from interface: Movable
Sets the location of this object to loc.

Specified by:
setLoc in interface Movable

setLoc

public void setLoc(double xcoord,
                   double ycoord)
Description copied from interface: Movable
Sets the location of this object to the coordinate arguments.

Specified by:
setLoc in interface Movable

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.