// the vehicle is in the exit road segment, but not in the exit lane
// react to vehicle ahead in exit lane
// TODO this reaction is in same situations too short-sighted so that the vehicle in the exit lane must be
// considered already in the upstream segment
final LaneSegment exitLaneSegment = roadSegment.laneSegment(roadSegment.trafficLaneMax());
if (exitLaneSegment != null && exitLaneSegment.type() == Lanes.Type.EXIT) {
// this front vehicle could also result in negative net distances
// but the deceleration is limited anyway
Vehicle frontVehicle = exitLaneSegment.frontVehicle(this);
double accToVehicleInExitLane = longitudinalModel.calcAcc(this, frontVehicle);
final double decelLimit = 4.0;