Modifier and Type | Class and Description |
---|---|
static class |
I2VMessage.Type
The different types of Intersection Manager to
Vehicle messages.
|
Modifier and Type | Field and Description |
---|---|
protected I2VMessage.Type |
messageType
The type of this message.
|
protected int |
size
The size, in bits, of this message.
|
Constructor and Description |
---|
I2VMessage(I2VMessage msg)
Create a new copy of the message.
|
I2VMessage(int imId,
int vin)
Class constructor to be called by subclasses to set the source and
destination ID numbers.
|
Modifier and Type | Method and Description |
---|---|
int |
getImId()
Get the ID number of the Intersection Manager sending this
message.
|
I2VMessage.Type |
getMessageType()
Get the type of this message.
|
int |
getSize()
Get the size of this message in bits.
|
int |
getVin()
Get the ID number of the Vehicle to which this message is being
sent.
|
protected I2VMessage.Type messageType
protected int size
public I2VMessage(int imId, int vin)
imId
- the ID number of the IntersectionManager sending this messagevin
- the ID number of the Vehicle to which this message is being
sentpublic I2VMessage(I2VMessage msg)
msg
- the messagepublic int getVin()
public int getImId()
public I2VMessage.Type getMessageType()
public int getSize()
Copyright © 2013. All rights reserved.