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_OrigDest.h
Go to the documentation of this file.
1
/****************************************************************************/
8
// A route where only the origin and the destination edges are 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_OrigDest_h
22
#define RORouteDef_OrigDest_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
45
46
// ===========================================================================
47
// class definitions
48
// ===========================================================================
53
class
RORouteDef_OrigDest
54
:
public
RORouteDef
{
55
public
:
57
RORouteDef_OrigDest
(
const
std::string&
id
,
const
RGBColor
*
const
color,
58
const
ROEdge
* from,
const
ROEdge
* to,
bool
removeFirst =
false
) ;
59
61
virtual
~RORouteDef_OrigDest
() ;
62
64
void
preComputeCurrentRoute
(
SUMOAbstractRouter<ROEdge, ROVehicle>
&router,
SUMOTime
begin,
65
const
ROVehicle
& veh)
const
;
66
70
void
addAlternative
(
SUMOAbstractRouter<ROEdge, ROVehicle>
&router,
71
const
ROVehicle
*
const
,
RORoute
* current,
SUMOTime
begin);
72
74
RORouteDef
*
copy
(
const
std::string&
id
)
const
;
75
76
virtual
OutputDevice
&
writeXMLDefinition
(
SUMOAbstractRouter<ROEdge, ROVehicle>
&router,
77
OutputDevice
& dev,
const
ROVehicle
*
const
veh,
bool
asAlternatives,
bool
withExitTimes)
const
;
78
79
80
/* @brief Returns destination of this route definition */
81
const
ROEdge
*
getDestination
()
const
;
82
83
protected
:
85
const
ROEdge
*
myFrom
, *
myTo
;
86
88
RORoute
*
myCurrent
;
89
91
SUMOTime
myStartTime
;
92
95
bool
myRemoveFirst
;
96
97
98
private
:
100
RORouteDef_OrigDest
(
const
RORouteDef_OrigDest
& src);
101
103
RORouteDef_OrigDest
&
operator=
(
const
RORouteDef_OrigDest
& src);
104
105
};
106
107
108
#endif
109
110
/****************************************************************************/
111
build
buildd
sumo-0.15.0~dfsg
src
router
RORouteDef_OrigDest.h
Generated on Wed Jul 18 2012 22:58:36 for SUMO - Simulation of Urban MObility by
1.8.1.1