SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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-2015 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:
55  MSCFModel_KraussPS(const MSVehicleType* vtype, SUMOReal accel, SUMOReal decel, SUMOReal dawdle, SUMOReal headwayTime);
56 
57 
60 
61 
64 
77  SUMOReal maxNextSpeed(SUMOReal speed, const MSVehicle* const veh) const;
78 
79 
84  int getModelID() const {
86  }
88 
89 
94  MSCFModel* duplicate(const MSVehicleType* vtype) const;
95 
96 
97 };
98 
99 #endif /* MSCFModel_KraussPS_H */
100 
Representation of a vehicle in the micro simulation.
Definition: MSVehicle.h:80
int getModelID() const
Returns the model'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:74
SUMOReal dawdle(SUMOReal speed) const
Applies driver imperfection (dawdling / sigma)
#define SUMOReal
Definition: config.h:218
SUMOReal maxNextSpeed(SUMOReal 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 * duplicate(const MSVehicleType *vtype) const
Duplicates the car-following model.
~MSCFModel_KraussPS()
Destructor.
MSCFModel_KraussPS(const MSVehicleType *vtype, SUMOReal accel, SUMOReal decel, SUMOReal dawdle, SUMOReal headwayTime)
Constructor.