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
MSCFModel_PWag2009.h
Go to the documentation of this file.
1
/****************************************************************************/
8
// Scalable model based on Krauß by Peter Wagner
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 MSCFModel_PWag2009_h
22
#define MSCFModel_PWag2009_h
23
24
// ===========================================================================
25
// included modules
26
// ===========================================================================
27
#ifdef _MSC_VER
28
#include <
windows_config.h
>
29
#else
30
#include <
config.h
>
31
#endif
32
33
#include <
microsim/MSCFModel.h
>
34
#include <
utils/xml/SUMOXMLDefinitions.h
>
35
36
37
// ===========================================================================
38
// class definitions
39
// ===========================================================================
44
class
MSCFModel_PWag2009
:
public
MSCFModel
{
45
public
:
52
MSCFModel_PWag2009
(
const
MSVehicleType
* vtype,
SUMOReal
accel,
SUMOReal
decel,
SUMOReal
dawdle
,
53
SUMOReal
headwayTime,
SUMOReal
tauLast,
SUMOReal
apProb);
54
55
57
~MSCFModel_PWag2009
();
58
59
62
68
SUMOReal
moveHelper
(
MSVehicle
*
const
veh,
SUMOReal
vPos)
const
;
69
70
79
SUMOReal
followSpeed
(
const
MSVehicle
*
const
veh,
SUMOReal
speed,
SUMOReal
gap2pred,
SUMOReal
predSpeed,
SUMOReal
predMaxDecel)
const
;
80
81
89
SUMOReal
stopSpeed
(
const
MSVehicle
*
const
veh,
SUMOReal
gap2pred)
const
;
90
91
96
int
getModelID
()
const
{
97
return
SUMO_TAG_CF_PWAGNER2009
;
98
}
99
100
104
SUMOReal
getImperfection
()
const
{
105
return
myDawdle
;
106
}
108
109
110
115
MSCFModel
*
duplicate
(
const
MSVehicleType
* vtype)
const
;
116
117
118
virtual
MSCFModel::VehicleVariables
*
createVehicleVariables
()
const
{
119
VehicleVariables
* ret =
new
VehicleVariables
();
120
ret->
aOld
= 0.0;
121
return
ret;
122
}
123
124
125
private
:
126
class
VehicleVariables
:
public
MSCFModel::VehicleVariables
{
127
public
:
128
SUMOReal
aOld
;
129
};
130
136
SUMOReal
_v
(
const
MSVehicle
*
const
veh,
SUMOReal
speed,
SUMOReal
gap,
SUMOReal
predSpeed)
const
;
137
138
143
SUMOReal
dawdle
(
SUMOReal
speed)
const
;
144
145
private
:
149
SUMOReal
myDawdle
;
150
152
SUMOReal
myTauDecel
;
153
155
SUMOReal
myDecelDivTau
;
156
158
SUMOReal
myTauLastDecel
;
159
161
SUMOReal
myActionPointProbability
;
163
164
};
165
166
#endif
/* MSCFModel_PWag2009_H */
home
gladk
tmp
05
sumo-0.17.1~dfsg
src
microsim
cfmodels
MSCFModel_PWag2009.h
Generated on Sun Jun 16 2013 07:07:29 for SUMO - Simulation of Urban MObility by
1.8.1.2