 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
18 #ifndef MSCFModel_SmartSK_h
19 #define MSCFModel_SmartSK_h
68 virtual double followSpeed(
const MSVehicle*
const veh,
double speed,
double gap2pred,
double predSpeed,
double predMaxDecel,
const MSVehicle*
const pred = 0)
const;
78 virtual double stopSpeed(
const MSVehicle*
const veh,
const double speed,
double gap2pred)
const;
143 virtual double _vsafe(
const MSVehicle*
const veh,
double gap,
double predSpeed)
const;
150 virtual double dawdle(
double speed, std::mt19937* rng)
const;
The car-following model and parameter.
virtual 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.
virtual MSCFModel * duplicate(const MSVehicleType *vtype) const
Duplicates the car-following model.
void setImperfection(double imperfection)
Sets a new value for driver imperfection.
double myS2Sspeed
new variables needed in this model; myS2Sspeed is the speed below which the vehicle does not move whe...
~MSCFModel_SmartSK()
Destructor.
double myTmp1
temporary (testing) parameter
virtual int getModelID() const
Returns the model's name.
MSCFModel::VehicleVariables * getCarFollowVariables() const
Returns the vehicle's car following model variables.
static double rand(std::mt19937 *rng=0)
Returns a random real number in [0, 1)
double getImperfection() const
Get the driver's imperfection.
virtual double dawdle(double speed, std::mt19937 *rng) const
Applies driver imperfection (dawdling / sigma)
double myHeadwayTime
The driver's desired time headway (aka reaction time tau) [s].
double myDawdle
The vehicle's dawdle-parameter. 0 for no dawdling, 1 for max.
virtual 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)
virtual double _vsafe(const MSVehicle *const veh, double gap, double predSpeed) const
Returns the "safe" velocity.
double patchSpeedBeforeLC(const MSVehicle *veh, double vMin, double vMax) const
apply dawdling
void setMaxDecel(double decel)
Sets a new value for maximum deceleration [m/s^2].
double myTauDecel
The precomputed value for myDecel*myTau.
void setHeadwayTime(double headwayTime)
Sets a new value for desired headway [s].
virtual void updateMyHeadway(const MSVehicle *const veh) const
double myDecel
The vehicle's maximum deceleration [m/s^2].
The original Krauss (1998) car-following model and parameter.
The car-following model abstraction.
MSCFModel_SmartSK(const MSVehicleType *vtype)
Constructor.
virtual MSCFModel::VehicleVariables * createVehicleVariables() const
Returns model specific values which are stored inside a vehicle and must be used with casting.
std::map< int, double > ggOld
std::mt19937 * getRNG() const
Representation of a vehicle in the micro simulation.