Eclipse 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-2019 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
27
#include <fx.h>
28
#include <
microsim/MSEventControl.h
>
29
30
31
// ===========================================================================
32
// class definitions
33
// ===========================================================================
41
class
GUIEventControl
:
public
MSEventControl
{
42
public
:
44
GUIEventControl
();
45
46
48
~GUIEventControl
();
49
50
60
void
addEvent
(
Command
* operation,
SUMOTime
execTimeStep = -1);
61
62
72
void
execute
(
SUMOTime
time);
73
74
75
private
:
77
FXMutex
myLock
;
78
79
80
private
:
82
GUIEventControl
(
const
GUIEventControl
&);
83
85
GUIEventControl
&
operator=
(
const
GUIEventControl
&);
86
87
88
};
89
90
91
#endif
92
93
/****************************************************************************/
94
MSEventControl
Stores time-dependant events and executes them at the proper time.
Definition:
MSEventControl.h:50
SUMOTime
long long int SUMOTime
Definition:
SUMOTime.h:35
GUIEventControl
Stores time-dependant events and executes them at the proper time (guisim)
Definition:
GUIEventControl.h:41
GUIEventControl::myLock
FXMutex myLock
The lock used to prohibit parallel addition and processing of events.
Definition:
GUIEventControl.h:77
GUIEventControl::execute
void execute(SUMOTime time)
Executes time-dependant commands.
Definition:
GUIEventControl.cpp:50
GUIEventControl::operator=
GUIEventControl & operator=(const GUIEventControl &)
invalid assignment operator.
GUIEventControl::GUIEventControl
GUIEventControl()
Default constructor.
Definition:
GUIEventControl.cpp:33
GUIEventControl::addEvent
void addEvent(Command *operation, SUMOTime execTimeStep=-1)
Adds an Event.
Definition:
GUIEventControl.cpp:43
Command
Base (microsim) event class.
Definition:
Command.h:53
GUIEventControl::~GUIEventControl
~GUIEventControl()
Destructor.
Definition:
GUIEventControl.cpp:38
config.h
MSEventControl.h
src
guisim
GUIEventControl.h
Generated on Wed Jan 15 2020 15:04:13 for Eclipse SUMO - Simulation of Urban MObility by
1.8.16