|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VehicleSimView
The interface of a vehicle from the viewpoint of a simulator.
Method Summary | |
---|---|
void |
checkCurrentTime(double currentTime)
Check whether this vehicle's time is current. |
double |
getAcceleration()
Get the acceleration of the vehicle |
Point2D |
getCenterPoint()
Get the location of the center of the Vehicle at this point in time. |
Point2D[] |
getCornerPoints()
Get the current global coordinates of the corners of this Vehicle. |
List<Line2D> |
getEdges()
Get the edges that represent the boundaries of this Vehicle. |
double |
getHeading()
Get the heading of the vehicle |
Point2D |
getPointAtMiddleFront(double delta)
Get the point in front of the middle point of the vehicle that is at the distance of delta away from the vehicle. |
Point2D |
getPointAtRear()
Get the point at the rear center of the Vehicle. |
Point2D |
getPosition()
Get the position of the vehicle. |
Shape |
getShape()
Get a Shape describing the Vehicle. |
Shape |
getShape(double extra)
Get a {link Shape} describing this Vehicle, if it were larger in each dimension. |
Queue<V2IMessage> |
getV2IOutbox()
Get the queue of V2I messages waiting to be delivered from this Vehicle. |
double |
getVelocity()
Get the velocity of the vehicle |
Shape[] |
getWheelShapes()
Get the Shapes of each of the wheels. |
void |
move(double timeStep)
Move a single Vehicle according to some approximation of the laws of physics. |
void |
setDriver(AutoDriver driver)
Set this Vehicle's Driver. |
void |
setVIN(int vin)
Set the VIN number of this Vehicle. |
Method Detail |
---|
void setVIN(int vin)
vin
- the vehicle's VIN number.void setDriver(AutoDriver driver)
driver
- the new driver to control this Vehiclevoid checkCurrentTime(double currentTime)
currentTime
- the current timePoint2D getPosition()
double getHeading()
double getVelocity()
double getAcceleration()
Shape getShape()
Shape
describing the Vehicle.
Shape getShape(double extra)
extra
- the fixed extra amount by which to increase the size of the
Vehicle in each dimension
List<Line2D> getEdges()
Shape[] getWheelShapes()
Point2D getPointAtMiddleFront(double delta)
delta
- the distance of the vehicle and the point
Point2D getCenterPoint()
Point2D[] getCornerPoints()
Point2D getPointAtRear()
Queue<V2IMessage> getV2IOutbox()
void move(double timeStep)
timeStep
- the size of the time step to simulate, in seconds
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |