aim4.driver
Class AutoV2VDriver
java.lang.Object
aim4.driver.Driver
aim4.driver.AutoDriver
aim4.driver.AutoV2VDriver
- All Implemented Interfaces:
- AutoDriverCoordinatorView, AutoDriverPilotView, DriverSimView
public class AutoV2VDriver
- extends AutoDriver
An autonomous V2V driver.
Nested Class Summary |
static class |
AutoV2VDriver.State
Potential states that a CoordinatingDriverAgent can be in. |
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutoV2VDriver
public AutoV2VDriver(AutoVehicleDriverView vehicle,
BasicMap basicMap)
getVehicle
public AutoVehicleDriverView getVehicle()
- Get the Vehicle this DriverAgent is controlling.
- Specified by:
getVehicle
in interface AutoDriverPilotView
- Specified by:
getVehicle
in interface DriverSimView
- Overrides:
getVehicle
in class AutoDriver
- Returns:
- the Vehicle this DriverAgent is controlling
setClaimParameters
public void setClaimParameters(double arrivalTime,
double arrivalVelocity,
Lane arrivalLane,
Lane departureLane)
- Set the parameters for this driver agent's Claim. This method
is used by the Coordinator to inform the Pilot about the Claim that the
Coordinator has secured.
- Parameters:
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 intersection
finalizeClaimParameters
public 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.
Copyright © 2011. All Rights Reserved.