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
MSDevice_Tripinfo.h
Go to the documentation of this file.
1
/****************************************************************************/
9
// A device which collects info on the vehicle trip
10
/****************************************************************************/
11
// SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
12
// Copyright (C) 2009-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 MSDevice_Tripinfo_h
23
#define MSDevice_Tripinfo_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 "
MSDevice.h
"
36
#include <
utils/common/SUMOTime.h
>
37
38
// ===========================================================================
39
// class declarations
40
// ===========================================================================
41
class
SUMOVehicle
;
42
43
// ===========================================================================
44
// class definitions
45
// ===========================================================================
54
class
MSDevice_Tripinfo
:
public
MSDevice
{
55
public
:
66
static
void
buildVehicleDevices
(
SUMOVehicle
& v, std::vector<MSDevice*>& into);
67
68
69
70
public
:
72
~MSDevice_Tripinfo
();
73
74
75
78
87
bool
notifyMove
(
SUMOVehicle
& veh,
SUMOReal
oldPos,
SUMOReal
newPos,
SUMOReal
newSpeed);
88
89
98
bool
notifyEnter
(
SUMOVehicle
& veh,
MSMoveReminder::Notification
reason);
99
100
109
bool
notifyLeave
(
SUMOVehicle
& veh,
SUMOReal
lastPos,
MSMoveReminder::Notification
reason);
111
112
113
120
void
generateOutput
()
const
;
121
122
123
124
private
:
130
MSDevice_Tripinfo
(
SUMOVehicle
& holder,
const
std::string&
id
);
131
132
134
MSDevice_Tripinfo
();
135
136
137
private
:
139
std::string
myDepartLane
;
140
142
SUMOReal
myDepartPos
;
143
145
SUMOReal
myDepartSpeed
;
146
148
unsigned
int
myWaitingSteps
;
149
151
SUMOTime
myArrivalTime
;
152
154
std::string
myArrivalLane
;
155
157
SUMOReal
myArrivalPos
;
158
160
SUMOReal
myArrivalSpeed
;
161
162
163
164
private
:
166
MSDevice_Tripinfo
(
const
MSDevice_Tripinfo
&);
167
169
MSDevice_Tripinfo
&
operator=
(
const
MSDevice_Tripinfo
&);
170
171
172
};
173
174
175
#endif
176
177
/****************************************************************************/
178
tmp
buildd
sumo-0.21.0+dfsg
src
microsim
devices
MSDevice_Tripinfo.h
Generated on Thu Nov 20 2014 19:49:55 for SUMO - Simulation of Urban MObility by
1.8.1.2