32#define OVERBRAKING_THRESHOLD -3
81 speed =
MAX2(0.0, speed);
84 speed =
MAX2(vMin, speed);
Krauss car-following model, with acceleration decrease and faster start.
double myDawdle
The vehicle's dawdle-parameter. 0 for no dawdling, 1 for max.
Krauss car-following model, changing accel and speed by slope.
MSCFModel_KraussX(const MSVehicleType *vtype)
Constructor.
double myTmp1
extension parameter nr1
~MSCFModel_KraussX()
Destructor.
MSCFModel * duplicate(const MSVehicleType *vtype) const
Duplicates the car-following model.
double dawdleX(double vOld, double vMin, double vMax, SumoRNG *rng) const
Applies driver imperfection (dawdling / sigma)
double patchSpeedBeforeLC(const MSVehicle *veh, double vMin, double vMax) const
apply custom speed adaptations within the given speed bounds
The car-following model abstraction.
double myAccel
The vehicle's maximum acceleration [m/s^2].
static bool gSemiImplicitEulerUpdate
Representation of a vehicle in the micro simulation.
double getSpeed() const
Returns the vehicle's current speed.
The car-following model and parameter.
static double rand(SumoRNG *rng=nullptr)
Returns a random real number in [0, 1)