SUMO - Simulation of Urban MObility
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
GUIVehicleControl.h
Go to the documentation of this file.
1
/****************************************************************************/
9
// The class responsible for building and deletion of vehicles (gui-version)
10
/****************************************************************************/
11
// SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
12
// Copyright (C) 2003-2014 DLR (http://www.dlr.de/) and contributors
13
/****************************************************************************/
14
//
15
// This file is part of SUMO.
16
// SUMO is free software: you can redistribute it and/or modify
17
// it under the terms of the GNU General Public License as published by
18
// the Free Software Foundation, either version 3 of the License, or
19
// (at your option) any later version.
20
//
21
/****************************************************************************/
22
#ifndef GUIVehicleControl_h
23
#define GUIVehicleControl_h
24
25
26
// ===========================================================================
27
// included modules
28
// ===========================================================================
29
#ifdef _MSC_VER
30
#include <
windows_config.h
>
31
#else
32
#include <
config.h
>
33
#endif
34
35
#include <vector>
36
#include <
microsim/MSVehicleControl.h
>
37
#include <
utils/gui/globjects/GUIGlObject.h
>
38
39
40
// ===========================================================================
41
// class declarations
42
// ===========================================================================
43
class
MFXMutex
;
44
45
46
// ===========================================================================
47
// class definitions
48
// ===========================================================================
59
class
GUIVehicleControl
:
public
MSVehicleControl
{
60
public
:
62
GUIVehicleControl
();
63
64
66
~GUIVehicleControl
();
67
68
71
82
SUMOVehicle
*
buildVehicle
(
SUMOVehicleParameter
* defs,
83
const
MSRoute
* route,
const
MSVehicleType
* type);
85
86
95
bool
addVehicle
(
const
std::string&
id
,
SUMOVehicle
* v);
96
97
105
void
deleteVehicle
(
SUMOVehicle
* v,
bool
discard =
false
);
106
107
112
void
insertVehicleIDs
(std::vector<GUIGlID>& into);
113
114
116
void
secureVehicles
();
117
119
void
releaseVehicles
();
120
121
122
private
:
124
mutable
MFXMutex
myLock
;
125
126
127
private
:
129
GUIVehicleControl
(
const
GUIVehicleControl
& s);
130
132
GUIVehicleControl
&
operator=
(
const
GUIVehicleControl
& s);
133
134
135
};
136
137
138
#endif
139
140
/****************************************************************************/
141
tmp
buildd
sumo-0.21.0+dfsg
src
guisim
GUIVehicleControl.h
Generated on Thu Nov 20 2014 19:49:54 for SUMO - Simulation of Urban MObility by
1.8.1.2