 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
38 myTauDecel(myDecel * myHeadwayTime),
39 myDecelDivTau(myDecel / myHeadwayTime),
64 if (predSpeed == 0 && gap < 0.01) {
70 double apref = vars->
aOld;
The car-following model and parameter.
double myTauDecel
The precomputed value for myDecel*myTau.
@ SUMO_ATTR_CF_PWAGNER2009_APPROB
MSCFModel::VehicleVariables * getCarFollowVariables() const
Returns the vehicle's car following model variables.
virtual double finalizeSpeed(MSVehicle *const veh, double vPos) const
Applies interaction with stops and lane changing model influences. Called at most once per simulation...
double myTauLastDecel
The precomputed value for (minimum headway time)*myDecel.
double myDecelDivTau
The precomputed value for myDecel/myTau.
MSCFModel * duplicate(const MSVehicleType *vtype) const
Duplicates the car-following model.
static double rand(std::mt19937 *rng=0)
Returns a random real number in [0, 1)
double stopSpeed(const MSVehicle *const veh, const double speed, double gap2pred) const
Computes the vehicle's safe speed for approaching a non-moving obstacle (no dawdling)
double dawdle(double speed) const
Applies driver imperfection (dawdling / sigma)
double followSpeed(const MSVehicle *const veh, double speed, double gap2pred, double predSpeed, double predMaxDecel, const MSVehicle *const pred=0) const
Computes the vehicle's safe speed (no dawdling)
Structure representing possible vehicle parameter.
MSCFModel_PWag2009(const MSVehicleType *vtype)
Constructor.
double myHeadwayTime
The driver's desired time headway (aka reaction time tau) [s].
double finalizeSpeed(MSVehicle *const veh, double vPos) const
Applies interaction with stops and lane changing model influences.
~MSCFModel_PWag2009()
Destructor.
@ SUMO_ATTR_CF_PWAGNER2009_TAULAST
double myDecel
The vehicle's maximum deceleration [m/s^2].
The car-following model abstraction.
double getSpeed() const
Returns the vehicle's current speed.
double myAccel
The vehicle's maximum acceleration [m/s^2].
double myActionPointProbability
The probability for any action.
std::mt19937 * getRNG() const
Representation of a vehicle in the micro simulation.