 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
36 myK(vtype->getParameter().getCFParam(
SUMO_ATTR_K, 0.5)),
38 myTauDecel(myDecel * myHeadwayTime) {
77 if (predSpeed == 0 && gap < 0.01) {
85 double va =
MAX2((
double) 0,
MIN3(vfree, vsafe, vcond)) + vars->
rand;
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.
virtual double maxNextSpeed(double speed, const MSVehicle *const veh) const
Returns the maximum speed given the current speed.
~MSCFModel_Kerner()
Destructor.
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...
MSCFModel_Kerner(const MSVehicleType *vtype)
Constructor.
double myPhi
Kerner's phi.
static double rand(std::mt19937 *rng=0)
Returns a random real number in [0, 1)
T MIN4(T a, T b, T c, T d)
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.
double myDecel
The vehicle's maximum deceleration [m/s^2].
The car-following model abstraction.
double myAccel
The vehicle's maximum acceleration [m/s^2].
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)
std::mt19937 * getRNG() const
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.