|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectaim4.msg.i2v.I2VMessage
public abstract class I2VMessage
A message sent from an Intersection Manager to a Vehicle.
| Nested Class Summary | |
|---|---|
static class |
I2VMessage.Type
The different types of Intersection Manager to Vehicle messages. |
| Field Summary | |
|---|---|
protected I2VMessage.Type |
messageType
The type of this message. |
protected int |
size
The size, in bits, of this message. |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected I2VMessage.Type messageType
protected int size
| Constructor Detail |
|---|
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 message| Method Detail |
|---|
public int getVin()
public int getImId()
public I2VMessage.Type getMessageType()
public int getSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||