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
/****************************************************************************/
9
// Scalable model based on Krauß by Peter Wagner
10
/****************************************************************************/
11
// SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
12
// Copyright (C) 2010-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 MSCFModel_PWag2009_h
23
#define MSCFModel_PWag2009_h
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 "
MSCFModel.h
"
35
#include <
utils/xml/SUMOXMLDefinitions.h
>
36
37
38
// ===========================================================================
39
// class definitions
40
// ===========================================================================
45
class
MSCFModel_PWag2009
:
public
MSCFModel
{
46
public
:
53
MSCFModel_PWag2009
(
const
MSVehicleType
* vtype,
SUMOReal
accel,
SUMOReal
decel,
SUMOReal
dawdle
,
54
SUMOReal
headwayTime,
SUMOReal
tauLast,
SUMOReal
apProb);
55
56
58
~MSCFModel_PWag2009
();
59
60
63
69
SUMOReal
moveHelper
(
MSVehicle
*
const
veh,
SUMOReal
vPos)
const
;
70
71
80
SUMOReal
followSpeed
(
const
MSVehicle
*
const
veh,
SUMOReal
speed,
SUMOReal
gap2pred,
SUMOReal
predSpeed,
SUMOReal
predMaxDecel)
const
;
81
82
90
SUMOReal
stopSpeed
(
const
MSVehicle
*
const
veh,
const
SUMOReal
speed,
SUMOReal
gap2pred)
const
;
91
92
97
int
getModelID
()
const
{
98
return
SUMO_TAG_CF_PWAGNER2009
;
99
}
100
101
105
SUMOReal
getImperfection
()
const
{
106
return
myDawdle
;
107
}
109
110
111
116
MSCFModel
*
duplicate
(
const
MSVehicleType
* vtype)
const
;
117
118
119
virtual
MSCFModel::VehicleVariables
*
createVehicleVariables
()
const
{
120
VehicleVariables
* ret =
new
VehicleVariables
();
121
ret->aOld = 0.0;
122
return
ret;
123
}
124
125
126
private
:
127
class
VehicleVariables
:
public
MSCFModel::VehicleVariables
{
128
public
:
129
SUMOReal
aOld
;
130
};
131
137
SUMOReal
_v
(
const
MSVehicle
*
const
veh,
SUMOReal
speed,
SUMOReal
gap,
SUMOReal
predSpeed)
const
;
138
139
144
SUMOReal
dawdle
(
SUMOReal
speed)
const
;
145
146
private
:
150
SUMOReal
myDawdle
;
151
153
SUMOReal
myTauDecel
;
154
156
SUMOReal
myDecelDivTau
;
157
159
SUMOReal
myTauLastDecel
;
160
162
SUMOReal
myActionPointProbability
;
164
165
};
166
167
#endif
/* MSCFModel_PWag2009_H */
tmp
buildd
sumo-0.21.0+dfsg
src
microsim
cfmodels
MSCFModel_PWag2009.h
Generated on Thu Nov 20 2014 19:49:54 for SUMO - Simulation of Urban MObility by
1.8.1.2