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
/****************************************************************************/
7
// Exporter writing networks using DlrNavteq (Elmar) format
8
/****************************************************************************/
9
// SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
10
// Copyright (C) 2001-2013 DLR (http://www.dlr.de/) and contributors
11
/****************************************************************************/
12
//
13
// This file is part of SUMO.
14
// SUMO is free software: you can redistribute it and/or modify
15
// it under the terms of the GNU General Public License as published by
16
// the Free Software Foundation, either version 3 of the License, or
17
// (at your option) any later version.
18
//
19
/****************************************************************************/
20
#ifndef NWWriter_DlrNavteq_h
21
#define NWWriter_DlrNavteq_h
22
23
24
// ===========================================================================
25
// included modules
26
// ===========================================================================
27
#ifdef _MSC_VER
28
#include <
windows_config.h
>
29
#else
30
#include <
config.h
>
31
#endif
32
33
#include <string>
34
#include <map>
35
#include <
utils/xml/SUMOSAXHandler.h
>
36
#include <
utils/common/UtilExceptions.h
>
37
38
39
// ===========================================================================
40
// class declarations
41
// ===========================================================================
42
class
NBEdge
;
43
class
NBEdgeCont
;
44
class
NBNetBuilder
;
45
class
NBNode
;
46
class
NBNodeCont
;
47
class
NBTrafficLightLogicCont
;
48
class
NBTypeCont
;
49
class
OptionsCont
;
50
51
52
// ===========================================================================
53
// class definitions
54
// ===========================================================================
60
class
NWWriter_DlrNavteq
{
61
public
:
67
static
void
writeNetwork
(
const
OptionsCont
& oc,
NBNetBuilder
& nb);
68
69
private
:
75
static
void
writeNodesUnsplitted
(
const
OptionsCont
& oc,
NBNodeCont
& nc,
NBEdgeCont
& ec);
76
82
static
void
writeLinksUnsplitted
(
const
OptionsCont
& oc,
NBEdgeCont
& ec);
83
88
static
void
writeTrafficSignals
(
const
OptionsCont
& oc,
NBNodeCont
& nc);
89
90
92
static
void
writeHeader
(
OutputDevice
& device,
const
OptionsCont
& oc);
93
95
static
std::string
getAllowedTypes
(
SVCPermissions
permissions);
96
98
static
int
getRoadClass
(
NBEdge
* edge);
99
101
static
int
getSpeedCategory
(
int
kph);
102
104
static
int
getSpeedCategoryUpperBound
(
int
kph);
105
107
static
unsigned
int
getNavteqLaneCode
(
const
unsigned
int
numLanes);
108
110
static
SUMOReal
getGraphLength
(
NBEdge
* edge);
111
113
static
const
std::string
UNDEFINED
;
114
116
static
inline
int
speedInKph
(
SUMOReal
metersPerSecond) {
117
return
(
int
)std::floor(metersPerSecond * 3.6 + 0.5);
118
}
119
};
120
121
122
#endif
123
124
/****************************************************************************/
125
build
buildd
sumo-0.18~dfsg
src
netwrite
NWWriter_DlrNavteq.h
Generated on Wed Oct 23 2013 01:15:11 for SUMO - Simulation of Urban MObility by
1.8.4