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
MSJunction.h
Go to the documentation of this file.
1
/****************************************************************************/
10
// The base class for an intersection
11
/****************************************************************************/
12
// SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
13
// Copyright (C) 2001-2013 DLR (http://www.dlr.de/) and contributors
14
/****************************************************************************/
15
//
16
// This file is part of SUMO.
17
// SUMO is free software: you can redistribute it and/or modify
18
// it under the terms of the GNU General Public License as published by
19
// the Free Software Foundation, either version 3 of the License, or
20
// (at your option) any later version.
21
//
22
/****************************************************************************/
23
#ifndef MSJunction_h
24
#define MSJunction_h
25
26
27
// ===========================================================================
28
// included modules
29
// ===========================================================================
30
#ifdef _MSC_VER
31
#include <
windows_config.h
>
32
#else
33
#include <
config.h
>
34
#endif
35
36
#include <string>
37
#include <vector>
38
#include <map>
39
#include <
utils/geom/Position.h
>
40
#include <
utils/geom/PositionVector.h
>
41
#include <
utils/common/Named.h
>
42
#include <
utils/common/SUMOTime.h
>
43
#include <
utils/common/UtilExceptions.h
>
44
45
46
class
MSVehicle
;
47
class
MSLink
;
48
class
MSLane
;
49
50
// ===========================================================================
51
// class definitions
52
// ===========================================================================
57
class
MSJunction
:
public
Named
{
58
public
:
64
MSJunction
(
const
std::string&
id
,
const
Position
& position,
65
const
PositionVector
& shape);
66
67
69
virtual
~MSJunction
();
70
71
74
virtual
void
postloadInit
();
75
76
78
const
Position
&
getPosition
()
const
;
79
80
84
const
PositionVector
&
getShape
()
const
{
85
return
myShape
;
86
}
87
88
virtual
const
std::vector<MSLink*>&
getFoeLinks
(
const
MSLink
*
const
/*srcLink*/
)
const
{
89
return
myEmptyLinks
;
90
}
91
92
virtual
const
std::vector<MSLane*>&
getFoeInternalLanes
(
const
MSLink
*
const
/*srcLink*/
)
const
{
93
return
myEmptyLanes
;
94
}
95
96
protected
:
98
Position
myPosition
;
99
101
PositionVector
myShape
;
102
103
std::vector<MSLink*>
myEmptyLinks
;
104
std::vector<MSLane*>
myEmptyLanes
;
105
106
107
108
109
private
:
111
MSJunction
(
const
MSJunction
&);
112
114
MSJunction
&
operator=
(
const
MSJunction
&);
115
116
};
117
118
119
#endif
120
121
/****************************************************************************/
122
build
buildd
sumo-0.17.1~dfsg
src
microsim
MSJunction.h
Generated on Sun Jun 16 2013 17:30:16 for SUMO - Simulation of Urban MObility by
1.8.3.1