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
/****************************************************************************/
8
// The class responsible for building and deletion of vehicles (gui-version)
9
/****************************************************************************/
10
// SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
11
// Copyright (C) 2001-2012 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 GUIVehicleControl_h
22
#define GUIVehicleControl_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
34
#include <vector>
35
#include <
microsim/MSVehicleControl.h
>
36
#include <
utils/gui/globjects/GUIGlObject.h
>
37
38
39
// ===========================================================================
40
// class declarations
41
// ===========================================================================
42
class
MFXMutex
;
43
44
45
// ===========================================================================
46
// class definitions
47
// ===========================================================================
58
class
GUIVehicleControl
:
public
MSVehicleControl
{
59
public
:
61
GUIVehicleControl
();
62
63
65
~GUIVehicleControl
();
66
67
70
81
SUMOVehicle
*
buildVehicle
(
SUMOVehicleParameter
* defs,
82
const
MSRoute
* route,
const
MSVehicleType
* type);
84
85
94
bool
addVehicle
(
const
std::string&
id
,
SUMOVehicle
* v);
95
96
104
void
deleteVehicle
(
SUMOVehicle
* v,
bool
discard =
false
);
105
106
111
void
insertVehicleIDs
(std::vector<GUIGlID>& into);
112
113
115
void
secureVehicles
();
116
118
void
releaseVehicles
();
119
120
121
private
:
123
mutable
MFXMutex
myLock
;
124
125
126
private
:
128
GUIVehicleControl
(
const
GUIVehicleControl
& s);
129
131
GUIVehicleControl
&
operator=
(
const
GUIVehicleControl
& s);
132
133
134
};
135
136
137
#endif
138
139
/****************************************************************************/
140
build
buildd
sumo-0.16.0~dfsg
src
guisim
GUIVehicleControl.h
Generated on Tue Apr 16 2013 01:32:17 for SUMO - Simulation of Urban MObility by
1.8.3.1