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
NGEdge.h
Go to the documentation of this file.
1
/****************************************************************************/
9
// A netgen-representation of an edge
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 NGNetElements_h
23
#define NGNetElements_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 <list>
36
#include <
utils/common/UtilExceptions.h
>
37
#include <
utils/geom/Position.h
>
38
#include <
utils/geom/GeomHelper.h
>
39
40
41
// ===========================================================================
42
// class declarations
43
// ===========================================================================
44
class
NGNode
;
45
class
NBNode
;
46
class
NBEdge
;
47
class
NBNetBuilder
;
48
49
50
// ===========================================================================
51
// class definitions
52
// ===========================================================================
61
class
NGEdge
{
62
public
:
71
NGEdge
(
const
std::string&
id
,
NGNode
* startNode,
NGNode
* endNode) ;
72
73
78
~NGEdge
() ;
79
80
85
const
std::string&
getID
()
const
{
86
return
myID
;
87
}
88
89
94
NGNode
*
getStartNode
() {
95
return
myStartNode
;
96
};
97
98
103
NGNode
*
getEndNode
() {
104
return
myEndNode
;
105
};
106
107
117
NBEdge
*
buildNBEdge
(
NBNetBuilder
& nb)
const
;
118
119
120
private
:
122
std::string
myID
;
123
125
NGNode
*
myStartNode
;
126
128
NGNode
*
myEndNode
;
129
130
};
131
132
137
typedef
std::list<NGEdge*>
NGEdgeList
;
138
139
#endif
140
141
/****************************************************************************/
142
tmp
buildd
sumo-0.15.0~dfsg
src
netgen
NGEdge.h
Generated on Sun May 27 2012 14:52:08 for SUMO - Simulation of Urban MObility by
1.8.1