Eclipse SUMO - Simulation of Urban MObility
|
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 | |
static double | getRoundaboutDistBonus (const MSVehicle &veh, double bonusParam, const MSVehicle::LaneQ &curr, const MSVehicle::LaneQ &neigh, const MSVehicle::LaneQ &best) |
static double | getSpeedPreservingSecureGap (const MSVehicle &leader, const MSVehicle &follower, double currentGap, double leaderPlannedSpeed) |
static bool | isBidiFollower (const MSVehicle *ego, const MSVehicle *follower) |
static bool | isBidiLeader (const MSVehicle *leader, const std::vector< MSLane * > &cont) |
static bool | updateBlockerLength (const MSVehicle &veh, MSVehicle *blocker, int lcaCounter, double leftSpace, bool reliefConnection, double &leadingBlockerLength) |
A lane change model developed by J. Erdmann.
Definition at line 37 of file MSLCHelper.h.
|
static |
Definition at line 294 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().
return whether the vehicles are on the same junction but on divergent paths
Definition at line 306 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().
|
static |
Definition at line 43 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().
|
static |
Definition at line 315 of file MSLCHelper.cpp.
References MSCFModel::followSpeed(), MSVehicle::getCarFollowModel(), MSCFModel::getMaxDecel(), MSCFModel::getSecureGap(), MSVehicle::getSpeed(), MAX2(), MSCFModel::maxNextSpeed(), MSCFModel::minNextSpeed(), and SPEED2DIST.
Referenced by MSLCM_SL2015::informFollower(), and MSLCM_LC2013::informFollower().
Definition at line 356 of file MSLCHelper.cpp.
References MSLane::getBidiLane(), MSLane::getEdge(), MSRoute::getEdges(), MSVehicle::getLane(), MSLane::getNormalPredecessorLane(), MSLane::getNormalSuccessorLane(), and MSBaseVehicle::getRoute().
Referenced by MSLCM_LC2013::_wantsChange().
|
static |
Definition at line 338 of file MSLCHelper.cpp.
References MSLane::getBidiLane(), MSVehicle::getLane(), MSLane::getNormalPredecessorLane(), and MSLane::getNormalSuccessorLane().
Referenced by MSLCM_LC2013::_wantsChange().
|
static |
Definition at line 229 of file MSLCHelper.cpp.
References MSCFModel::brakeGap(), DEBUG_COND, MSVehicle::getCarFollowModel(), Named::getID(), Named::getIDSecure(), MSVehicle::getLaneChangeModel(), MSVehicleType::getLengthWithGap(), MSCFModel::getMaxDecel(), MSAbstractLaneChangeModel::getOwnState(), MSVehicle::getSpeed(), MSBaseVehicle::getVehicleType(), LCA_STRATEGIC, LCA_URGENT, MAX2(), MSAbstractLaneChangeModel::saveBlockerLength(), SIMTIME, and toString().
Referenced by MSLCM_LC2013::_wantsChange(), and MSLCM_SL2015::_wantsChangeSublane().