59 double freeSpeed(
const MSVehicle*
const veh,
double speed,
double seen,
double maxSpeed,
232 params.
vmax = 500 / 3.6;
352 params.
vmax = 430 / 3.6;
428 params.
vmax = 250 / 3.6;
442 params.
vmax = 300 / 3.6;
528 params.
vmax = 160 / 3.6;
586 params.
vmax = 120 / 3.6;
636 params.
vmax = 120 / 3.6;
730 params.
vmax = 160 / 3.6;
TrainParams initICE3Params() const
TrainParams initNGT400_16Params() const
virtual ~MSCFModel_Rail()
LookUpMap initNGT400Traction() const
TrainParams initREDosto7Params() const
LookUpMap initRB628Traction() const
LookUpMap initRB628Resistance() const
MSCFModel::VehicleVariables * createVehicleVariables() const
Returns model specific values which are stored inside a vehicle and must be used with casting.
virtual double minNextSpeedEmergency(double speed, const MSVehicle *const veh=0) const
Returns the minimum speed after emergency braking, given the current speed (depends on the numerical ...
LookUpMap initICE3Traction() const
TrainParams initICE1Params() const
double freeSpeed(const MSVehicle *const veh, double speed, double seen, double maxSpeed, const bool onInsertion, const CalcReason usage=CalcReason::CURRENT) const
Computes the vehicle's safe speed without a leader.
TrainParams initRB628Params() const
double getInterpolatedValueFromLookUpMap(double speed, const LookUpMap *lookUpMap) const
virtual MSCFModel * duplicate(const MSVehicleType *vtype) const
Duplicates the car-following model.
LookUpMap initNGT400Resistance() const
LookUpMap initRB425Traction() const
LookUpMap initICE1Resistance() const
virtual int getModelID() const
Returns the model's ID; the XML-Tag number is used.
LookUpMap initICE1Traction() const
LookUpMap initNGT400_16Traction() const
double getSpeedAfterMaxDecel(double v) const
Returns the velocity after maximum deceleration.
TrainParams myTrainParams
virtual double minNextSpeed(double speed, const MSVehicle *const veh) const
Returns the minimum speed given the current speed (depends on the numerical update scheme and its ste...
LookUpMap initRB425Resistance() const
LookUpMap initREDosto7Resistance() const
double followSpeed(const MSVehicle *const veh, double speed, double gap2pred, double predSpeed, double predMaxDecel, const MSVehicle *const pred=0, const CalcReason usage=CalcReason::CURRENT) const
Computes the vehicle's follow speed (no dawdling)
LookUpMap initNGT400_16Resistance() const
TrainParams initRB425Params() const
TrainParams initFreightParams() const
LookUpMap initFreightResistance() const
LookUpMap initREDosto7Traction() const
virtual double maxNextSpeed(double speed, const MSVehicle *const veh) const
Returns the maximum speed given the current speed.
TrainParams initNGT400Params() const
LookUpMap initICE3Resistance() const
LookUpMap initFreightTraction() const
std::map< double, double > LookUpMap
bool startupDelayStopped() const
whether startupDelay should be applied after stopping
double finalizeSpeed(MSVehicle *const veh, double vPos) const
Applies interaction with stops and lane changing model influences. Called at most once per simulation...
double stopSpeed(const MSVehicle *const veh, const double speed, double gap, double decel, const CalcReason usage=CalcReason::CURRENT) const
Computes the vehicle's safe speed for approaching a non-moving obstacle (no dawdling)
The car-following model abstraction.
CalcReason
What the return value of stop/follow/free-Speed is used for.
@ CURRENT
the return value is used for calculating the next speed
Representation of a vehicle in the micro simulation.
The car-following model and parameter.