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
ROJTREdge.h
Go to the documentation of this file.
1
/****************************************************************************/
9
// An edge the jtr-router may route through
10
/****************************************************************************/
11
// SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
12
// Copyright (C) 2004-2014 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 ROJTREdge_h
23
#define ROJTREdge_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 <string>
36
#include <map>
37
#include <vector>
38
#include <
utils/common/ValueTimeLine.h
>
39
#include <
router/ROEdge.h
>
40
41
42
// ===========================================================================
43
// class declarations
44
// ===========================================================================
45
class
ROLane
;
46
47
48
// ===========================================================================
49
// class definitions
50
// ===========================================================================
58
class
ROJTREdge
:
public
ROEdge
{
59
public
:
67
ROJTREdge
(
const
std::string&
id
,
RONode
* from,
RONode
* to,
unsigned
int
index,
const
int
priority);
68
69
71
~ROJTREdge
();
72
73
84
void
addFollower
(
ROEdge
* s, std::string dir =
""
);
85
86
94
void
addFollowerProbability
(
ROJTREdge
* follower,
95
SUMOTime
begTime,
SUMOTime
endTime,
SUMOReal
probability);
96
97
103
ROJTREdge
*
chooseNext
(
const
ROVehicle
*
const
veh,
SUMOTime
time)
const
;
104
105
109
void
setTurnDefaults
(
const
std::vector<SUMOReal>& defs);
110
111
112
private
:
114
typedef
std::map<ROJTREdge*, ValueTimeLine<SUMOReal>*,
Named::ComparatorIdLess
>
FollowerUsageCont
;
115
117
FollowerUsageCont
myFollowingDefs
;
118
120
std::vector<SUMOReal>
myParsedTurnings
;
121
122
123
private
:
125
ROJTREdge
(
const
ROJTREdge
& src);
126
128
ROJTREdge
&
operator=
(
const
ROJTREdge
& src);
129
130
131
};
132
133
134
#endif
135
136
/****************************************************************************/
137
tmp
buildd
sumo-0.21.0+dfsg
src
jtrrouter
ROJTREdge.h
Generated on Thu Nov 20 2014 19:49:58 for SUMO - Simulation of Urban MObility by
1.8.1.2