|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectaim4.msg.i2v.I2VMessage
aim4.msg.i2v.Confirm
public class Confirm
Message sent from an Intersection Manager to a Vehicle to confirm a reservation request.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class aim4.msg.i2v.I2VMessage |
---|
I2VMessage.Type |
Field Summary |
---|
Fields inherited from class aim4.msg.i2v.I2VMessage |
---|
messageType, size |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class aim4.msg.i2v.I2VMessage |
---|
getImId, getMessageType, getSize, getVin |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 traversalMethod Detail |
---|
public 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()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |