public class Confirm extends I2VMessage
I2VMessage.Type
messageType, size
Constructor and Description |
---|
Confirm(int imId,
int vin,
int reservationID,
int requestId,
double arrivalTime,
double earlyError,
double lateError,
double arrivalVelocity,
int arrivalLaneID,
int departureLaneID,
double aczDistance,
Queue<double[]> accProfile)
Create a confirm message.
|
Modifier and Type | Method and Description |
---|---|
Queue<double[]> |
getAccelerationProfile()
Get a run-length encoded list of acceleration/duration pairs to be
executed by the vehicle during intersection traversal.
|
double |
getACZDistance()
Get the distance the Admission Control Zone extends past the intersection
for this reservation.
|
int |
getArrivalLaneID()
Get the ID number of the lane in which the vehicle should arrive at the
intersection.
|
double |
getArrivalTime()
Get the time at which the receiving vehicle should arrive at the
intersection.
|
double |
getArrivalVelocity()
Get the velocity at which the vehicle should arrive at the intersection.
|
int |
getDepartureLaneID()
Get the ID number of the lane in which the vehicle should depart the
intersection.
|
double |
getEarlyError()
Get the maximum amount of time before the arrival time that the receiving
vehicle can safely arrive at the intersection.
|
double |
getLateError()
Get the maximum amount of time after the arrival time that the receiving
vehicle can safely arrive at the intersection.
|
int |
getRequestId()
Get the request ID of the request message this confirm message correspond
to.
|
int |
getReservationId()
Get the unique ID number for the reservation confirmed by this message.
|
String |
toString() |
getImId, getMessageType, getSize, getVin
public Confirm(int imId, int vin, int reservationID, int requestId, double arrivalTime, double earlyError, double lateError, double arrivalVelocity, int arrivalLaneID, int departureLaneID, double aczDistance, Queue<double[]> accProfile)
imId
- the ID number of the IntersectionManager sending
this messagevin
- the ID number of the Vehicle to which this message
is being sentreservationID
- the unique ID number for the reservation confirmed
by this messagerequestId
- the request id of the request message this confirm
message corresponds to.arrivalTime
- the time at which the receiving vehicle should
arrive at the intersectionearlyError
- the maximum amount of time before the arrival
time that the receiving vehicle can safely arrive
at the intersection, in secondslateError
- the maximum amount of time after the arrival time
that the receiving vehicle can safely arrive at
the intersection, in secondsarrivalVelocity
- the velocity at which the vehicle should arrive at
the intersection, in meters per secondarrivalLaneID
- the ID number of the lane in which the vehicle
should arrive at the intersectiondepartureLaneID
- the ID number of the lane in which the vehicle
should depart the intersectionaczDistance
- The distance after the intersection that is
protected by an Admission Control Zone.accProfile
- a run-length encoded list of acceleration/duration
pairs to be executed by the vehicle during
intersection traversalpublic int getReservationId()
public int getRequestId()
public double getArrivalTime()
public double getEarlyError()
public double getLateError()
public double getArrivalVelocity()
public int getArrivalLaneID()
public int getDepartureLaneID()
public double getACZDistance()
public Queue<double[]> getAccelerationProfile()
Copyright © 2013. All rights reserved.