SUMO - Simulation of Urban MObility
GUIEventControl.h
Go to the documentation of this file.
1 /****************************************************************************/
8 // Stores time-dependant events and executes them at the proper time (guisim)
9 /****************************************************************************/
10 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
11 // Copyright (C) 2001-2017 DLR (http://www.dlr.de/) and contributors
12 /****************************************************************************/
13 //
14 // This file is part of SUMO.
15 // SUMO is free software: you can redistribute it and/or modify
16 // it under the terms of the GNU General Public License as published by
17 // the Free Software Foundation, either version 3 of the License, or
18 // (at your option) any later version.
19 //
20 /****************************************************************************/
21 #ifndef GUIEventControl_h
22 #define GUIEventControl_h
23 
24 
25 // ===========================================================================
26 // included modules
27 // ===========================================================================
28 #ifdef _MSC_VER
29 #include <windows_config.h>
30 #else
31 #include <config.h>
32 #endif
33 
35 
36 
37 // ===========================================================================
38 // class declarations
39 // ===========================================================================
40 class MFXMutex;
41 
42 
43 // ===========================================================================
44 // class definitions
45 // ===========================================================================
54 public:
57 
58 
61 
62 
72  void addEvent(Command* operation, SUMOTime execTimeStep = -1);
73 
74 
84  void execute(SUMOTime time);
85 
86 
87 private:
90 
91 
92 private:
95 
98 
99 
100 };
101 
102 
103 #endif
104 
105 /****************************************************************************/
106 
GUIEventControl & operator=(const GUIEventControl &)
invalid assignment operator.
Base (microsim) event class.
Definition: Command.h:61
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:52
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.