SUMO - Simulation of Urban MObility
GUIEventControl.h
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 #ifndef GUIEventControl_h
21 #define GUIEventControl_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
34 
35 
36 // ===========================================================================
37 // class declarations
38 // ===========================================================================
39 class MFXMutex;
40 
41 
42 // ===========================================================================
43 // class definitions
44 // ===========================================================================
53 public:
56 
57 
60 
61 
71  void addEvent(Command* operation, SUMOTime execTimeStep = -1);
72 
73 
83  void execute(SUMOTime time);
84 
85 
86 private:
89 
90 
91 private:
94 
97 
98 
99 };
100 
101 
102 #endif
103 
104 /****************************************************************************/
105 
GUIEventControl & operator=(const GUIEventControl &)
invalid assignment operator.
Base (microsim) event class.
Definition: Command.h:60
MFXMutex myLock
The lock used to prohibit parallel addition and processing of events.
~GUIEventControl()
Destructor.
Stores time-dependant events and executes them at the proper time (guisim)
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.
Stores time-dependant events and executes them at the proper time.