SUMO - Simulation of Urban MObility
GUIEventControl.cpp
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
18 // Stores time-dependant events and executes them at the proper time (guisim)
19 /****************************************************************************/
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #ifdef _MSC_VER
26 #include <windows_config.h>
27 #else
28 #include <config.h>
29 #endif
30 
31 #include <cassert>
33 #include "GUIEventControl.h"
34 
35 
36 // ===========================================================================
37 // member definitions
38 // ===========================================================================
40 
41 
43 }
44 
45 
46 void
47 GUIEventControl::addEvent(Command* operation, SUMOTime execTimeStep) {
49  MSEventControl::addEvent(operation, execTimeStep);
50 }
51 
52 
53 void
56  MSEventControl::execute(execTime);
57 }
58 
59 
60 
61 /****************************************************************************/
62 
virtual void execute(SUMOTime time)
Executes time-dependant commands.
Base (microsim) event class.
Definition: Command.h:60
virtual void addEvent(Command *operation, SUMOTime execTimeStep=-1)
Adds an Event.
MFXMutex myLock
The lock used to prohibit parallel addition and processing of events.
~GUIEventControl()
Destructor.
A mutex encapsulator which locks/unlocks the given mutex on construction/destruction, respectively.
Definition: AbstractMutex.h:70
GUIEventControl()
Default constructor.
long long int SUMOTime
Definition: TraCIDefs.h:51
void execute(SUMOTime time)
Executes time-dependant commands.
void addEvent(Command *operation, SUMOTime execTimeStep=-1)
Adds an Event.