45 :
MSCFModel(vtype, accel, decel, headwayTime), myDawdle(dawdle),
46 myTauDecel(decel* headwayTime), myDecelDivTau(decel / headwayTime), myTauLastDecel(decel* tauLast),
47 myActionPointProbability(apProb) {
70 if (predSpeed == 0 && gap < 0.01) {
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) ...
Representation of a vehicle in the micro simulation.
SUMOReal myTauLastDecel
The precomputed value for (minimum headway time)*myDecel.
The car-following model abstraction.
SUMOReal myAccel
The vehicle's maximum acceleration [m/s^2].
static SUMOReal rand()
Returns a random real number in [0, 1)
~MSCFModel_PWag2009()
Destructor.
MSCFModel_PWag2009(const MSVehicleType *vtype, SUMOReal accel, SUMOReal decel, SUMOReal dawdle, SUMOReal headwayTime, SUMOReal tauLast, SUMOReal apProb)
Constructor.
SUMOReal myHeadwayTime
The driver's desired time headway (aka reaction time tau) [s].
The car-following model and parameter.
SUMOReal followSpeed(const MSVehicle *const veh, SUMOReal speed, SUMOReal gap2pred, SUMOReal predSpeed, SUMOReal predMaxDecel) const
Computes the vehicle's safe speed (no dawdling)
SUMOReal moveHelper(MSVehicle *const veh, SUMOReal vPos) const
Applies interaction with stops and lane changing model influences.
SUMOReal dawdle(SUMOReal speed) const
Applies driver imperfection (dawdling / sigma)
MSCFModel::VehicleVariables * getCarFollowVariables() const
Returns the vehicle's car following model variables.
virtual SUMOReal moveHelper(MSVehicle *const veh, SUMOReal vPos) const
Applies interaction with stops and lane changing model influences.
SUMOReal myDecelDivTau
The precomputed value for myDecel/myTau.
MSCFModel * duplicate(const MSVehicleType *vtype) const
Duplicates the car-following model.
SUMOReal getSpeed() const
Returns the vehicle's current speed.
SUMOReal myTauDecel
The precomputed value for myDecel*myTau.
SUMOReal myDecel
The vehicle's maximum deceleration [m/s^2].
SUMOReal myActionPointProbability
The probability for any action.