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-2016 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 
73  SUMOTime addEvent(Command* operation, SUMOTime execTimeStep,
74  AdaptType type);
75 
76 
86  void execute(SUMOTime time);
87 
88 
89 private:
92 
93 
94 private:
97 
100 
101 
102 };
103 
104 
105 #endif
106 
107 /****************************************************************************/
108 
long long int SUMOTime
Definition: SUMOTime.h:43
GUIEventControl & operator=(const GUIEventControl &)
invalid assignment operator.
SUMOTime addEvent(Command *operation, SUMOTime execTimeStep, AdaptType type)
Adds an Event.
Base (microsim) event class.
Definition: Command.h:61
AdaptType
Defines what to do if the insertion time lies before the current simulation time. ...
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.
Stores time-dependant events and executes them at the proper time.