public class Request extends V2IMessage
Modifier and Type | Class and Description |
---|---|
static class |
Request.Proposal
A proposal
|
static class |
Request.VehicleSpecForRequestMsg
The specification of the vehicle.
|
V2IMessage.Type
messageType, size
Constructor and Description |
---|
Request(int sourceID,
int destinationID,
int requestId,
Request.VehicleSpecForRequestMsg spec,
List<Request.Proposal> proposals)
Basic class constructor with all required fields.
|
Request(Request r)
The copy constructor of this request message
|
Modifier and Type | Method and Description |
---|---|
List<Request.Proposal> |
getProposals()
Get the List of Proposals in this request.
|
int |
getRequestId()
Get the request ID.
|
Request.VehicleSpecForRequestMsg |
getSpec()
Get the specification of the vehicle
|
String |
toString() |
getImId, getMessageType, getSize, getVin
public Request(int sourceID, int destinationID, int requestId, Request.VehicleSpecForRequestMsg spec, List<Request.Proposal> proposals)
sourceID
- the ID number of the Vehicle sending this messagedestinationID
- the ID number of the IntersectionManager to which
this message is being sentrequestId
- the request idspec
- the specification of the vehicleproposals
- the proposalspublic Request(Request r)
r
- the requestpublic int getRequestId()
public Request.VehicleSpecForRequestMsg getSpec()
public List<Request.Proposal> getProposals()
Copyright © 2013. All rights reserved.