Public Member Functions | |
| StartBlocking (int time, int x, int y, int direction, int lanes) throws ParseException | |
| String | getText () |
| int | compareTo (Event other) |
| void | execute () |
| void | destroy () |
| int | getX () |
| int | getY () |
| StopBlocking | getStopBlockingEvent () |
| void | setStopBlockingEvent (StopBlocking event) |
| Street | getStreet () |
| int | getAffectedDirection () |
| ArrayList< BlockingObject > | getBlockingObjects () |
| int | getAffectedLanes () |
Public Member Functions inherited from vanetsim.scenario.events.Event | |
| int | getTime () |
| Color | getTextColor () |
Additional Inherited Members | |
Protected Attributes inherited from vanetsim.scenario.events.Event | |
| int | time_ |
| Color | color_ |
This class represents an event which starts blocking on a street.
|
inline |
Constructor.
| time | the time in milliseconds when this event gets active |
| x | the x coordinate of this event |
| y | the y coordinate of this event |
| direction | The affected street direction. 0 for both directions, 1 for startNode to endNode, 1 for endNode to startNode |
| lanes | The amount of affected lanes (should be at least 1). Will be used for both directions. Use Integer.MAX_VALUE to use all lanes. |
| ParseException | an exception indicating that creation wasn't successful |
|
inline |
Compare to another event.
| other | the other event |
-1 if other is larger, 1 if it's smaller and 0 if both are equal.
|
inlinevirtual |
Destroys itself.
Implements vanetsim.scenario.events.Event.
|
inlinevirtual |
Execute the task.
Implements vanetsim.scenario.events.Event.
|
inline |
Gets the affected direction.
0 to indicate that this event is for both directions,1 that it's only from startNode to endNode, 1 that it's only from endNode to startNode
|
inline |
Gets the amount of lanes (per direction) affected by this event.
|
inline |
Gets the blocking objects.
|
inline |
Gets the event which ends this blocking.
null if this event exists forever
|
inline |
Gets the street where blocking is done.
|
inlinevirtual |
Returns a descriptive text for display in the GUI.
Implements vanetsim.scenario.events.Event.
|
inline |
Gets the x coordinate.
|
inline |
Gets the y coordinate.
|
inline |
Sets the event which ends this blocking.
| event | the event which ends blocking |
1.8.3.1