SUMO - Simulation of Urban MObility
MSCFModel_KraussPS.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, changing accel and speed by slope
21 /****************************************************************************/
22 #ifndef MSCFModel_KraussPS_h
23 #define MSCFModel_KraussPS_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_Krauss.h"
36 
37 
38 // ===========================================================================
39 // class definitions
40 // ===========================================================================
47 public:
56  MSCFModel_KraussPS(const MSVehicleType* vtype, double accel,
57  double decel, double emergencyDecel, double apparentDecel,
58  double dawdle, double headwayTime);
59 
60 
63 
64 
67 
80  double maxNextSpeed(double speed, const MSVehicle* const veh) const;
81 
82 
87  int getModelID() const {
89  }
91 
92 
97  MSCFModel* duplicate(const MSVehicleType* vtype) const;
98 
99 
100 };
101 
102 #endif /* MSCFModel_KraussPS_H */
103 
MSCFModel_KraussPS(const MSVehicleType *vtype, double accel, double decel, double emergencyDecel, double apparentDecel, double dawdle, double headwayTime)
Constructor.
Representation of a vehicle in the micro simulation.
Definition: MSVehicle.h:83
int getModelID() const
Returns the model&#39;s name.
The car-following model abstraction.
Definition: MSCFModel.h:59
Krauss car-following model, changing accel and speed by slope.
The car-following model and parameter.
Definition: MSVehicleType.h:72
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.
virtual double dawdle(double speed) const
Applies driver imperfection (dawdling / sigma)