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
NLTriggerBuilder.h
Go to the documentation of this file.
1
/****************************************************************************/
11
// Builds trigger objects for microsim
12
/****************************************************************************/
13
// SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
14
// Copyright (C) 2002-2014 DLR (http://www.dlr.de/) and contributors
15
/****************************************************************************/
16
//
17
// This file is part of SUMO.
18
// SUMO is free software: you can redistribute it and/or modify
19
// it under the terms of the GNU General Public License as published by
20
// the Free Software Foundation, either version 3 of the License, or
21
// (at your option) any later version.
22
//
23
/****************************************************************************/
24
#ifndef NLTriggerBuilder_h
25
#define NLTriggerBuilder_h
26
27
28
// ===========================================================================
29
// included modules
30
// ===========================================================================
31
#ifdef _MSC_VER
32
#include <
windows_config.h
>
33
#else
34
#include <
config.h
>
35
#endif
36
37
#include <string>
38
#include <vector>
39
40
41
// ===========================================================================
42
// class declarations
43
// ===========================================================================
44
class
MSTrigger
;
45
class
MSNet
;
46
class
MSLaneSpeedTrigger
;
47
class
NLHandler
;
48
class
MSTriggeredRerouter
;
49
class
MSLane
;
50
class
MSEdge
;
51
class
MSBusStop
;
52
class
MSCalibrator
;
53
class
MSRouteProbe
;
54
55
#ifdef HAVE_INTERNAL
56
class
METriggeredCalibrator;
57
#endif
58
59
60
// ===========================================================================
61
// class definitions
62
// ===========================================================================
71
class
NLTriggerBuilder
{
72
public
:
74
NLTriggerBuilder
();
75
76
78
virtual
~NLTriggerBuilder
();
79
80
85
void
setHandler
(
NLHandler
* handler);
86
87
97
void
buildVaporizer
(
const
SUMOSAXAttributes
& attrs);
98
99
104
105
120
void
parseAndBuildLaneSpeedTrigger
(
MSNet
& net,
const
SUMOSAXAttributes
& attrs,
121
const
std::string& base);
122
123
131
void
parseAndBuildRerouter
(
MSNet
& net,
const
SUMOSAXAttributes
& attrs,
132
const
std::string& base);
133
134
141
void
parseAndBuildBusStop
(
MSNet
& net,
const
SUMOSAXAttributes
& attrs);
142
143
151
void
parseAndBuildCalibrator
(
MSNet
& net,
const
SUMOSAXAttributes
& attrs,
152
const
std::string& base);
154
155
156
protected
:
165
166
178
virtual
MSLaneSpeedTrigger
*
buildLaneSpeedTrigger
(
MSNet
& net,
179
const
std::string&
id
,
const
std::vector<MSLane*>& destLanes,
180
const
std::string& file);
181
182
195
virtual
void
buildBusStop
(
MSNet
& net,
196
const
std::string&
id
,
const
std::vector<std::string>& lines,
197
MSLane
* lane,
SUMOReal
frompos,
SUMOReal
topos);
198
199
211
virtual
MSCalibrator
*
buildCalibrator
(
MSNet
& net,
212
const
std::string&
id
,
MSEdge
* edge,
SUMOReal
pos,
213
const
std::string& file,
const
std::string& outfile,
214
const
SUMOTime
freq,
MSRouteProbe
* probe);
215
#ifdef HAVE_INTERNAL
216
227
virtual
METriggeredCalibrator* buildMECalibrator(
MSNet
& net,
228
const
std::string&
id
,
const
MSEdge
* edge,
SUMOReal
pos,
229
const
std::string& file,
const
std::string& outfile,
230
const
SUMOTime
freq,
MSRouteProbe
* probe);
231
#endif
232
233
244
virtual
MSTriggeredRerouter
*
buildRerouter
(
MSNet
& net,
245
const
std::string&
id
, std::vector<MSEdge*>& edges,
246
SUMOReal
prob,
const
std::string& file,
bool
off);
248
249
250
protected
:
253
265
std::string
getFileName
(
const
SUMOSAXAttributes
& attrs,
266
const
std::string& base,
267
const
bool
allowEmpty =
false
);
268
269
281
MSLane
*
getLane
(
const
SUMOSAXAttributes
& attrs,
282
const
std::string& tt,
const
std::string& tid);
283
284
298
SUMOReal
getPosition
(
const
SUMOSAXAttributes
& attrs,
299
MSLane
* lane,
const
std::string& tt,
const
std::string& tid);
301
302
303
protected
:
305
NLHandler
*
myHandler
;
306
307
308
};
309
310
311
#endif
312
313
/****************************************************************************/
314
tmp
buildd
sumo-0.21.0+dfsg
src
netload
NLTriggerBuilder.h
Generated on Thu Nov 20 2014 19:49:57 for SUMO - Simulation of Urban MObility by
1.8.1.2