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