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-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 
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include <config.h>
24 
25 #include <cassert>
27 #include "GUIEventControl.h"
28 
29 
30 // ===========================================================================
31 // member definitions
32 // ===========================================================================
34 
35 
37 }
38 
39 
40 void
41 GUIEventControl::addEvent(Command* operation, SUMOTime execTimeStep) {
43  MSEventControl::addEvent(operation, execTimeStep);
44 }
45 
46 
47 void
50  MSEventControl::execute(execTime);
51 }
52 
53 
54 
55 /****************************************************************************/
56 
long long int SUMOTime
Definition: SUMOTime.h:36
virtual void execute(SUMOTime time)
Executes time-dependant commands.
Base (microsim) event class.
Definition: Command.h:54
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:59
GUIEventControl()
Default constructor.
void execute(SUMOTime time)
Executes time-dependant commands.
void addEvent(Command *operation, SUMOTime execTimeStep=-1)
Adds an Event.