|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectaim4.msg.v2i.V2IMessage
public abstract class V2IMessage
A message sent from a Vehicle to an Intersection Manager.
| Nested Class Summary | |
|---|---|
static class |
V2IMessage.Type
The different types of Vehicle to Intersection Manager messages. |
| Field Summary | |
|---|---|
protected V2IMessage.Type |
messageType
The type of this message. |
protected int |
size
The size, in bits, of this message. |
| Constructor Summary | |
|---|---|
V2IMessage(int vin,
int imID)
Class constructor to be called by subclasses to set the source and destination ID numbers. |
|
V2IMessage(V2IMessage msg)
|
|
| Method Summary | |
|---|---|
int |
getImId()
Get the ID number of the Intersection Manager to which this message is being sent. |
V2IMessage.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 sending this message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected V2IMessage.Type messageType
protected int size
| Constructor Detail |
|---|
public V2IMessage(int vin,
int imID)
vin - the ID number of the Vehicle sending this messageimID - the ID number of the IntersectionManager to which
this message is being sentpublic V2IMessage(V2IMessage msg)
| Method Detail |
|---|
public int getImId()
public int getVin()
public V2IMessage.Type getMessageType()
public int getSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||