|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AutoVehicleDriverView
The interface of an autonomous vehicle from the viewpoint of a driver.
Nested Class Summary | |
---|---|
static class |
AutoVehicleDriverView.LRFMode
Potential operating modes for a vehicle's laser range finder. |
Method Summary | |
---|---|
int |
getBitsReceived()
Get the number of bits this Vehicle has received. |
int |
getBitsTransmitted()
Get the number of bits this Vehicle has transmitted. |
AutoDriver |
getDriver()
Getter method for the Driver controlling this Vehicle. |
DoubleGauge |
getFrontVehicleDistanceSensor()
Get this Vehicle's gauge of sensors about the distance, in meters, between p1 and p2, both of them are points on the target lane, where p1 is the point projected from the center of the front of the vehicle, and p2 is the nearest point of another vehicle in the front of the vehicle to p1 on the target lane. |
DoubleGauge |
getFrontVehicleSpeedSensor()
Get this Vehicle's gauge of sensors about the speed, in meters per second, of the vehicle in front of the vehicle on the target lane. |
DoubleGauge |
getIntervalometer()
Get this Vehicle's interval-to-vehicle-in-front gauge. |
V2IMessage |
getLastV2IMessage()
Get the last V2I message |
DoubleGauge |
getLRFDistance()
Get this Vehicle's laser range finder distance gauge. |
AutoVehicleDriverView.LRFMode |
getLRFMode()
Get the Vehicle's laser range finder operating mode. |
DoubleGauge |
getRearVehicleDistanceSensor()
Get this Vehicle's gauge of sensors about the distance, in meters, between p1 and p2, both of them are points on the target lane, where p1 is the point projected from the center of the front of the vehicle, and p2 is the nearest point of another vehicle behind the vehicle to p1 on the target lane. |
DoubleGauge |
getRearVehicleSpeedSensor()
Get this Vehicle's gauge of sensors about the speed, in meters per second, of the vehicle behind the vehicle on the target lane. |
Lane |
getTargetLaneForVehicleTracking()
Return the target lane for vehicle tracking. |
double |
getTransmissionPower()
Get the Vehicle's transmission power. |
boolean |
isLRFSensing()
Get whether or not the laser range finder is sensing anything. |
boolean |
isVehicleTracking()
Get whether or not the vehicle tracking sensors are sensing anything. |
List<I2VMessage> |
pollAllMessagesFromI2VInbox()
Get the list of all messages currently in the queue of I2V messages waiting to be read by this Vehicle. |
void |
receive(I2VMessage msg)
Adds a message to the incoming queue of messages received from IntersectionManagers. |
void |
send(V2IMessage msg)
Adds a message to the outgoing queue of messages to be delivered to an IntersectionManager. |
void |
setTargetLaneForVehicleTracking(Lane lane)
Set the target lane for vehicle tracking. |
void |
setVehicleTracking(boolean sensing)
Set whether or not the vehicle tracking sensors are sensing anything. |
Method Detail |
---|
AutoDriver getDriver()
getDriver
in interface VehicleDriverView
null
if none exists.DoubleGauge getIntervalometer()
read
, except in
the actual physical simulator which is allowed to set these values.
AutoVehicleDriverView.LRFMode getLRFMode()
AutoVehicleDriverView.LRFMode
boolean isLRFSensing()
DoubleGauge getLRFDistance()
read
,
except in the actual physical simulator which is allowed to set
these values.
boolean isVehicleTracking()
void setVehicleTracking(boolean sensing)
sensing
- whether or not the vehicle tracking sensors are sensing
anythingLane getTargetLaneForVehicleTracking()
void setTargetLaneForVehicleTracking(Lane lane)
lane
- the target lane for vehicle trackingDoubleGauge getFrontVehicleDistanceSensor()
DoubleGauge getRearVehicleDistanceSensor()
DoubleGauge getFrontVehicleSpeedSensor()
DoubleGauge getRearVehicleSpeedSensor()
double getTransmissionPower()
int getBitsReceived()
int getBitsTransmitted()
List<I2VMessage> pollAllMessagesFromI2VInbox()
void send(V2IMessage msg)
msg
- the message to send to an IntersectionManagervoid receive(I2VMessage msg)
msg
- the message to send to another VehicleV2IMessage getLastV2IMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |