aim4.vehicle
Class BasicVehicle.TrackMovement
java.lang.Object
aim4.vehicle.BasicVehicle.NonAccelMovement
aim4.vehicle.BasicVehicle.TrackMovement
- All Implemented Interfaces:
- BasicVehicle.Movement
- Enclosing class:
- BasicVehicle
public static class BasicVehicle.TrackMovement
- extends BasicVehicle.NonAccelMovement
The track movement.
Method Summary |
void |
move(double currentTime,
double timeStep)
Move the vehicle for a given period of time. |
String |
toString()
|
BasicVehicle.TrackMovement
public BasicVehicle.TrackMovement(VehicleSpec spec,
Point2D position,
double heading,
double velocity,
TrackPosition trackPosition,
BasicVehicle.MovementFactory baseMovementFactory)
- Create a track movement.
- Parameters:
spec
- the vehicle specificationposition
- the positionheading
- the headingvelocity
- the velocitytrackPosition
- the track positionbaseMovementFactory
- the base movement factory
move
public void move(double currentTime,
double timeStep)
- Move the vehicle for a given period of time.
- Parameters:
currentTime
- the current timetimeStep
- the period of time for which the vehicle moves.
toString
public String toString()
-
- Overrides:
toString
in class BasicVehicle.NonAccelMovement
Copyright © 2011. All Rights Reserved.