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-2018 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
16 // Stores time-dependant events and executes them at the proper time (guisim)
17 /****************************************************************************/
18 #ifndef GUIEventControl_h
19 #define GUIEventControl_h
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
28 
29 
30 // ===========================================================================
31 // class declarations
32 // ===========================================================================
33 class MFXMutex;
34 
35 
36 // ===========================================================================
37 // class definitions
38 // ===========================================================================
47 public:
50 
51 
54 
55 
65  void addEvent(Command* operation, SUMOTime execTimeStep = -1);
66 
67 
77  void execute(SUMOTime time);
78 
79 
80 private:
83 
84 
85 private:
88 
91 
92 
93 };
94 
95 
96 #endif
97 
98 /****************************************************************************/
99 
long long int SUMOTime
Definition: SUMOTime.h:36
GUIEventControl & operator=(const GUIEventControl &)
invalid assignment operator.
Base (microsim) event class.
Definition: Command.h:54
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.
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.