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 bool canSaveBlockerLength (const MSVehicle &veh, double requested, double leftSpace)
 
static bool divergentRoute (const MSVehicle &v1, const MSVehicle &v2)
 return whether the vehicles are on the same junction but on divergent paths More...
 
static double getRoundaboutDistBonus (const MSVehicle &veh, double bonusParam, const MSVehicle::LaneQ &curr, const MSVehicle::LaneQ &neigh, const MSVehicle::LaneQ &best)
 
static bool saveBlockerLength (const MSVehicle &veh, MSVehicle *blocker, int lcaCounter, double leftSpace, bool reliefConnection, double &leadingBlockerLength)
 

Detailed Description

A lane change model developed by J. Erdmann.

Definition at line 37 of file MSLCHelper.h.

Member Function Documentation

◆ canSaveBlockerLength()

bool MSLCHelper::canSaveBlockerLength ( const MSVehicle veh,
double  requested,
double  leftSpace 
)
static

Definition at line 276 of file MSLCHelper.cpp.

References MSCFModel::brakeGap(), DEBUG_COND, MSVehicle::getActionStepLengthSecs(), MSVehicle::getCarFollowModel(), Named::getID(), MSCFModel::getMaxDecel(), MSVehicle::getSpeed(), and SIMTIME.

Referenced by MSLCM_LC2013::saveBlockerLength(), and MSLCM_SL2015::saveBlockerLength().

Here is the caller graph for this function:

◆ divergentRoute()

bool MSLCHelper::divergentRoute ( const MSVehicle v1,
const MSVehicle v2 
)
static

return whether the vehicles are on the same junction but on divergent paths

Definition at line 288 of file MSLCHelper.cpp.

References MSLane::getEdge(), MSEdge::getFromJunction(), MSVehicle::getLane(), and MSLane::isInternal().

Referenced by MSLCM_SL2015::informFollower(), MSLCM_LC2013::informFollower(), MSLCM_SL2015::informLeader(), and MSLCM_LC2013::informLeader().

Here is the caller graph for this function:

◆ getRoundaboutDistBonus()

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

◆ saveBlockerLength()

bool MSLCHelper::saveBlockerLength ( const MSVehicle veh,
MSVehicle blocker,
int  lcaCounter,
double  leftSpace,
bool  reliefConnection,
double &  leadingBlockerLength 
)
static

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