Public Member Functions | |
| boolean | isValid () |
| int | getDestinationX_ () |
| int | getDestinationY_ () |
| boolean | getFloodingMode () |
| void | setFloodingMode (boolean mode) |
| int | getDestinationRadius () |
| long | getDestinationRadiusSquared () |
| abstract void | execute (Vehicle vehicle) |
Protected Attributes | |
| int | destinationX_ |
| int | destinationY_ |
| int | destinationRadius_ |
| long | destinationRadiusSquared_ |
| int | validUntil_ |
An abstract class for messages.
|
pure virtual |
Executes something on a vehicle given.
| vehicle | the vehicle |
Implemented in vanetsim.scenario.messages.PenaltyMessage.
|
inline |
Gets the destination radius. If the message arrives in this circular destination area, it should be broadcasted to all vehicles.
|
inline |
Gets the squared destination radius.
|
inline |
Gets the x coordinate of the destination.
|
inline |
Gets the y coordinate of the destination.
|
inline |
Returns if flooding mode is enabled on this message
true if flooding of this message to all vehicles is done, false if line-forwarding is done
|
inline |
Checks if the message is still valid.
true if it's valid, else false
|
inline |
Sets if flooding mode is enabled on this message
| mode | true if flooding of this message to all vehicles is done, false if line-forwarding is done |
|
protected |
The destination radius in cm.
|
protected |
The squared destination radius in cm^2 (as it's often needed).
|
protected |
The x coordinate of the destination of this message.
|
protected |
The y coordinate of the destination of this message.
|
protected |
How long this message is valid.
1.8.3.1