Eclipse 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-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
18 // Krauss car-following model, changing accel and speed by slope
19 /****************************************************************************/
20 #ifndef MSCFModel_KraussPS_h
21 #define MSCFModel_KraussPS_h
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #include <config.h>
27 
28 #include "MSCFModel_Krauss.h"
30 
31 
32 // ===========================================================================
33 // class definitions
34 // ===========================================================================
41 public:
45  MSCFModel_KraussPS(const MSVehicleType* vtype);
46 
47 
50 
51 
54 
67  double maxNextSpeed(double speed, const MSVehicle* const veh) const;
68 
69 
74  int getModelID() const {
76  }
78 
79 
84  MSCFModel* duplicate(const MSVehicleType* vtype) const;
85 
86 
87 };
88 
89 #endif /* MSCFModel_KraussPS_H */
90 
MSVehicleType
The car-following model and parameter.
Definition: MSVehicleType.h:66
MSCFModel_KraussPS::~MSCFModel_KraussPS
~MSCFModel_KraussPS()
Destructor.
Definition: MSCFModel_KraussPS.cpp:42
MSCFModel_KraussPS::maxNextSpeed
double maxNextSpeed(double speed, const MSVehicle *const veh) const
Returns the maximum speed given the current speed.
Definition: MSCFModel_KraussPS.cpp:46
MSCFModel_Krauss
Krauss car-following model, with acceleration decrease and faster start.
Definition: MSCFModel_Krauss.h:39
MSCFModel_KraussPS::duplicate
MSCFModel * duplicate(const MSVehicleType *vtype) const
Duplicates the car-following model.
Definition: MSCFModel_KraussPS.cpp:56
MSCFModel_KraussPS::getModelID
int getModelID() const
Returns the model's name.
Definition: MSCFModel_KraussPS.h:74
MSCFModel_KraussPS
Krauss car-following model, changing accel and speed by slope.
Definition: MSCFModel_KraussPS.h:40
SUMO_TAG_CF_KRAUSS_PLUS_SLOPE
Definition: SUMOXMLDefinitions.h:277
MSCFModel_Krauss.h
MSCFModel_KraussPS::MSCFModel_KraussPS
MSCFModel_KraussPS(const MSVehicleType *vtype)
Constructor.
Definition: MSCFModel_KraussPS.cpp:37
MSCFModel
The car-following model abstraction.
Definition: MSCFModel.h:57
config.h
SUMOXMLDefinitions.h
MSVehicle
Representation of a vehicle in the micro simulation.
Definition: MSVehicle.h:80