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
NLBuilder.h
Go to the documentation of this file.
1
/****************************************************************************/
8
// The main interface for loading a microsim
9
/****************************************************************************/
10
// SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
11
// Copyright (C) 2001-2014 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 NLBuilder_h
22
#define NLBuilder_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 <string>
35
#include <map>
36
#include <vector>
37
#include <
utils/xml/SAXWeightsHandler.h
>
38
#include <
microsim/MSNet.h
>
39
40
41
// ===========================================================================
42
// class declarations
43
// ===========================================================================
44
class
MSNet
;
45
class
NLContainer;
46
class
MSJunctionLogic
;
47
class
MSDetectorControl
;
48
class
OptionsCont
;
49
class
NLHandler
;
50
class
NLEdgeControlBuilder
;
51
class
NLJunctionControlBuilder
;
52
class
NLDetectorBuilder
;
53
class
NLTriggerBuilder
;
54
class
SUMORouteLoader
;
55
56
57
// ===========================================================================
58
// class definitions
59
// ===========================================================================
68
class
NLBuilder
{
69
public
:
80
NLBuilder
(
OptionsCont
& oc,
MSNet
& net,
81
NLEdgeControlBuilder
& eb,
NLJunctionControlBuilder
& jb,
82
NLDetectorBuilder
& db,
83
NLHandler
& xmlHandler);
84
85
87
virtual
~NLBuilder
();
88
89
101
virtual
bool
build
();
102
103
104
protected
:
113
bool
load
(
const
std::string& mmlWhat,
const
bool
isNet =
false
);
114
115
124
void
buildNet
();
125
126
135
SUMORouteLoaderControl
*
buildRouteLoaderControl
(
const
OptionsCont
& oc);
136
137
138
139
145
class
EdgeFloatTimeLineRetriever_EdgeEffort
:
public
SAXWeightsHandler::EdgeFloatTimeLineRetriever
{
146
public
:
148
EdgeFloatTimeLineRetriever_EdgeEffort
(
MSNet
& net) :
myNet
(net) {}
149
151
~EdgeFloatTimeLineRetriever_EdgeEffort
() { }
152
161
void
addEdgeWeight
(
const
std::string&
id
,
162
SUMOReal
val,
SUMOReal
beg,
SUMOReal
end)
const
;
163
164
private
:
166
MSNet
&
myNet
;
167
168
};
169
170
176
class
EdgeFloatTimeLineRetriever_EdgeTravelTime
:
public
SAXWeightsHandler::EdgeFloatTimeLineRetriever
{
177
public
:
179
EdgeFloatTimeLineRetriever_EdgeTravelTime
(
MSNet
& net) :
myNet
(net) {}
180
182
~EdgeFloatTimeLineRetriever_EdgeTravelTime
() { }
183
192
void
addEdgeWeight
(
const
std::string&
id
,
193
SUMOReal
val,
SUMOReal
beg,
SUMOReal
end)
const
;
194
195
private
:
197
MSNet
&
myNet
;
198
199
};
200
201
202
protected
:
204
OptionsCont
&
myOptions
;
205
207
NLEdgeControlBuilder
&
myEdgeBuilder
;
208
210
NLJunctionControlBuilder
&
myJunctionBuilder
;
211
213
NLDetectorBuilder
&
myDetectorBuilder
;
214
216
MSNet
&
myNet
;
217
219
NLHandler
&
myXMLHandler
;
220
221
222
private
:
224
NLBuilder
(
const
NLBuilder
& s);
225
227
NLBuilder
&
operator=
(
const
NLBuilder
& s);
228
229
};
230
231
232
#endif
233
234
/****************************************************************************/
235
tmp
buildd
sumo-0.21.0+dfsg
src
netload
NLBuilder.h
Generated on Thu Nov 20 2014 19:49:57 for SUMO - Simulation of Urban MObility by
1.8.1.2