public class AutoV2VDriver extends AutoDriver
Modifier and Type | Class and Description |
---|---|
static class |
AutoV2VDriver.State
Potential states that a CoordinatingDriverAgent can be in.
|
currentLane, currentlyOccupiedLanes
Constructor and Description |
---|
AutoV2VDriver(AutoVehicleDriverView vehicle,
BasicMap basicMap) |
Modifier and Type | Method and Description |
---|---|
void |
finalizeClaimParameters()
Inform the driver agent that the Claim it is currently holding has stood
up for the required amount of time and can be used to cross the
intersection.
|
AutoVehicleDriverView |
getVehicle()
Get the Vehicle this DriverAgent is controlling.
|
void |
setClaimParameters(double arrivalTime,
double arrivalVelocity,
Lane arrivalLane,
Lane departureLane)
Set the parameters for this driver agent's Claim.
|
act, distanceFromPrevIntersection, distanceToNextIntersection, getCurrentCoordinator, getCurrentIM, inCurrentIntersection, nextIntersectionManager
addCurrentlyOccupiedLane, getCurrentLane, getCurrentlyOccupiedLanes, getDestination, getSpawnPoint, setCurrentLane, setDestination, setSpawnPoint
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addCurrentlyOccupiedLane, getCurrentLane, getDestination, setCurrentLane
getCurrentLane, setCurrentLane
public AutoV2VDriver(AutoVehicleDriverView vehicle, BasicMap basicMap)
public AutoVehicleDriverView getVehicle()
getVehicle
in interface AutoDriverPilotView
getVehicle
in interface DriverSimView
getVehicle
in class AutoDriver
public void setClaimParameters(double arrivalTime, double arrivalVelocity, Lane arrivalLane, Lane departureLane)
arrivalTime
- the time at which the Vehicle should arrive at
the intersectionarrivalVelocity
- the minimum arrival Velocity in order to
complete the Claim on timearrivalLane
- the Lane in which the Vehicle should arrive at
the intersectiondepartureLane
- the Lane in which the Vehicle should depart
the intersectionpublic void finalizeClaimParameters()
Copyright © 2013. All rights reserved.