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 /****************************************************************************/
17 // Krauss car-following model, changing accel and speed by slope
18 /****************************************************************************/
19 #ifndef MSCFModel_KraussPS_h
20 #define MSCFModel_KraussPS_h
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
27 #include "MSCFModel_Krauss.h"
29 
30 
31 // ===========================================================================
32 // class definitions
33 // ===========================================================================
40 public:
44  MSCFModel_KraussPS(const MSVehicleType* vtype);
45 
46 
49 
50 
53 
66  double maxNextSpeed(double speed, const MSVehicle* const veh) const;
67 
68 
73  int getModelID() const {
75  }
77 
78 
83  MSCFModel* duplicate(const MSVehicleType* vtype) const;
84 
85 
86 };
87 
88 #endif /* MSCFModel_KraussPS_H */
89 
MSVehicleType
The car-following model and parameter.
Definition: MSVehicleType.h:65
MSCFModel_KraussPS::~MSCFModel_KraussPS
~MSCFModel_KraussPS()
Destructor.
Definition: MSCFModel_KraussPS.cpp:41
MSCFModel_KraussPS::maxNextSpeed
double maxNextSpeed(double speed, const MSVehicle *const veh) const
Returns the maximum speed given the current speed.
Definition: MSCFModel_KraussPS.cpp:45
MSCFModel_Krauss
Krauss car-following model, with acceleration decrease and faster start.
Definition: MSCFModel_Krauss.h:38
MSCFModel_KraussPS::duplicate
MSCFModel * duplicate(const MSVehicleType *vtype) const
Duplicates the car-following model.
Definition: MSCFModel_KraussPS.cpp:55
MSCFModel_KraussPS::getModelID
int getModelID() const
Returns the model's name.
Definition: MSCFModel_KraussPS.h:73
MSCFModel_KraussPS
Krauss car-following model, changing accel and speed by slope.
Definition: MSCFModel_KraussPS.h:39
SUMO_TAG_CF_KRAUSS_PLUS_SLOPE
Definition: SUMOXMLDefinitions.h:276
MSCFModel_Krauss.h
MSCFModel_KraussPS::MSCFModel_KraussPS
MSCFModel_KraussPS(const MSVehicleType *vtype)
Constructor.
Definition: MSCFModel_KraussPS.cpp:36
MSCFModel
The car-following model abstraction.
Definition: MSCFModel.h:56
config.h
SUMOXMLDefinitions.h
MSVehicle
Representation of a vehicle in the micro simulation.
Definition: MSVehicle.h:79