 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
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;
133 double getSecureGap(
const double speed,
const double leaderSpeed,
const double leaderMaxDecel)
const;
171 double _v(
const MSVehicle*
const veh,
const double gap2pred,
const double mySpeed,
172 const double predSpeed,
const double desSpeed,
const bool respectMinGap =
true)
const;
MSCFModel_IDM(const MSVehicleType *vtype, bool idmm)
Constructor.
The car-following model and parameter.
const double myTwoSqrtAccelDecel
A computational shortcut.
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)
VehicleVariables * createVehicleVariables() const
Returns model specific values which are stored inside a vehicle and must be used with casting.
const double myAdaptationTime
The IDMM adaptation time tau.
const int myIterations
The number of iterations in speed calculations.
MSCFModel * duplicate(const MSVehicleType *vtype) const
Duplicates the car-following model.
int getModelID() const
Returns the model's name.
double finalizeSpeed(MSVehicle *const veh, double vPos) const
Applies interaction with stops and lane changing model influences.
~MSCFModel_IDM()
Destructor.
const double myDelta
The IDM delta exponent.
const double myAdaptationFactor
The IDMM adaptation factor beta.
double insertionFollowSpeed(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) This method is used during the insertion stage....
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 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)
The Intelligent Driver Model (IDM) car-following model.
double _v(const MSVehicle *const veh, const double gap2pred, const double mySpeed, const double predSpeed, const double desSpeed, const bool respectMinGap=true) const
const bool myIDMM
whether the model is IDMM or IDM
The car-following model abstraction.
MSCFModel_IDM & operator=(const MSCFModel_IDM &s)
Invalidated assignment operator.
double interactionGap(const MSVehicle *const, double vL) const
Returns the maximum gap at which an interaction between both vehicles occurs.
double levelOfService
state variable for remembering speed deviation history (lambda)
Representation of a vehicle in the micro simulation.