137 virtual double vsafe(
double gap,
double predSpeed,
double predMaxDecel)
const;
@ SUMO_TAG_CF_KRAUSS_ORIG1
The original Krauss (1998) car-following model and parameter.
double getImperfection() const
Get the driver's imperfection.
virtual double vsafe(double gap, double predSpeed, double predMaxDecel) const
Returns the "safe" velocity.
virtual double dawdle(double speed, SumoRNG *rng) const
Applies driver imperfection (dawdling / sigma)
double myDawdle
The vehicle's dawdle-parameter. 0 for no dawdling, 1 for max.
~MSCFModel_KraussOrig1()
Destructor.
double myTauDecel
The precomputed value for myDecel*myTau.
double followSpeed(const MSVehicle *const veh, double speed, double gap2pred, double predSpeed, double predMaxDecel, const MSVehicle *const pred=0, const CalcReason usage=CalcReason::CURRENT) const
Computes the vehicle's safe speed (no dawdling)
virtual double stopSpeed(const MSVehicle *const veh, const double speed, double gap2pred, double decel, const CalcReason usage=CalcReason::CURRENT) const
Computes the vehicle's safe speed for approaching a non-moving obstacle (no dawdling)
virtual int getModelID() const
Returns the model's name.
void setImperfection(double imperfection)
Sets a new value for driver imperfection.
void setMaxDecel(double decel)
Sets a new value for maximum deceleration [m/s^2].
virtual MSCFModel * duplicate(const MSVehicleType *vtype) const
Duplicates the car-following model.
double patchSpeedBeforeLC(const MSVehicle *veh, double vMin, double vMax) const
apply custom speed adaptations within the given speed bounds
void setHeadwayTime(double headwayTime)
Sets a new value for desired headway [s].
The car-following model abstraction.
CalcReason
What the return value of stop/follow/free-Speed is used for.
@ CURRENT
the return value is used for calculating the next speed
double myDecel
The vehicle's maximum deceleration [m/s^2].
double myHeadwayTime
The driver's desired time headway (aka reaction time tau) [s].
Representation of a vehicle in the micro simulation.
The car-following model and parameter.