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
NWWriter_DlrNavteq.h
Go to the documentation of this file.
1
/****************************************************************************/
8
// Exporter writing networks using DlrNavteq (Elmar) format
9
/****************************************************************************/
10
// SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
11
// Copyright (C) 2012-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 NWWriter_DlrNavteq_h
22
#define NWWriter_DlrNavteq_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 <
utils/xml/SUMOSAXHandler.h
>
37
#include <
utils/common/UtilExceptions.h
>
38
39
40
// ===========================================================================
41
// class declarations
42
// ===========================================================================
43
class
NBEdge
;
44
class
NBEdgeCont
;
45
class
NBNetBuilder
;
46
class
NBNode
;
47
class
NBNodeCont
;
48
class
NBTrafficLightLogicCont
;
49
class
NBTypeCont
;
50
class
OptionsCont
;
51
52
53
// ===========================================================================
54
// class definitions
55
// ===========================================================================
61
class
NWWriter_DlrNavteq
{
62
public
:
68
static
void
writeNetwork
(
const
OptionsCont
& oc,
NBNetBuilder
& nb);
69
71
static
int
getRoadClass
(
NBEdge
* edge);
72
73
private
:
79
static
void
writeNodesUnsplitted
(
const
OptionsCont
& oc,
NBNodeCont
& nc,
NBEdgeCont
& ec);
80
86
static
void
writeLinksUnsplitted
(
const
OptionsCont
& oc,
NBEdgeCont
& ec);
87
92
static
void
writeTrafficSignals
(
const
OptionsCont
& oc,
NBNodeCont
& nc);
93
94
96
static
void
writeHeader
(
OutputDevice
& device,
const
OptionsCont
& oc);
97
99
static
std::string
getAllowedTypes
(
SVCPermissions
permissions);
100
102
static
int
getSpeedCategory
(
int
kph);
103
105
static
int
getSpeedCategoryUpperBound
(
int
kph);
106
108
static
unsigned
int
getNavteqLaneCode
(
const
unsigned
int
numLanes);
109
111
static
SUMOReal
getGraphLength
(
NBEdge
* edge);
112
114
static
const
std::string
UNDEFINED
;
115
117
static
inline
int
speedInKph
(
SUMOReal
metersPerSecond) {
118
return
(
int
)std::floor(metersPerSecond * 3.6 + 0.5);
119
}
120
};
121
122
123
#endif
124
125
/****************************************************************************/
126
tmp
buildd
sumo-0.21.0+dfsg
src
netwrite
NWWriter_DlrNavteq.h
Generated on Thu Nov 20 2014 19:49:58 for SUMO - Simulation of Urban MObility by
1.8.1.2