19 #ifndef MSCFMODEL_IDM_H 20 #define MSCFMODEL_IDM_H 61 double headwayTime,
double adaptationFactor,
double adaptationTime,
62 double internalStepping);
88 double followSpeed(
const MSVehicle*
const veh,
double speed,
double gap2pred,
double predSpeed,
double predMaxDecel,
const MSVehicle*
const pred = 0)
const;
117 double getSecureGap(
const double speed,
const double leaderSpeed,
const double leaderMaxDecel)
const;
155 double _v(
const MSVehicle*
const veh,
const double gap2pred,
const double mySpeed,
156 const double predSpeed,
const double desSpeed,
const bool respectMinGap =
true)
const;
~MSCFModel_IDM()
Destructor.
Representation of a vehicle in the micro simulation.
double interactionGap(const MSVehicle *const, double vL) const
Returns the maximum gap at which an interaction between both vehicles occurs.
MSCFModel * duplicate(const MSVehicleType *vtype) const
Duplicates the car-following model.
const bool myIDMM
whether the model is IDMM or IDM
const double myDelta
The IDM delta exponent.
The Intelligent Driver Model (IDM) car-following model.
The car-following model abstraction.
const double myAdaptationFactor
The IDMM adaptation factor beta.
double finalizeSpeed(MSVehicle *const veh, double vPos) const
Applies interaction with stops and lane changing model influences.
MSCFModel_IDM(const MSVehicleType *vtype, bool idmm)
Constructor.
The car-following model and parameter.
MSCFModel_IDM & operator=(const MSCFModel_IDM &s)
Invalidated assignment operator.
double stopSpeed(const MSVehicle *const veh, const double speed, double gap) const
Computes the vehicle's safe speed for approaching a non-moving obstacle (no dawdling) ...
double getSecureGap(const double speed, const double leaderSpeed, const double leaderMaxDecel) const
Returns the minimum gap to reserve if the leader is braking at maximum (>=0)
const double myAdaptationTime
The IDMM adaptation time tau.
double levelOfService
state variable for remembering speed deviation history (lambda)
double _v(const MSVehicle *const veh, const double gap2pred, const double mySpeed, const double predSpeed, const double desSpeed, const bool respectMinGap=true) const
const double myTwoSqrtAccelDecel
A computational shortcut.
const int myIterations
The number of iterations in speed calculations.
int getModelID() const
Returns the model's name.
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)
VehicleVariables * createVehicleVariables() const
Returns model specific values which are stored inside a vehicle and must be used with casting...