44 double decel,
double emergencyDecel,
double apparentDecel,
45 double dawdle,
double headwayTime) :
46 MSCFModel_Krauss(vtype, accel, decel, emergencyDecel, apparentDecel, dawdle, headwayTime) {
55 const double gravity = 9.80665;
MSCFModel_KraussPS(const MSVehicleType *vtype, double accel, double decel, double emergencyDecel, double apparentDecel, double dawdle, double headwayTime)
Constructor.
Representation of a vehicle in the micro simulation.
const MSVehicleType * myType
The type to which this model definition belongs to.
double myApparentDecel
The vehicle's deceleration as expected by surrounding traffic [m/s^2].
The car-following model abstraction.
double myAccel
The vehicle's maximum acceleration [m/s^2].
The car-following model and parameter.
double getMaxAccel() const
Get the vehicle type's maximum acceleration [m/s^2].
MSCFModel * duplicate(const MSVehicleType *vtype) const
Duplicates the car-following model.
double myDawdle
The vehicle's dawdle-parameter. 0 for no dawdling, 1 for max.
double getMaxSpeed() const
Get vehicle's maximum speed [m/s].
double myDecel
The vehicle's maximum deceleration [m/s^2].
double myEmergencyDecel
The vehicle's maximum emergency deceleration [m/s^2].
double getSlope() const
Returns the slope of the road at vehicle's position.
double maxNextSpeed(double speed, const MSVehicle *const veh) const
Returns the maximum speed given the current speed.
double myHeadwayTime
The driver's desired time headway (aka reaction time tau) [s].
Krauss car-following model, with acceleration decrease and faster start.
~MSCFModel_KraussPS()
Destructor.