Boeing Simulation 3.1 API Specification

objects
Class Bus

java.lang.Object
  |
  +--objects.WhatWhere
        |
        +--objects.MovableWhatWhere
              |
              +--objects.Bus
All Implemented Interfaces:
Destroyable, Extensible, Locatable, Movable, Serializable, Targetable

public class Bus
extends MovableWhatWhere
implements Destroyable

The WhatWhere representation of a bus.

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

Field Summary
private static objects.Dimension BUS_SIZE
           
private  boolean destroyed
           
private static long serialVersionUID
           
private  boolean targeted
           
 
Fields inherited from class objects.WhatWhere
dim, loc
 
Constructor Summary
Bus()
           
Bus(double xcoord, double ycoord)
           
Bus(objects.Location loc)
           
 
Method Summary
 void destroy()
          Marks this object as being destroyed.
 boolean isDestroyed()
          Returns whether this object has been destroyed.
 boolean isTargeted()
          Returns whether this object is currently targeted.
 void setAsTargeted()
          Marks this object as targeted.
 void setAsUntargeted()
          Marks this object as untargeted.
 String toString()
           
 
Methods inherited from class objects.MovableWhatWhere
setLoc, setLoc
 
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, 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

BUS_SIZE

private static final objects.Dimension BUS_SIZE

destroyed

private boolean destroyed

targeted

private boolean targeted
Constructor Detail

Bus

public Bus()

Bus

public Bus(objects.Location loc)

Bus

public Bus(double xcoord,
           double ycoord)
Method Detail

isTargeted

public boolean isTargeted()
Description copied from interface: Targetable
Returns whether this object is currently targeted.

Specified by:
isTargeted in interface Targetable

setAsTargeted

public void setAsTargeted()
Description copied from interface: Targetable
Marks this object as targeted.

Specified by:
setAsTargeted in interface Targetable

setAsUntargeted

public void setAsUntargeted()
Description copied from interface: Targetable
Marks this object as untargeted.

Specified by:
setAsUntargeted in interface Targetable

destroy

public void destroy()
Description copied from interface: Destroyable
Marks this object as being destroyed.

Specified by:
destroy in interface Destroyable

isDestroyed

public boolean isDestroyed()
Description copied from interface: Destroyable
Returns whether this object has been destroyed.

Specified by:
isDestroyed in interface Destroyable

toString

public String toString()
Overrides:
toString in class Object

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.