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_Person.h
Go to the documentation of this file.
1
/****************************************************************************/
9
// A device which is used to keep track of Persons riding with a vehicle
10
/****************************************************************************/
11
// SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
12
// Copyright (C) 2001-2012 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_Person_h
23
#define MSDevice_Person_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 <set>
36
#include <vector>
37
#include <map>
38
#include "
MSDevice.h
"
39
#include <
utils/common/SUMOTime.h
>
40
#include <
microsim/MSVehicle.h
>
41
#include <
utils/common/WrappingCommand.h
>
42
43
44
// ===========================================================================
45
// class declarations
46
// ===========================================================================
47
class
MSLane
;
48
49
50
// ===========================================================================
51
// class definitions
52
// ===========================================================================
57
class
MSDevice_Person
:
public
MSDevice
{
58
public
:
66
static
MSDevice_Person
*
buildVehicleDevices
(
SUMOVehicle
& v, std::vector<MSDevice*> &into) ;
67
68
69
public
:
72
83
bool
notifyMove
(
SUMOVehicle
& veh,
SUMOReal
oldPos,
SUMOReal
newPos,
SUMOReal
newSpeed) ;
84
85
94
bool
notifyEnter
(
SUMOVehicle
& veh,
MSMoveReminder::Notification
reason) ;
95
96
106
bool
notifyLeave
(
SUMOVehicle
& veh,
SUMOReal
lastPos,
107
MSMoveReminder::Notification
reason) ;
109
110
115
void
addPerson
(
MSPerson
* person) ;
116
117
119
~MSDevice_Person
() ;
120
121
private
:
127
MSDevice_Person
(
SUMOVehicle
& holder,
const
std::string&
id
) ;
128
129
130
private
:
132
std::vector<MSPerson*>
myPersons
;
133
135
bool
myStopped
;
136
137
138
private
:
140
MSDevice_Person
(
const
MSDevice_Person
&);
141
143
MSDevice_Person
&
operator=
(
const
MSDevice_Person
&);
144
145
146
};
147
148
149
#endif
150
151
/****************************************************************************/
152
var
build
temp
tmp.znCyBrHNjL
4.0-0-0
sumo
sumo-0.15.0~dfsg
src
microsim
devices
MSDevice_Person.h
Generated on Mon Mar 24 2014 09:53:10 for SUMO - Simulation of Urban MObility by
1.8.1.2