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
/****************************************************************************/
9
// A vehicle as used by router
10
/****************************************************************************/
11
// SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
12
// Copyright (C) 2002-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 ROVehicle_h
23
#define ROVehicle_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 <iostream>
37
#include <
utils/common/SUMOTime.h
>
38
#include <
utils/common/SUMOVehicleParameter.h
>
39
#include <
utils/common/SUMOVTypeParameter.h
>
40
#include <
utils/common/UtilExceptions.h
>
41
42
43
// ===========================================================================
44
// class declarations
45
// ===========================================================================
46
class
RORouteDef
;
47
class
OutputDevice
;
48
class
ROEdge
;
49
class
RONet
;
50
51
52
// ===========================================================================
53
// class definitions
54
// ===========================================================================
59
class
ROVehicle
{
60
public
:
67
ROVehicle
(
const
SUMOVehicleParameter
& pars,
68
RORouteDef
* route,
const
SUMOVTypeParameter
* type,
69
const
RONet
* net);
70
71
73
virtual
~ROVehicle
();
74
75
82
RORouteDef
*
getRouteDefinition
()
const
{
83
return
myRoute
;
84
}
85
86
93
const
SUMOVTypeParameter
*
getType
()
const
{
94
return
myType
;
95
}
96
97
102
const
std::string&
getID
()
const
{
103
return
myParameter
.
id
;
104
}
105
106
111
SUMOTime
getDepartureTime
()
const
{
112
return
myParameter
.
depart
;
113
}
114
115
const
std::vector<const ROEdge*>&
getStopEdges
()
const
{
116
return
myStopEdges
;
117
}
118
120
SUMOReal
getMaxSpeed
()
const
;
121
122
123
inline
SUMOVehicleClass
getVClass
()
const
{
124
return
getType
() != 0 ?
getType
()->
vehicleClass
:
SVC_IGNORING
;
125
}
126
127
140
void
saveAllAsXML
(
OutputDevice
& os,
OutputDevice
*
const
altos,
141
OutputDevice
*
const
typeos,
bool
withExitTimes)
const
;
142
143
144
private
:
150
void
addStop
(
const
SUMOVehicleParameter::Stop
& stopPar,
const
RONet
* net);
151
152
153
protected
:
155
SUMOVehicleParameter
myParameter
;
156
158
const
SUMOVTypeParameter
*
const
myType
;
159
161
RORouteDef
*
const
myRoute
;
162
164
std::vector<const ROEdge*>
myStopEdges
;
165
166
167
private
:
169
ROVehicle
(
const
ROVehicle
& src);
170
172
ROVehicle
&
operator=
(
const
ROVehicle
& src);
173
174
};
175
176
177
#endif
178
179
/****************************************************************************/
180
tmp
buildd
sumo-0.21.0+dfsg
src
router
ROVehicle.h
Generated on Thu Nov 20 2014 19:49:59 for SUMO - Simulation of Urban MObility by
1.8.1.2