SUMO - Simulation of Urban MObility
MSCFModel_Krauss.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
20 // Krauss car-following model, with acceleration decrease and faster start
21 /****************************************************************************/
22 #ifndef MSCFModel_Krauss_h
23 #define MSCFModel_Krauss_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_KraussOrig1.h"
36 
37 
38 // ===========================================================================
39 // class definitions
40 // ===========================================================================
46 public:
55  MSCFModel_Krauss(const MSVehicleType* vtype, double accel, double decel,
56  double emergencyDecel, double apparentDecel, double dawdle, double headwayTime);
57 
58 
61 
62 
65 
71  virtual double moveHelper(MSVehicle* const veh, double vPos) const;
72 
80  double stopSpeed(const MSVehicle* const veh, const double speed, double gap2pred) const;
81 
82 
91  double followSpeed(const MSVehicle* const veh, double speed, double gap2pred, double predSpeed, double predMaxDecel) const;
92 
93 
98  int getModelID() const {
99  return SUMO_TAG_CF_KRAUSS;
100  }
102 
103 
108  MSCFModel* duplicate(const MSVehicleType* vtype) const;
109 
110 
111 protected:
112 
118  double dawdle2(double speed, double sigma) const;
119 
120 };
121 
122 #endif /* MSCFMODEL_KRAUSS_H */
123 
int getModelID() const
Returns the model&#39;s name.
Representation of a vehicle in the micro simulation.
Definition: MSVehicle.h:83
The car-following model abstraction.
Definition: MSCFModel.h:59
double followSpeed(const MSVehicle *const veh, double speed, double gap2pred, double predSpeed, double predMaxDecel) const
Computes the vehicle&#39;s safe speed (no dawdling) this uses the maximumSafeFollowSpeed.
The original Krauss (1998) car-following model and parameter.
~MSCFModel_Krauss()
Destructor.
double stopSpeed(const MSVehicle *const veh, const double speed, double gap2pred) const
Computes the vehicle&#39;s safe speed for approaching a non-moving obstacle (no dawdling) this uses the m...
The car-following model and parameter.
Definition: MSVehicleType.h:72
virtual double moveHelper(MSVehicle *const veh, double vPos) const
Applies interaction with stops and lane changing model influences.
MSCFModel * duplicate(const MSVehicleType *vtype) const
Duplicates the car-following model.
double dawdle2(double speed, double sigma) const
Applies driver imperfection (dawdling / sigma)
Krauss car-following model, with acceleration decrease and faster start.
MSCFModel_Krauss(const MSVehicleType *vtype, double accel, double decel, double emergencyDecel, double apparentDecel, double dawdle, double headwayTime)
Constructor.
virtual double dawdle(double speed) const
Applies driver imperfection (dawdling / sigma)