|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvanetsim.scenario.messages.Message
public abstract class Message
An abstract class for messages.
| Constructor Summary | |
|---|---|
Message()
|
|
| Method Summary | |
|---|---|
abstract void |
execute(Vehicle vehicle)
Executes something on a vehicle given. |
int |
getDestinationRadius()
Gets the destination radius. |
long |
getDestinationRadiusSquared()
Gets the squared destination radius. |
int |
getDestinationX_()
Gets the x coordinate of the destination. |
int |
getDestinationY_()
Gets the y coordinate of the destination. |
boolean |
getFloodingMode()
Returns if flooding mode is enabled on this message |
boolean |
isValid()
Checks if the message is still valid. |
void |
setFloodingMode(boolean mode)
Sets if flooding mode is enabled on this message |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Message()
| Method Detail |
|---|
public boolean isValid()
true if it's valid, else falsepublic int getDestinationX_()
public int getDestinationY_()
public boolean getFloodingMode()
true if flooding of this message to all vehicles is done,
false if line-forwarding is donepublic void setFloodingMode(boolean mode)
mode - true if flooding of this message to all vehicles is done,
false if line-forwarding is donepublic int getDestinationRadius()
public long getDestinationRadiusSquared()
public abstract void execute(Vehicle vehicle)
vehicle - the vehicle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||