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
GUILane.h
Go to the documentation of this file.
1
/****************************************************************************/
9
// Representation of a lane in the micro simulation (gui-version)
10
/****************************************************************************/
11
// SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
12
// Copyright (C) 2001-2012 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 GUILane_h
23
#define GUILane_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 <fx.h>
36
#include <string>
37
#include <utility>
38
#include <
microsim/MSLane.h
>
39
#include <
microsim/MSEdge.h
>
40
#include <
utils/geom/Position.h
>
41
#include <
utils/geom/PositionVector.h
>
42
#include "
GUILaneWrapper.h
"
43
44
45
// ===========================================================================
46
// class declarations
47
// ===========================================================================
48
class
MSVehicle
;
49
class
MSNet
;
50
class
MFXMutex
;
51
52
53
// ===========================================================================
54
// class definitions
55
// ===========================================================================
64
class
GUILane
:
public
MSLane
{
65
public
:
79
GUILane
(
const
std::string&
id
,
SUMOReal
maxSpeed,
80
SUMOReal
length,
MSEdge
*
const
edge,
unsigned
int
numericalID,
81
const
PositionVector
& shape,
SUMOReal
width,
82
SVCPermissions
permissions);
83
84
86
~GUILane
() ;
87
88
89
92
102
const
VehCont
&
getVehiclesSecure
()
const
;
103
104
110
void
releaseVehicles
()
const
;
112
113
114
117
120
bool
moveCritical
(
SUMOTime
t);
121
124
bool
setCritical
(
SUMOTime
t, std::vector<MSLane*> &into);
125
128
bool
integrateNewVehicle
(
SUMOTime
t);
130
131
132
133
void
detectCollisions
(
SUMOTime
timestep);
134
135
136
GUILaneWrapper
*
buildLaneWrapper
(
unsigned
int
index);
137
MSVehicle
*
removeVehicle
(
MSVehicle
* remVehicle);
138
139
protected
:
141
void
swapAfterLaneChange
(
SUMOTime
t);
142
154
virtual
void
incorporateVehicle
(
MSVehicle
* veh,
SUMOReal
pos,
SUMOReal
speed,
155
const
MSLane::VehCont::iterator& at,
156
MSMoveReminder::Notification
notification =
MSMoveReminder::NOTIFICATION_DEPARTED
) ;
157
158
159
private
:
161
mutable
MFXMutex
myLock
;
162
163
164
};
165
166
167
#endif
168
169
/****************************************************************************/
170
var
build
temp
tmp.znCyBrHNjL
4.0-0-0
sumo
sumo-0.15.0~dfsg
src
guisim
GUILane.h
Generated on Mon Mar 24 2014 09:53:09 for SUMO - Simulation of Urban MObility by
1.8.1.2