public class CrashTestDummy extends Driver
currentLane, currentlyOccupiedLanes| Constructor and Description |
|---|
CrashTestDummy(AutoVehicleDriverView vehicle,
Lane arrivalLane,
Lane departureLane)
Construct a new CrashTestDummy to pilot the simulated vehicle across
an intersection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
act()
Take steering actions to guide a test vehicle through a simulated
traversal of the intersection.
|
double |
calculateTraversingLaneChangeDistance()
Determine the distance at which to change lanes during the
traversing inside an intersection.
|
AutoVehicleDriverView |
getVehicle()
Get the Vehicle this driver agent is controlling.
|
addCurrentlyOccupiedLane, distanceFromPrevIntersection, distanceToNextIntersection, getCurrentLane, getCurrentlyOccupiedLanes, getDestination, getSpawnPoint, nextIntersectionManager, setCurrentLane, setDestination, setSpawnPointpublic CrashTestDummy(AutoVehicleDriverView vehicle, Lane arrivalLane, Lane departureLane)
vehicle - the simulated vehicle to pilotarrivalLane - the Lane in which the vehicle should enter the
intersectiondepartureLane - the Lane in which the vehicle should depart the
intersectionpublic void act()
act in interface DriverSimViewact in class Driverpublic AutoVehicleDriverView getVehicle()
getVehicle in interface DriverSimViewgetVehicle in class Driverpublic double calculateTraversingLaneChangeDistance()
Copyright © 2013. All rights reserved.