 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
17 #ifndef MSCFModel_Kerner_h
18 #define MSCFModel_Kerner_h
66 double followSpeed(
const MSVehicle*
const veh,
double speed,
double gap2pred,
double predSpeed,
double predMaxDecel,
const MSVehicle*
const pred = 0)
const;
76 double stopSpeed(
const MSVehicle*
const veh,
const double speed,
double gap2pred)
const;
111 double _v(
const MSVehicle*
const veh,
double speed,
double vfree,
double gap,
double predSpeed)
const;
The car-following model and parameter.
MSCFModel * duplicate(const MSVehicleType *vtype) const
Duplicates the car-following model.
double myTauDecel
The precomputed value for myDecel*myTau.
MSCFModel::VehicleVariables * createVehicleVariables() const
Returns model specific values which are stored inside a vehicle and must be used with casting.
~MSCFModel_Kerner()
Destructor.
MSCFModel_Kerner(const MSVehicleType *vtype)
Constructor.
double myPhi
Kerner's phi.
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)
double finalizeSpeed(MSVehicle *const veh, double vPos) const
Applies interaction with stops and lane changing model influences.
int getModelID() const
Returns the model's name.
The car-following model abstraction.
car-following model by B. Kerner
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)
Representation of a vehicle in the micro simulation.
double _v(const MSVehicle *const veh, double speed, double vfree, double gap, double predSpeed) const
Returns the "safe" velocity.