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
RORouteDef_Complete.h
Go to the documentation of this file.
1
/****************************************************************************/
8
// A complete route definition (with all passed edges being known)
9
/****************************************************************************/
10
// SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
11
// Copyright (C) 2001-2012 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 RORouteDef_Complete_h
22
#define RORouteDef_Complete_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 "
RORouteDef.h
"
36
#include <
utils/common/RGBColor.h
>
37
38
39
// ===========================================================================
40
// class declarations
41
// ===========================================================================
42
class
ROEdge
;
43
class
RORoute
;
44
class
ROVehicle
;
45
class
OutputDevice
;
46
47
48
// ===========================================================================
49
// class definitions
50
// ===========================================================================
55
class
RORouteDef_Complete
:
56
public
RORouteDef
{
57
public
:
59
RORouteDef_Complete
(
const
std::string&
id
,
const
RGBColor
*
const
color,
60
const
std::vector<const ROEdge*> &edges,
61
bool
tryRepair) ;
62
64
virtual
~RORouteDef_Complete
() ;
65
67
void
preComputeCurrentRoute
(
SUMOAbstractRouter<ROEdge, ROVehicle>
&router,
SUMOTime
begin,
68
const
ROVehicle
& veh)
const
;
69
74
void
addAlternative
(
SUMOAbstractRouter<ROEdge, ROVehicle>
&router,
75
const
ROVehicle
*
const
,
RORoute
* current,
SUMOTime
begin);
76
78
RORouteDef
*
copy
(
const
std::string&
id
)
const
;
79
80
virtual
OutputDevice
&
writeXMLDefinition
(
SUMOAbstractRouter<ROEdge, ROVehicle>
&router,
81
OutputDevice
& dev,
const
ROVehicle
*
const
veh,
bool
asAlternatives,
bool
withExitTimes)
const
;
82
83
/* @brief Returns destination of this route definition */
84
const
ROEdge
*
getDestination
()
const
;
85
86
protected
:
88
mutable
std::vector<const ROEdge*>
myEdges
;
89
91
SUMOTime
myStartTime
;
92
93
bool
myTryRepair
;
94
95
96
private
:
98
RORouteDef_Complete
(
const
RORouteDef_Complete
& src);
99
101
RORouteDef_Complete
&
operator=
(
const
RORouteDef_Complete
& src);
102
103
};
104
105
106
#endif
107
108
/****************************************************************************/
109
var
build
temp
tmp.znCyBrHNjL
4.0-0-0
sumo
sumo-0.15.0~dfsg
src
router
RORouteDef_Complete.h
Generated on Mon Mar 24 2014 09:53:14 for SUMO - Simulation of Urban MObility by
1.8.1.2