|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object aim4.msg.v2i.V2IMessage aim4.msg.v2i.Request
public class Request
Message sent from a Vehicle to an Intersection Manager to request a reservation.
Nested Class Summary | |
---|---|
static class |
Request.Proposal
A proposal |
static class |
Request.VehicleSpecForRequestMsg
The specification of the vehicle. |
Nested classes/interfaces inherited from class aim4.msg.v2i.V2IMessage |
---|
V2IMessage.Type |
Field Summary |
---|
Fields inherited from class aim4.msg.v2i.V2IMessage |
---|
messageType, size |
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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()
|
Methods inherited from class aim4.msg.v2i.V2IMessage |
---|
getImId, getMessageType, getSize, getVin |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 requestMethod Detail |
---|
public int getRequestId()
public Request.VehicleSpecForRequestMsg getSpec()
public List<Request.Proposal> getProposals()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |