aim4.vehicle
Interface BasicVehicle.Movement

All Known Subinterfaces:
BasicVehicle.MovementWithAccel
All Known Implementing Classes:
BasicVehicle.AccelScheduleMovement, BasicVehicle.MoveToTargetVelocityMovement, BasicVehicle.NonAccelMovement, BasicVehicle.PhysicalMovement, BasicVehicle.SteeringMovement, BasicVehicle.TrackMovement
Enclosing class:
BasicVehicle

public static interface BasicVehicle.Movement

The movement of a vehicle.


Method Summary
 double getHeading()
          Get the heading of the vehicle
 Point2D getPosition()
          Get the position of the vehicle.
 double getVelocity()
          Get the velocity of the vehicle
 void move(double currentTime, double timeStep)
          Move the vehicle for a given period of time.
 

Method Detail

getPosition

Point2D getPosition()
Get the position of the vehicle.

Returns:
the position of the vehicle

getHeading

double getHeading()
Get the heading of the vehicle

Returns:
the heading of the vehicle

getVelocity

double getVelocity()
Get the velocity of the vehicle

Returns:
the velocity of the vehicle

move

void move(double currentTime,
          double timeStep)
Move the vehicle for a given period of time.

Parameters:
currentTime - the current time
timeStep - the period of time for which the vehicle moves.


Copyright © 2011. All Rights Reserved.