SUMO - Simulation of Urban MObility
MSCFModel_KraussPS.h
Go to the documentation of this file.
1 /****************************************************************************/
10 // Krauss car-following model, changing accel and speed by slope
11 /****************************************************************************/
12 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
13 // Copyright (C) 2001-2017 DLR (http://www.dlr.de/) and contributors
14 /****************************************************************************/
15 //
16 // This file is part of SUMO.
17 // SUMO is free software: you can redistribute it and/or modify
18 // it under the terms of the GNU General Public License as published by
19 // the Free Software Foundation, either version 3 of the License, or
20 // (at your option) any later version.
21 //
22 /****************************************************************************/
23 #ifndef MSCFModel_KraussPS_h
24 #define MSCFModel_KraussPS_h
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 "MSCFModel_Krauss.h"
37 
38 
39 // ===========================================================================
40 // class definitions
41 // ===========================================================================
48 public:
56  MSCFModel_KraussPS(const MSVehicleType* vtype, double accel, double decel, double emergencyDecel, double dawdle, double headwayTime);
57 
58 
61 
62 
65 
78  double maxNextSpeed(double speed, const MSVehicle* const veh) const;
79 
80 
85  int getModelID() const {
87  }
89 
90 
95  MSCFModel* duplicate(const MSVehicleType* vtype) const;
96 
97 
98 };
99 
100 #endif /* MSCFModel_KraussPS_H */
101 
Representation of a vehicle in the micro simulation.
Definition: MSVehicle.h:83
int getModelID() const
Returns the model&#39;s name.
MSCFModel_KraussPS(const MSVehicleType *vtype, double accel, double decel, double emergencyDecel, double dawdle, double headwayTime)
Constructor.
The car-following model abstraction.
Definition: MSCFModel.h:60
Krauss car-following model, changing accel and speed by slope.
The car-following model and parameter.
Definition: MSVehicleType.h:74
MSCFModel * duplicate(const MSVehicleType *vtype) const
Duplicates the car-following model.
double maxNextSpeed(double speed, const MSVehicle *const veh) const
Returns the maximum speed given the current speed.
Krauss car-following model, with acceleration decrease and faster start.
~MSCFModel_KraussPS()
Destructor.
double dawdle(double speed) const
Applies driver imperfection (dawdling / sigma)