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
/****************************************************************************/
8
// A device which collects info on the vehicle trip
9
/****************************************************************************/
10
// SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
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 MSDevice_Tripinfo_h
22
#define MSDevice_Tripinfo_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 "
MSDevice.h
"
35
#include <
utils/common/SUMOTime.h
>
36
37
// ===========================================================================
38
// class declarations
39
// ===========================================================================
40
class
SUMOVehicle
;
41
42
// ===========================================================================
43
// class definitions
44
// ===========================================================================
53
class
MSDevice_Tripinfo
:
public
MSDevice
{
54
public
:
65
static
void
buildVehicleDevices
(
SUMOVehicle
& v, std::vector<MSDevice*>& into);
66
67
68
69
public
:
71
~MSDevice_Tripinfo
();
72
73
74
77
86
bool
notifyMove
(
SUMOVehicle
& veh,
SUMOReal
oldPos,
SUMOReal
newPos,
SUMOReal
newSpeed);
87
88
97
bool
notifyEnter
(
SUMOVehicle
& veh,
MSMoveReminder::Notification
reason);
98
99
108
bool
notifyLeave
(
SUMOVehicle
& veh,
SUMOReal
lastPos,
MSMoveReminder::Notification
reason);
110
111
112
119
void
generateOutput
()
const
;
120
121
122
123
private
:
129
MSDevice_Tripinfo
(
SUMOVehicle
& holder,
const
std::string&
id
);
130
131
133
MSDevice_Tripinfo
();
134
135
136
private
:
138
std::string
myDepartLane
;
139
141
SUMOReal
myDepartPos
;
142
144
SUMOReal
myDepartSpeed
;
145
147
unsigned
int
myWaitingSteps
;
148
150
SUMOTime
myArrivalTime
;
151
153
std::string
myArrivalLane
;
154
156
SUMOReal
myArrivalPos
;
157
159
SUMOReal
myArrivalSpeed
;
160
161
162
163
private
:
165
MSDevice_Tripinfo
(
const
MSDevice_Tripinfo
&);
166
168
MSDevice_Tripinfo
&
operator=
(
const
MSDevice_Tripinfo
&);
169
170
171
};
172
173
174
#endif
175
176
/****************************************************************************/
177
home
delphi
sumo
src
microsim
devices
MSDevice_Tripinfo.h
Generated by
1.8.2