public class Reject extends I2VMessage
| Modifier and Type | Class and Description |
|---|---|
static class |
Reject.Reason
Some of the possible reasons that a vehicle may have a reservation
rejected.
|
I2VMessage.TypemessageType, size| Constructor and Description |
|---|
Reject(int sourceID,
int destinationID,
int requestId,
double nextAllowedCommunication,
Reject.Reason reason)
Constructor with specific reason for rejection and limit on when
the next acceptable transmission is.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getNextAllowedCommunication()
Get the time after which communication will again be accepted by the
IntersectionManager.
|
Reject.Reason |
getReason()
Get the reason that this Reject message was sent.
|
int |
getRequestId()
Get the request ID of the request message this reject message correspond
to.
|
String |
toString() |
getImId, getMessageType, getSize, getVinpublic Reject(int sourceID,
int destinationID,
int requestId,
double nextAllowedCommunication,
Reject.Reason reason)
sourceID - the ID number of the IntersectionManager
sending this messagedestinationID - the ID number of the Vehicle to which
this message is being sentrequestId - the request id of the request message
this reject message corresponds tonextAllowedCommunication - the time after which communication will
accepted by the IntersectionManagerreason - the reason this Reject message is being
sentpublic int getRequestId()
public double getNextAllowedCommunication()
public Reject.Reason getReason()
Copyright © 2013. All rights reserved.