21 #ifndef MSCFModel_Daniel1_h 22 #define MSCFModel_Daniel1_h Representation of a vehicle in the micro simulation.
SUMOReal myTauDecel
The precomputed value for myDecel*myTau.
SUMOReal myDawdle
The vehicle's dawdle-parameter. 0 for no dawdling, 1 for max.
The car-following model abstraction.
virtual SUMOReal _vsafe(SUMOReal gap, SUMOReal predSpeed) const
Returns the "safe" velocity.
virtual int getModelID() const
Returns the model's name.
SUMOReal myHeadwayTime
The driver's desired time headway (aka reaction time tau) [s].
SUMOReal moveHelper(MSVehicle *const veh, SUMOReal vPos) const
Applies interaction with stops and lane changing model influences.
The car-following model and parameter.
void setMaxDecel(SUMOReal decel)
Sets a new value for maximum deceleration [m/s^2].
MSCFModel_Daniel1(const MSVehicleType *vtype, SUMOReal accel, SUMOReal decel, SUMOReal dawdle, SUMOReal headwayTime, SUMOReal tmp1, SUMOReal tmp2, SUMOReal tmp3, SUMOReal tmp4, SUMOReal tmp5)
Constructor.
SUMOReal getImperfection() const
Get the driver's imperfection.
void setImperfection(SUMOReal imperfection)
Sets a new value for driver imperfection.
SUMOReal myTmp1
temporary (testing) parameter
The original Krauss (1998) car-following model and parameter.
virtual SUMOReal followSpeed(const MSVehicle *const veh, SUMOReal speed, SUMOReal gap2pred, SUMOReal predSpeed, SUMOReal predMaxDecel) const
Computes the vehicle's safe speed (no dawdling)
void setHeadwayTime(SUMOReal headwayTime)
Sets a new value for driver reaction time [s].
virtual SUMOReal stopSpeed(const MSVehicle *const veh, const SUMOReal speed, SUMOReal gap2pred) const
Computes the vehicle's safe speed for approaching a non-moving obstacle (no dawdling) ...
virtual SUMOReal dawdle(SUMOReal speed) const
Applies driver imperfection (dawdling / sigma)
~MSCFModel_Daniel1()
Destructor.
SUMOReal myDecel
The vehicle's maximum deceleration [m/s^2].
virtual MSCFModel * duplicate(const MSVehicleType *vtype) const
Duplicates the car-following model.