 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
18 #ifndef MSCFMODEL_IDM_H
19 #define MSCFMODEL_IDM_H
60 double headwayTime,
double adaptationFactor,
double adaptationTime,
61 double internalStepping);
91 double maxSpeed,
const bool onInsertion =
false)
const;
101 double followSpeed(
const MSVehicle*
const veh,
double speed,
double gap2pred,
double predSpeed,
double predMaxDecel,
const MSVehicle*
const pred = 0)
const;
148 double getSecureGap(
const MSVehicle*
const veh,
const MSVehicle*
const pred,
const double speed,
const double leaderSpeed,
const double leaderMaxDecel)
const;
186 double _v(
const MSVehicle*
const veh,
const double gap2pred,
const double mySpeed,
187 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.
VehicleVariables * createVehicleVariables() const
Returns model specific values which are stored inside a vehicle and must be used with casting.
double getSecureGap(const MSVehicle *const veh, const MSVehicle *const pred, 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.
const int myIterations
The number of iterations in speed calculations.
MSCFModel_IDM(const MSVehicleType *vtype, double accel, double decel, double emergencyDecel, double apparentDecel, double headwayTime, double adaptationFactor, double adaptationTime, double internalStepping)
Constructor.
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
virtual double freeSpeed(const MSVehicle *const veh, double speed, double seen, double maxSpeed, const bool onInsertion=false) const
Computes the vehicle's safe speed without a leader.
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.