21 #ifndef MSCFModel_Kerner_h
22 #define MSCFModel_Kerner_h
Representation of a vehicle in the micro simulation.
car-following model by B. Kerner
MSCFModel_Kerner(const MSVehicleType *vtype, SUMOReal accel, SUMOReal decel, SUMOReal headwayTime, SUMOReal k, SUMOReal phi)
Constructor.
SUMOReal _v(const MSVehicle *const veh, SUMOReal speed, SUMOReal vfree, SUMOReal gap, SUMOReal predSpeed) const
Returns the "safe" velocity.
The car-following model abstraction.
SUMOReal followSpeed(const MSVehicle *const veh, SUMOReal speed, SUMOReal gap2pred, SUMOReal predSpeed, SUMOReal predMaxDecel) const
Computes the vehicle's safe speed (no dawdling)
The car-following model and parameter.
SUMOReal myRand
The random deviation (constant between two calls of movehelper)
SUMOReal moveHelper(MSVehicle *const veh, SUMOReal vPos) const
Applies interaction with stops and lane changing model influences.
MSCFModel * duplicate(const MSVehicleType *vtype) const
Duplicates the car-following model.
int getModelID() const
Returns the model's name.
SUMOReal myTauDecel
The precomputed value for myDecel*myTau.
SUMOReal myPhi
Kerner's phi.
MSCFModel::VehicleVariables * createVehicleVariables() const
Returns model specific values which are stored inside a vehicle and must be used with casting...
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) ...
~MSCFModel_Kerner()
Destructor.