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
ROVehicle.h
Go to the documentation of this file.
1
/****************************************************************************/
8
// A vehicle as used by router
9
/****************************************************************************/
10
// SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
11
// Copyright (C) 2001-2013 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 ROVehicle_h
22
#define ROVehicle_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 <iostream>
36
#include <
utils/common/SUMOTime.h
>
37
#include <
utils/common/SUMOVehicleParameter.h
>
38
#include <
utils/common/SUMOVTypeParameter.h
>
39
#include <
utils/common/UtilExceptions.h
>
40
41
42
// ===========================================================================
43
// class declarations
44
// ===========================================================================
45
class
RORouteDef
;
46
class
OutputDevice
;
47
class
ROEdge
;
48
49
50
// ===========================================================================
51
// class definitions
52
// ===========================================================================
57
class
ROVehicle
{
58
public
:
65
ROVehicle
(
const
SUMOVehicleParameter
& pars,
66
RORouteDef
* route,
const
SUMOVTypeParameter
* type);
67
68
70
virtual
~ROVehicle
();
71
72
79
RORouteDef
*
getRouteDefinition
()
const
{
80
return
myRoute
;
81
}
82
83
90
const
SUMOVTypeParameter
*
getType
()
const
{
91
return
myType
;
92
}
93
94
99
const
std::string&
getID
()
const
{
100
return
myParameter
.
id
;
101
}
102
103
108
SUMOTime
getDepartureTime
()
const
{
109
return
myParameter
.
depart
;
110
}
111
112
114
SUMOReal
getMaxSpeed
()
const
;
115
116
117
inline
SUMOVehicleClass
getVClass
()
const
{
118
return
getType
() != 0 ?
getType
()->
vehicleClass
:
DEFAULT_VEH_CLASS
;
119
}
120
121
134
void
saveAllAsXML
(
OutputDevice
& os,
OutputDevice
*
const
altos,
135
OutputDevice
*
const
typeos,
bool
withExitTimes)
const
;
136
137
147
virtual
ROVehicle
*
copy
(
const
std::string&
id
,
unsigned
int
depTime,
RORouteDef
* newRoute)
const
;
148
149
150
protected
:
152
SUMOVehicleParameter
myParameter
;
153
155
const
SUMOVTypeParameter
*
const
myType
;
156
158
RORouteDef
*
const
myRoute
;
159
160
161
private
:
163
ROVehicle
(
const
ROVehicle
& src);
164
166
ROVehicle
&
operator=
(
const
ROVehicle
& src);
167
168
};
169
170
171
#endif
172
173
/****************************************************************************/
174
build
buildd
sumo-0.17.1~dfsg
src
router
ROVehicle.h
Generated on Sun Jun 16 2013 17:30:19 for SUMO - Simulation of Urban MObility by
1.8.3.1