22 #ifndef MSCFModel_PWag2009_h 23 #define MSCFModel_PWag2009_h
Representation of a vehicle in the micro simulation.
SUMOReal myTauLastDecel
The precomputed value for (minimum headway time)*myDecel.
SUMOReal dawdle(SUMOReal speed) const
Applies driver imperfection (dawdling / sigma)
The car-following model abstraction.
~MSCFModel_PWag2009()
Destructor.
MSCFModel_PWag2009(const MSVehicleType *vtype, SUMOReal accel, SUMOReal decel, SUMOReal dawdle, SUMOReal headwayTime, SUMOReal tauLast, SUMOReal apProb)
Constructor.
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) ...
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)
virtual MSCFModel::VehicleVariables * createVehicleVariables() const
Returns model specific values which are stored inside a vehicle and must be used with casting...
int getModelID() const
Returns the model's name.
Scalable model based on Krauss by Peter Wagner.
SUMOReal myDecelDivTau
The precomputed value for myDecel/myTau.
MSCFModel * duplicate(const MSVehicleType *vtype) const
Duplicates the car-following model.
SUMOReal moveHelper(MSVehicle *const veh, SUMOReal vPos) const
Applies interaction with stops and lane changing model influences.
SUMOReal getImperfection() const
Get the driver's imperfection.
SUMOReal myTauDecel
The precomputed value for myDecel*myTau.
SUMOReal _v(const MSVehicle *const veh, SUMOReal speed, SUMOReal gap, SUMOReal predSpeed) const
Returns the next velocity.
SUMOReal myActionPointProbability
The probability for any action.