Eclipse SUMO - Simulation of Urban MObility
MSLCHelper Class Reference

A lane change model developed by J. Erdmann. More...

#include <MSLCHelper.h>

Static Public Member Functions

static double getRoundaboutDistBonus (const MSVehicle &veh, double bonusParam, const MSVehicle::LaneQ &curr, const MSVehicle::LaneQ &neigh, const MSVehicle::LaneQ &best)
 Computes the artificial bonus distance for roundabout lanes this additional distance reduces the sense of urgency within roundabouts and thereby promotes the use of the inner roundabout lane in multi-lane roundabouts. More...
 

Detailed Description

A lane change model developed by J. Erdmann.

Definition at line 37 of file MSLCHelper.h.

Member Function Documentation

◆ getRoundaboutDistBonus()

double MSLCHelper::getRoundaboutDistBonus ( const MSVehicle veh,
double  bonusParam,
const MSVehicle::LaneQ curr,
const MSVehicle::LaneQ neigh,
const MSVehicle::LaneQ best 
)
static

Computes the artificial bonus distance for roundabout lanes this additional distance reduces the sense of urgency within roundabouts and thereby promotes the use of the inner roundabout lane in multi-lane roundabouts.

Parameters
[in]currcontinuation info along veh's current lane
[in]neighcontinuation info along a neighboring lane (in MSLCM_2013::_wantsChange() the considered lane for a lanechange)

Definition at line 37 of file MSLCHelper.cpp.

References MSVehicle::LaneQ::bestContinuations, MSAbstractLaneChangeModel::debugVehicle(), MSLane::getBruttoVehLenSum(), MSLane::getEdge(), Named::getID(), MSJunction::getIncoming(), MSLane::getIndex(), MSVehicle::getLane(), MSVehicle::getLaneChangeModel(), MSLane::getLength(), MSLane::getLinkCont(), MSJunction::getOutgoing(), MSVehicle::getPositionOnLane(), MSEdge::getToJunction(), MSAbstractLaneChangeModel::isOpposite(), MSEdge::isRoundabout(), MSVehicle::LaneQ::lane, MAX2(), SIMTIME, and toString().

Referenced by MSLCM_LC2013::_wantsChange(), and MSLCM_SL2015::_wantsChangeSublane().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: