|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectaim4.vehicle.BasicVehicle.NonAccelMovement
aim4.vehicle.BasicVehicle.SteeringMovement
public static class BasicVehicle.SteeringMovement
The steering movement.
Field Summary |
---|
Fields inherited from class aim4.vehicle.BasicVehicle.NonAccelMovement |
---|
heading, position, spec, velocity |
Constructor Summary | |
---|---|
BasicVehicle.SteeringMovement(VehicleSpec spec,
Point2D position,
double heading,
double velocity,
double steeringAngle)
Create a steering movement. |
Method Summary | |
---|---|
double |
getSteeringAngle()
Get the steering angle. |
void |
move(double currentTime,
double timeStep)
Move the vehicle while holding all vehicle properties constant. |
void |
setSteeringAngleWithBound(double steeringAngle)
Set the steering angle with respect to the physical limit of the vehicle. |
String |
toString()
|
Methods inherited from class aim4.vehicle.BasicVehicle.NonAccelMovement |
---|
getHeading, getPosition, getVehicleSpec, getVelocity, setVelocityWithBound |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BasicVehicle.SteeringMovement(VehicleSpec spec, Point2D position, double heading, double velocity, double steeringAngle)
spec
- the vehicle specificationposition
- the positionheading
- the headingvelocity
- the velocitysteeringAngle
- the steering angleMethod Detail |
---|
public double getSteeringAngle()
public void setSteeringAngleWithBound(double steeringAngle)
steeringAngle
- the steering anglepublic void move(double currentTime, double timeStep)
timeStep
- the length of time for which to move the VehiclecurrentTime
- the current timepublic String toString()
toString
in class BasicVehicle.NonAccelMovement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |