![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Representation of a lane in the micro simulation. More...
#include <MSLane.h>
Data Structures | |
class | AnyVehicleIterator |
AnyVehicleIterator is a structure, which manages the iteration through all vehicles on the lane, that may be of importance for the car-following dynamics along that lane. The relevant types of vehicles are: 1) vehicles with their front on the lane (myVehicles), 2) vehicles intersecting the lane but with front on another lane (myPartialVehicles) More... | |
class | by_connections_to_sorter |
Sorts edges by their angle relative to the given edge (straight comes first) More... | |
class | edge_finder |
class | incoming_lane_priority_sorter |
Sorts lanes (IncomingLaneInfos) by their priority or, if this doesn't apply, wrt. the angle difference magnitude relative to the target lane's angle (straight comes first) More... | |
struct | IncomingLaneInfo |
class | outgoing_lane_priority_sorter |
Sorts lanes (their origin link) by the priority of their noninternal target edges or, if this doesn't yield an unambiguous result, wrt. the angle difference magnitude relative to the target lane's angle (straight comes first) More... | |
class | vehicle_natural_position_sorter |
class | vehicle_position_sorter |
Sorts vehicles by their position (descending) More... | |
Public Types | |
enum | CollisionAction { COLLISION_ACTION_NONE , COLLISION_ACTION_WARN , COLLISION_ACTION_TELEPORT , COLLISION_ACTION_REMOVE } |
enum class | ParameterisedAttrType { STRING , DOUBLE } |
@brie enum for Parameterised type More... | |
typedef std::vector< MSVehicle * > | VehCont |
Container for vehicles. More... | |
Public Member Functions | |
void | addApproachingLane (MSLane *lane, bool warnMultiCon) |
void | addIncomingLane (MSLane *lane, MSLink *viaLink) |
void | addParking (MSVehicle *veh) |
add parking vehicle. This should only used during state loading More... | |
void | addTo (const StoringVisitor &cont) const |
Adds this object to the given container. More... | |
bool | allowsVehicleClass (SUMOVehicleClass vclass) const |
virtual bool | appropriate (const MSVehicle *veh) const |
void | changeLanes (const SUMOTime time) |
void | checkBufferType () |
void | clearParameter () |
Clears the parameter map. More... | |
virtual void | detectCollisions (SUMOTime timestep, const std::string &stage) |
Check if vehicles are too close. More... | |
bool | empty () const |
Returns true if there is not a single vehicle on the lane. More... | |
void | enteredByLaneChange (MSVehicle *v) |
MSLane * | getBidiLane () const |
retrieve bidirectional lane or nullptr More... | |
MSLane * | getCanonicalPredecessorLane () const |
MSLane * | getCanonicalSuccessorLane () const |
double | getCenterOnEdge () const |
std::pair< MSVehicle *const, double > | getCriticalLeader (double dist, double seen, double speed, const MSVehicle &veh) const |
Returns the most dangerous leader and the distance to him. More... | |
int | getCrossingIndex () const |
return the index of the link to the next crossing if this is walkingArea, else -1 More... | |
double | getDouble (const std::string &key, const double defaultValue) const |
Returns the value for a given key converted to a double. More... | |
MSEdge & | getEdge () const |
Returns the lane's edge. More... | |
const MSLink * | getEntryLink () const |
Returns the entry link if this is an internal lane, else nullptr. More... | |
MSVehicle * | getFirstAnyVehicle () const |
returns the first vehicle that is fully or partially on this lane More... | |
const MSLane * | getFirstInternalInConnection (double &offset) const |
Returns 0 if the lane is not internal. Otherwise the first part of the connection (sequence of internal lanes along junction) corresponding to the lane is returned and the offset is set to the distance of the begin of this lane to the begin of the returned. More... | |
std::pair< MSVehicle *const, double > | getFollower (const MSVehicle *ego, double egoPos, double dist, bool ignoreMinorLinks) const |
Find follower vehicle for the given ego vehicle (which may be on the opposite direction lane) More... | |
MSLeaderDistanceInfo | getFollowersOnConsecutive (const MSVehicle *ego, double backOffset, bool allSublanes, double searchDist=-1, bool ignoreMinorLinks=false) const |
return the sublane followers with the largest missing rear gap among all predecessor lanes (within dist) More... | |
const std::string & | getID () const |
Returns the id. More... | |
const std::vector< IncomingLaneInfo > & | getIncomingLanes () const |
LinkState | getIncomingLinkState () const |
get the state of the link from the logical predecessor to this lane More... | |
const MSLane * | getInternalFollowingLane (const MSLane *const) const |
returns the internal lane leading to the given lane or nullptr, if there is none More... | |
MSVehicle * | getLastAnyVehicle () const |
returns the last vehicle that is fully or partially on this lane More... | |
MSVehicle * | getLastFullVehicle () const |
returns the last vehicle for which this lane is responsible or 0 More... | |
std::pair< MSVehicle *const, double > | getLeader (const MSVehicle *veh, const double vehPos, const std::vector< MSLane * > &bestLaneConts, double dist=-1, bool checkTmpVehicles=false) const |
Returns the immediate leader of veh and the distance to veh starting on this lane. More... | |
std::pair< MSVehicle *const, double > | getLeaderOnConsecutive (double dist, double seen, double speed, const MSVehicle &veh, const std::vector< MSLane * > &bestLaneConts) const |
Returns the immediate leader and the distance to him. More... | |
void | getLeadersOnConsecutive (double dist, double seen, double speed, const MSVehicle *ego, const std::vector< MSLane * > &bestLaneConts, MSLeaderDistanceInfo &result) const |
Returns the immediate leaders and the distance to them (as getLeaderOnConsecutive but for the sublane case) More... | |
const std::vector< MSLink * > & | getLinkCont () const |
returns the container with all links !!! More... | |
const MSLink * | getLinkTo (const MSLane *const) const |
returns the link to the given lane or nullptr, if it is not connected More... | |
MSLane * | getLogicalPredecessorLane () const |
get the most likely precedecessor lane (sorted using by_connections_to_sorter). The result is cached in myLogicalPredecessorLane More... | |
MSLane * | getLogicalPredecessorLane (const MSEdge &fromEdge) const |
return the (first) predecessor lane from the given edge More... | |
double | getMissingRearGap (const MSVehicle *leader, double backOffset, double leaderSpeed) const |
return by how much further the leader must be inserted to avoid rear end collisions More... | |
const MSEdge * | getNextNormal () const |
Returns the lane's follower if it is an internal lane, the edge of the lane otherwise. More... | |
std::vector< const MSLane * > | getNormalIncomingLanes () const |
get the list of all direct (disregarding internal predecessors) non-internal predecessor lanes of this lane More... | |
const MSLane * | getNormalPredecessorLane () const |
get normal lane leading to this internal lane, for normal lanes, the lane itself is returned More... | |
MSLane * | getOpposite () const |
return the opposite direction lane for lane changing or 0 More... | |
std::pair< MSVehicle *const, double > | getOppositeFollower (const MSVehicle *ego) const |
std::pair< MSVehicle *const, double > | getOppositeLeader (const MSVehicle *ego, double dist, bool oppositeDir) const |
double | getOppositePos (double pos) const |
return the corresponding position on the opposite lane More... | |
const std::vector< std::pair< const MSLane *, const MSEdge * > > | getOutgoingViaLanes () const |
get the list of outgoing lanes More... | |
MSLane * | getParallelLane (int offset, bool includeOpposite=true) const |
Returns the lane with the given offset parallel to this one or 0 if it does not exist. More... | |
const std::string | getParameter (const std::string &key, const std::string defaultValue="") const |
Returns the value for a given key. More... | |
const std::map< std::string, std::string > & | getParametersMap () const |
Returns the inner key/value map. More... | |
std::string | getParametersStr (const std::string kvsep="=", const std::string sep="|") const |
Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN". More... | |
const std::set< const MSVehicle * > & | getParkingVehicles () const |
retrieve the parking vehicles (see GUIParkingArea) More... | |
MSVehicle * | getPartialBehind (const MSVehicle *ego) const |
MSLeaderInfo | getPartialBeyond () const |
get all vehicles that are inlapping from consecutive edges More... | |
int | getRightmostSublane () const |
double | getRightSideOnEdge () const |
std::mt19937 * | getRNG () const |
return the associated RNG More... | |
int | getRNGIndex () const |
returns the associated RNG index More... | |
double | getStopOffset (const MSVehicle *veh) const |
Returns vehicle class specific stopOffset for the vehicle. More... | |
const std::map< SVCPermissions, double > & | getStopOffsets () const |
Returns vehicle class specific stopOffsets. More... | |
std::vector< StopWatch< std::chrono::nanoseconds > > & | getStopWatch () |
std::set< MSVehicle * > | getSurroundingVehicles (double startPos, double downstreamDist, double upstreamDist, std::shared_ptr< LaneCoverageInfo > checkedLanes) const |
Returns all vehicles closer than downstreamDist along the along the road network starting on the given position. Predecessor lanes are searched upstream for the given upstreamDistance. More... | |
int | getThreadIndex () const |
returns the associated thread index More... | |
std::vector< const MSJunction * > | getUpcomingJunctions (double pos, double range, const std::vector< MSLane * > &contLanes) const |
Returns all upcoming junctions within given range along the given (non-internal) continuation lanes measured from given position. More... | |
std::vector< const MSLink * > | getUpcomingLinks (double pos, double range, const std::vector< MSLane * > &contLanes) const |
Returns all upcoming links within given range along the given (non-internal) continuation lanes measured from given position. More... | |
std::set< MSVehicle * > | getVehiclesInRange (const double a, const double b) const |
Returns all vehicles on the lane overlapping with the interval [a,b]. More... | |
bool | hasPedestrians () const |
whether the lane has pedestrians on it More... | |
void | initRestrictions () |
initialized vClass-specific speed limits More... | |
bool | isApproachedFrom (MSEdge *const edge) |
bool | isApproachedFrom (MSEdge *const edge, MSLane *const lane) |
bool | isEmpty () const |
bool | isInternal () const |
bool | isLinkEnd (std::vector< MSLink * >::const_iterator &i) const |
bool | isLinkEnd (std::vector< MSLink * >::iterator &i) |
virtual bool | isSelected () const |
whether this lane is selected in the GUI More... | |
bool | knowsParameter (const std::string &key) const |
Returns whether the parameter is known. More... | |
void | leftByLaneChange (MSVehicle *v) |
MSLane (const std::string &id, double maxSpeed, double length, MSEdge *const edge, int numericalID, const PositionVector &shape, double width, SVCPermissions permissions, int index, bool isRampAccel, const std::string &type) | |
Constructor. More... | |
bool | mustCheckJunctionCollisions () const |
whether this lane must check for junction collisions More... | |
bool | needsCollisionCheck () const |
short-circut collision check if nothing changed since the last check More... | |
std::pair< const MSPerson *, double > | nextBlocking (double minPos, double minRight, double maxLeft, double stopTime=0) const |
This is just a wrapper around MSPModel::nextBlocking. You should always check using hasPedestrians before calling this method. More... | |
virtual void | removeParking (MSVehicle *veh) |
remove parking vehicle. This must be syncrhonized when running with GUI More... | |
virtual MSVehicle * | removeVehicle (MSVehicle *remVehicle, MSMoveReminder::Notification notification, bool notify=true) |
void | requireCollisionCheck () |
require another collision check due to relevant changes in the simulation More... | |
void | resetPermissions (long long transientID) |
virtual void | setID (const std::string &newID) |
resets the id More... | |
void | setLength (double val) |
Sets a new length for the lane (used by TraCI only) More... | |
void | setMaxSpeed (double val) |
Sets a new maximum speed for the lane (used by TraCI and MSCalibrator) More... | |
virtual void | setParameter (const std::string &key, const std::string &value) |
Sets a parameter. More... | |
void | setParameters (const Parameterised ¶ms) |
set the inner key/value map in map<string, string> format More... | |
void | setParametersMap (const std::map< std::string, std::string > ¶msMap) |
set the inner key/value map in map<string, string> format More... | |
void | setParametersStr (const std::string ¶msString, const std::string kvsep="=", const std::string sep="|") |
set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN" More... | |
void | setPermissions (SVCPermissions permissions, long long transientID) |
Sets the permissions to the given value. If a transientID is given, the permissions are recored as temporary. More... | |
void | setRightSideOnEdge (double value, int rightmostSublane) |
void | setStopOffsets (std::map< SVCPermissions, double > stopOffsets) |
Set vehicle class specific stopOffsets. More... | |
void | sortManeuverReservations () |
sorts myManeuverReservations More... | |
void | sortPartialVehicles () |
sorts myPartialVehicles More... | |
void | unsetParameter (const std::string &key) |
Removes a parameter. More... | |
void | updateParameters (const std::map< std::string, std::string > &mapArg) |
Adds or updates all given parameters from the map. More... | |
void | visit (const LaneStoringVisitor &cont) const |
Callback for visiting the lane when traversing an RTree. More... | |
void | writeParams (OutputDevice &device) const |
write Params in the given outputdevice More... | |
virtual | ~MSLane () |
Destructor. More... | |
Additional initialisation | |
void | addLink (MSLink *link) |
Delayed initialization. More... | |
void | addNeigh (const std::string &id) |
Adds a neighbor to this lane. More... | |
interaction with MSMoveReminder | |
virtual void | addMoveReminder (MSMoveReminder *rem) |
Add a move-reminder to move-reminder container. More... | |
const std::vector< MSMoveReminder * > & | getMoveReminders () const |
Return the list of this lane's move reminders. More... | |
Vehicle insertion | |
bool | insertVehicle (MSVehicle &v) |
Tries to insert the given vehicle. More... | |
bool | isInsertionSuccess (MSVehicle *vehicle, double speed, double pos, double posLat, bool recheckNextLanes, MSMoveReminder::Notification notification) |
Tries to insert the given vehicle with the given state (speed and pos) More... | |
bool | checkFailure (const MSVehicle *aVehicle, double &speed, double &dist, const double nspeed, const bool patchSpeed, const std::string errorMsg) const |
bool | lastInsertion (MSVehicle &veh, double mspeed, double posLat, bool patchSpeed) |
inserts vehicle as close as possible to the last vehicle on this lane (or at the end of the lane if there is no leader) More... | |
bool | freeInsertion (MSVehicle &veh, double speed, double posLat, MSMoveReminder::Notification notification=MSMoveReminder::NOTIFICATION_DEPARTED) |
Tries to insert the given vehicle on any place. More... | |
void | forceVehicleInsertion (MSVehicle *veh, double pos, MSMoveReminder::Notification notification, double posLat=0) |
Inserts the given vehicle at the given position. More... | |
Handling vehicles lapping into several lanes (-> partial occupation) | |
or which committed a maneuver that will lead them into another (sublane case -> maneuver reservations) | |
virtual double | setPartialOccupation (MSVehicle *v) |
Sets the information about a vehicle lapping into this lane. More... | |
virtual void | resetPartialOccupation (MSVehicle *v) |
Removes the information about a vehicle lapping into this lane. More... | |
virtual void | setManeuverReservation (MSVehicle *v) |
Registers the lane change intentions (towards this lane) for the given vehicle. More... | |
virtual void | resetManeuverReservation (MSVehicle *v) |
Unregisters a vehicle, which previously registered for maneuvering into this lane. More... | |
const MSLeaderInfo | getLastVehicleInformation (const MSVehicle *ego, double latOffset, double minPos=0, bool allowCached=true) const |
Returns the last vehicles on the lane. More... | |
const MSLeaderInfo | getFirstVehicleInformation (const MSVehicle *ego, double latOffset, bool onlyFrontOnLane, double maxPos=std::numeric_limits< double >::max(), bool allowCached=true) const |
analogue to getLastVehicleInformation but in the upstream direction More... | |
Access to vehicles | |
int | getVehicleNumber () const |
Returns the number of vehicles on this lane (for which this lane is responsible) More... | |
int | getVehicleNumberWithPartials () const |
Returns the number of vehicles on this lane (including partial occupators) More... | |
int | getPartialVehicleNumber () const |
Returns the number of vehicles partially on this lane (for which this lane is not responsible) More... | |
virtual const VehCont & | getVehiclesSecure () const |
Returns the vehicles container; locks it for microsimulation. More... | |
AnyVehicleIterator | anyVehiclesBegin () const |
begin iterator for iterating over all vehicles touching this lane in downstream direction More... | |
AnyVehicleIterator | anyVehiclesEnd () const |
end iterator for iterating over all vehicles touching this lane in downstream direction More... | |
AnyVehicleIterator | anyVehiclesUpstreamBegin () const |
begin iterator for iterating over all vehicles touching this lane in upstream direction More... | |
AnyVehicleIterator | anyVehiclesUpstreamEnd () const |
end iterator for iterating over all vehicles touching this lane in upstream direction More... | |
virtual void | releaseVehicles () const |
Allows to use the container for microsimulation again. More... | |
Atomar value getter | |
int | getNumericalID () const |
Returns this lane's numerical id. More... | |
const PositionVector & | getShape () const |
Returns this lane's shape. More... | |
double | getLengthGeometryFactor () const |
return shape.length() / myLength More... | |
bool | isAccelLane () const |
return whether this lane is an acceleration lane More... | |
const std::string & | getLaneType () const |
return the type of this lane More... | |
double | interpolateLanePosToGeometryPos (double lanePos) const |
const Position | geometryPositionAtOffset (double offset, double lateralOffset=0) const |
double | interpolateGeometryPosToLanePos (double geometryPos) const |
double | getVehicleMaxSpeed (const SUMOTrafficObject *const veh) const |
Returns the lane's maximum speed, given a vehicle's speed limit adaptation. More... | |
double | getSpeedLimit () const |
Returns the lane's maximum allowed speed. More... | |
double | getLength () const |
Returns the lane's length. More... | |
SVCPermissions | getPermissions () const |
Returns the vehicle class permissions for this lane. More... | |
double | getWidth () const |
Returns the lane's width. More... | |
int | getIndex () const |
Returns the lane's index. More... | |
Vehicle movement (longitudinal) | |
virtual void | planMovements (const SUMOTime t) |
Compute safe velocities for all vehicles based on positions and speeds from the last time step. Also registers ApproachingVehicleInformation for all links. More... | |
virtual void | setJunctionApproaches (const SUMOTime t) const |
Register junction approaches for all vehicles after velocities have been planned. More... | |
void | updateLeaderInfo (const MSVehicle *veh, VehCont::reverse_iterator &vehPart, VehCont::reverse_iterator &vehRes, MSLeaderInfo &ahead) const |
This updates the MSLeaderInfo argument with respect to the given MSVehicle. All leader-vehicles on the same edge, which are relevant for the vehicle (i.e. with position > vehicle's position) and not already integrated into the LeaderInfo, are integrated. The given iterators vehPart and vehRes give access to these vehicles which are either partial occupators or have issued a maneuver reservation for the lane (the latter occurs only for the sublane model). More... | |
virtual void | executeMovements (const SUMOTime t) |
Executes planned vehicle movements with regards to right-of-way. More... | |
virtual void | integrateNewVehicles () |
Insert buffered vehicle into the real lane. More... | |
void | updateLengthSum () |
updated current vehicle length sum (delayed to avoid lane-order-dependency) More... | |
Current state retrieval | |
double | getMeanSpeed () const |
Returns the mean speed on this lane. More... | |
double | getMeanSpeedBike () const |
get the mean speed of all bicycles on this lane More... | |
double | getWaitingSeconds () const |
Returns the overall waiting time on this lane. More... | |
double | getBruttoOccupancy () const |
Returns the brutto (including minGaps) occupancy of this lane during the last step. More... | |
double | getNettoOccupancy () const |
Returns the netto (excluding minGaps) occupancy of this lane during the last step (including minGaps) More... | |
double | getBruttoVehLenSum () const |
Returns the sum of lengths of vehicles, including their minGaps, which were on the lane during the last step. More... | |
double | getCO2Emissions () const |
Returns the sum of last step CO2 emissions. More... | |
double | getCOEmissions () const |
Returns the sum of last step CO emissions. More... | |
double | getPMxEmissions () const |
Returns the sum of last step PMx emissions. More... | |
double | getNOxEmissions () const |
Returns the sum of last step NOx emissions. More... | |
double | getHCEmissions () const |
Returns the sum of last step HC emissions. More... | |
double | getFuelConsumption () const |
Returns the sum of last step fuel consumption. More... | |
double | getElectricityConsumption () const |
Returns the sum of last step electricity consumption. More... | |
double | getHarmonoise_NoiseEmissions () const |
Returns the sum of last step noise emissions. More... | |
State saving/loading | |
void | saveState (OutputDevice &out) |
Saves the state of this lane into the given stream. More... | |
void | clearState () |
Remove all vehicles before quick-loading state. More... | |
void | loadState (const std::vector< std::string > &vehIDs, MSVehicleControl &vc) |
Loads the state of this segment with the given parameters. More... | |
bool | hasApproaching () const |
Static Public Member Functions | |
static bool | areParametersValid (const std::string &value, bool report=false, ParameterisedAttrType attrType=ParameterisedAttrType::STRING, const std::string kvsep="=", const std::string sep="|") |
check if given string can be parsed to a parameters map "key1=value1|key2=value2|...|keyN=valueN" More... | |
static void | clear () |
Clears the dictionary. More... | |
static MSLane * | dictionary (const std::string &id) |
Returns the MSLane associated to the key id. More... | |
static bool | dictionary (const std::string &id, MSLane *lane) |
Static (sic!) container methods {. More... | |
static int | dictSize () |
Returns the number of stored lanes. More... | |
template<class RTREE > | |
static void | fill (RTREE &into) |
Fills the given RTree with lane instances. More... | |
static CollisionAction | getCollisionAction () |
template<class T > | |
static std::string | getIDSecure (const T *obj, const std::string &fallBack="NULL") |
get an identifier for Named-like object which may be Null More... | |
static int | getNumRNGs () |
return the number of RNGs More... | |
static void | initCollisionOptions (const OptionsCont &oc) |
static void | initRNGs (const OptionsCont &oc) |
initialize rngs More... | |
static void | insertIDs (std::vector< std::string > &into) |
Adds the ids of all stored lanes into the given vector. More... | |
static void | loadRNGState (int index, const std::string &state) |
load random number generator state for the given rng index More... | |
static void | saveRNGStates (OutputDevice &out) |
save random number generator states to the given output device More... | |
static std::vector< MSLink * >::const_iterator | succLinkSec (const SUMOVehicle &veh, int nRouteSuccs, const MSLane &succLinkSource, const std::vector< MSLane * > &conts) |
static bool | teleportOnCollision () |
Static Public Attributes | |
static const long | CHANGE_PERMISSIONS_GUI = 1 |
static const long | CHANGE_PERMISSIONS_PERMANENT = 0 |
Protected Types | |
typedef std::map< std::string, MSLane * > | DictType |
definition of the static dictionary type More... | |
Protected Member Functions | |
bool | checkForPedestrians (const MSVehicle *aVehicle, double &speed, double &dist, double pos, bool patchSpeed) const |
check whether pedestrians on this lane interfere with vehicle insertion More... | |
bool | detectCollisionBetween (SUMOTime timestep, const std::string &stage, MSVehicle *collider, MSVehicle *victim, std::set< const MSVehicle *, ComparatorNumericalIdLess > &toRemove, std::set< const MSVehicle *, ComparatorNumericalIdLess > &toTeleport) const |
detect whether there is a collision between the two vehicles More... | |
void | detectPedestrianJunctionCollision (const MSVehicle *collider, const PositionVector &colliderBoundary, const MSLane *foeLane, SUMOTime timestep, const std::string &stage) |
detect whether a vehicle collids with pedestrians on the junction More... | |
double | getDepartPosLat (const MSVehicle &veh) |
double | getDepartSpeed (const MSVehicle &veh, bool &patchSpeed) |
double | getMaximumBrakeDist () const |
compute maximum braking distance on this lane More... | |
void | handleCollisionBetween (SUMOTime timestep, const std::string &stage, MSVehicle *collider, MSVehicle *victim, double gap, double latGap, std::set< const MSVehicle *, ComparatorNumericalIdLess > &toRemove, std::set< const MSVehicle *, ComparatorNumericalIdLess > &toTeleport) const |
take action upon collision More... | |
bool | hasApproaching (const std::vector< MSLink * > &links) const |
check whether any of the outgoing links are being approached More... | |
virtual void | incorporateVehicle (MSVehicle *veh, double pos, double speed, double posLat, const MSLane::VehCont::iterator &at, MSMoveReminder::Notification notification=MSMoveReminder::NOTIFICATION_DEPARTED) |
Inserts the vehicle into this lane, and informs it about entering the network. More... | |
double | safeInsertionSpeed (const MSVehicle *veh, double seen, const MSLeaderInfo &leaders, double speed) |
return the maximum safe speed for insertion behind leaders (a negative value indicates that safe insertion is impossible) More... | |
virtual void | swapAfterLaneChange (SUMOTime t) |
moves myTmpVehicles int myVehicles after a lane change procedure More... | |
Protected Attributes | |
std::map< MSEdge *, std::vector< MSLane * > > | myApproachingLanes |
All direct internal and direct (disregarding internal predecessors) non-internal predecessor lanes of this lane. More... | |
double | myBruttoVehicleLengthSum |
The current length of all vehicles on this lane, including their minGaps. More... | |
double | myBruttoVehicleLengthSumToRemove |
The length of all vehicles that have left this lane in the current step (this lane, including their minGaps) More... | |
MSLane * | myCanonicalPredecessorLane |
Similar to LogicalPredecessorLane,. More... | |
MSLane * | myCanonicalSuccessorLane |
Main successor lane,. More... | |
MSEdge *const | myEdge |
The lane's edge, for routing only. More... | |
MSLeaderInfo | myFollowerInfo |
followers on all sublanes as seen by vehicles on consecutive lanes (cached) More... | |
SUMOTime | myFollowerInfoTime |
time step for which myFollowerInfo was last updated More... | |
std::string | myID |
The name of the object. More... | |
std::vector< IncomingLaneInfo > | myIncomingLanes |
All direct predecessor lanes. More... | |
int | myIndex |
The lane index. More... | |
const bool | myIsRampAccel |
whether this lane is an acceleration lane More... | |
const std::string | myLaneType |
the type of this lane More... | |
MSLeaderInfo | myLeaderInfo |
leaders on all sublanes as seen by approaching vehicles (cached) More... | |
SUMOTime | myLeaderInfoTime |
time step for which myLeaderInfo was last updated More... | |
double | myLength |
Lane length [m]. More... | |
const double | myLengthGeometryFactor |
precomputed myShape.length / myLength More... | |
std::vector< MSLink * > | myLinks |
MSLane * | myLogicalPredecessorLane |
VehCont | myManeuverReservations |
The vehicles which registered maneuvering into the lane within their current action step. This is currently only relevant for sublane simulation, since continuous lanechanging uses the partial vehicle mechanism. More... | |
double | myMaxSpeed |
Lane-wide speedlimit [m/s]. More... | |
bool | myNeedsCollisionCheck |
whether a collision check is currently needed More... | |
std::vector< std::string > | myNeighs |
double | myNettoVehicleLengthSum |
The current length of all vehicles on this lane, excluding their minGaps. More... | |
double | myNettoVehicleLengthSumToRemove |
The length of all vehicles that have left this lane in the current step (this lane, excluding their minGaps) More... | |
int | myNumericalID |
Unique numerical ID (set on reading by netload) More... | |
SVCPermissions | myOriginalPermissions |
The original vClass permissions for this lane (before temporary modifications) More... | |
std::set< const MSVehicle * > | myParkingVehicles |
VehCont | myPartialVehicles |
The lane's partial vehicles. This container holds all vehicles that are partially on this lane but which are in myVehicles of another lane. Reasons for partial occupancies include the following. More... | |
std::map< long long, SVCPermissions > | myPermissionChanges |
SVCPermissions | myPermissions |
The vClass permissions for this lane. More... | |
const std::map< SUMOVehicleClass, double > * | myRestrictions |
The vClass speed restrictions for this lane. More... | |
int | myRightmostSublane |
the index of the rightmost sublane of this lane on myEdge More... | |
double | myRightSideOnEdge |
the combined width of all lanes with lower index on myEdge More... | |
int | myRNGIndex |
PositionVector | myShape |
The shape of the lane. More... | |
std::map< SVCPermissions, double > | myStopOffsets |
VehCont | myTmpVehicles |
Container for lane-changing vehicles. After completion of lane-change- process, the containers will be swapped with myVehicles. More... | |
FXSynchQue< MSVehicle *, std::vector< MSVehicle * > > | myVehBuffer |
Buffer for vehicles that moved from their previous lane onto this one. Integrated after all vehicles executed their moves. More... | |
VehCont | myVehicles |
The lane's vehicles. This container holds all vehicles that have their front (longitudinally) and their center (laterally) on this lane. These are the vehicles that this lane is 'responsibly' for (i.e. when executing movements) More... | |
const double | myWidth |
Lane width [m]. More... | |
Static Protected Attributes | |
static DictType | myDict |
Static dictionary to associate string-ids with objects. More... | |
static std::vector< std::mt19937 > | myRNGs |
Private Member Functions | |
MSLane (const MSLane &) | |
invalidated copy constructor More... | |
MSLane & | operator= (const MSLane &) |
invalidated assignment operator More... | |
Static Private Member Functions | |
static bool | isParameterValid (const std::string &value, ParameterisedAttrType attrType, const std::string &kvsep, const std::string &sep) |
check if given string can be parsed to a parameter of type "key=value" More... | |
Private Attributes | |
ParameterisedAttrType | myAttrType |
parameterised type More... | |
std::map< std::string, std::string > | myMap |
The key->value map. More... | |
std::vector< MSMoveReminder * > | myMoveReminders |
This lane's move reminder. More... | |
std::vector< StopWatch< std::chrono::nanoseconds > > | myStopWatch |
Static Private Attributes | |
static bool | myCheckJunctionCollisions |
static CollisionAction | myCollisionAction |
the action to take on collisions More... | |
static double | myCollisionMinGapFactor |
static SUMOTime | myCollisionStopTime |
static bool | myExtrapolateSubstepDepart |
Friends | |
class | AnyVehicleIterator |
class | MSLaneChanger |
needs access to myTmpVehicles (this maybe should be done via double-buffering!!!) More... | |
class | MSLaneChangerSublane |
class | MSQueueExport |
Representation of a lane in the micro simulation.
Class which represents a single lane. Somekind of the main class of the simulation. Allows moving vehicles.
|
protected |
typedef std::vector<MSVehicle*> MSLane::VehCont |
|
stronginherited |
@brie enum for Parameterised type
Enumerator | |
---|---|
STRING | Parameterised accept strings. |
DOUBLE | Parameterised only accept doubles. |
Definition at line 43 of file Parameterised.h.
MSLane::MSLane | ( | const std::string & | id, |
double | maxSpeed, | ||
double | length, | ||
MSEdge *const | edge, | ||
int | numericalID, | ||
const PositionVector & | shape, | ||
double | width, | ||
SVCPermissions | permissions, | ||
int | index, | ||
bool | isRampAccel, | ||
const std::string & | type | ||
) |
Constructor.
[in] | id | The lane's id |
[in] | maxSpeed | The speed allowed on this lane |
[in] | length | The lane's length |
[in] | edge | The edge this lane belongs to |
[in] | numericalID | The numerical id of the lane |
[in] | shape | The shape of the lane |
[in] | width | The width of the lane |
[in] | permissions | Encoding of the Vehicle classes that may drive on this lane |
[in] | index | The index of this lane within its parent edge |
[in] | isRampAccel | Whether this lane is an acceleration lane |
Definition at line 180 of file MSLane.cpp.
References initRestrictions(), myRNGIndex, and myRNGs.
|
virtual |
|
private |
invalidated copy constructor
void MSLane::addApproachingLane | ( | MSLane * | lane, |
bool | warnMultiCon | ||
) |
Definition at line 2227 of file MSLane.cpp.
References getEdge(), Named::getID(), MSEdge::isInternal(), myApproachingLanes, and WRITE_WARNING.
Referenced by NLHandler::addConnection().
Definition at line 2217 of file MSLane.cpp.
References getLength(), MSLane::IncomingLaneInfo::lane, MSLane::IncomingLaneInfo::length, myIncomingLanes, and MSLane::IncomingLaneInfo::viaLink.
Referenced by NLHandler::addConnection().
void MSLane::addLink | ( | MSLink * | link | ) |
Delayed initialization.
Not all lane-members are known at the time the lane is born, above all the pointers to other lanes, so we have to add them later.
[in] | link | An outgoing link |
Definition at line 244 of file MSLane.cpp.
References myLinks.
Referenced by NLHandler::addConnection().
|
virtual |
Add a move-reminder to move-reminder container.
The move reminder will not be deleted by the lane.
[in] | rem | The move reminder to add |
Definition at line 262 of file MSLane.cpp.
References myMoveReminders, and myVehicles.
Referenced by MSMoveReminder::MSMoveReminder().
void MSLane::addNeigh | ( | const std::string & | id | ) |
Adds a neighbor to this lane.
[in] | id | The lane's id |
Definition at line 250 of file MSLane.cpp.
References Named::getID(), getLength(), getOpposite(), myNeighs, toString(), and WRITE_WARNING.
void MSLane::addParking | ( | MSVehicle * | veh | ) |
add parking vehicle. This should only used during state loading
Definition at line 3059 of file MSLane.cpp.
References myParkingVehicles.
Referenced by MSVehicleTransfer::loadState().
|
inlineinherited |
Adds this object to the given container.
[in,filled] | cont The container to add this item to |
Definition at line 117 of file Named.h.
References Named::StoringVisitor::add().
|
inline |
Definition at line 812 of file MSLane.h.
References myPermissions.
Referenced by NLTriggerBuilder::addAccess(), MSBaseVehicle::addStop(), MSLaneChanger::changeOpposite(), libsumo::Helper::convertCartesianToRoadMap(), libsumo::Helper::findCloserLane(), MSPModel_NonInteracting::PState::getPosition(), MSVehicle::replaceStop(), MSVehicle::updateBestLanes(), and MSLCM_SL2015::updateExpectedSublaneSpeeds().
|
inline |
begin iterator for iterating over all vehicles touching this lane in downstream direction
Definition at line 432 of file MSLane.h.
References AnyVehicleIterator, myPartialVehicles, myTmpVehicles, and myVehicles.
Referenced by detectCollisions(), getFollowersOnConsecutive(), getLastVehicleInformation(), getLeader(), MSLink::getLeaderInfo(), MSPModel_Striping::getVehicleObstacles(), and MSPModel_Striping::moveInDirection().
|
inline |
end iterator for iterating over all vehicles touching this lane in downstream direction
Definition at line 438 of file MSLane.h.
References AnyVehicleIterator, myPartialVehicles, myTmpVehicles, and myVehicles.
Referenced by detectCollisions(), getFollowersOnConsecutive(), getLeader(), MSLink::getLeaderInfo(), MSPModel_Striping::getVehicleObstacles(), and MSPModel_Striping::moveInDirection().
|
inline |
begin iterator for iterating over all vehicles touching this lane in upstream direction
Definition at line 444 of file MSLane.h.
References AnyVehicleIterator, myPartialVehicles, myTmpVehicles, and myVehicles.
Referenced by getFirstVehicleInformation(), getFollower(), and MSPModel_Striping::getVehicleObstacles().
|
inline |
end iterator for iterating over all vehicles touching this lane in upstream direction
Definition at line 450 of file MSLane.h.
References AnyVehicleIterator.
Referenced by getFollower(), and MSPModel_Striping::getVehicleObstacles().
|
virtual |
Returns the information whether this lane may be used to continue the current route
Definition at line 1964 of file MSLane.cpp.
References MSVehicle::getBestLanes(), MSVehicle::getBestLanesContinuation(), MSVehicle::getLaneIndex(), MSEdge::isInternal(), myEdge, myLinks, MSBaseVehicle::succEdge(), and succLinkSec().
Referenced by executeMovements().
|
staticinherited |
check if given string can be parsed to a parameters map "key1=value1|key2=value2|...|keyN=valueN"
Definition at line 217 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::isParameterValid(), and WRITE_WARNING.
Referenced by GNEAccess::isValid(), GNEBusStop::isValid(), GNECalibrator::isValid(), GNECalibratorFlow::isValid(), GNEChargingStation::isValid(), GNEClosingLaneReroute::isValid(), GNEClosingReroute::isValid(), GNEContainerStop::isValid(), GNEDestProbReroute::isValid(), GNEDetectorE1::isValid(), GNEDetectorE1Instant::isValid(), GNEDetectorE2::isValid(), GNEDetectorE3::isValid(), GNEDetectorEntryExit::isValid(), GNEParkingArea::isValid(), GNEParkingAreaReroute::isValid(), GNEParkingSpace::isValid(), GNEPOI::isValid(), GNEPoly::isValid(), GNERerouter::isValid(), GNERerouterInterval::isValid(), GNERouteProbe::isValid(), GNERouteProbReroute::isValid(), GNETAZ::isValid(), GNETAZSourceSink::isValid(), GNEVaporizer::isValid(), GNEVariableSpeedSign::isValid(), GNEVariableSpeedSignStep::isValid(), GNEEdgeData::isValid(), GNEEdgeRelData::isValid(), GNETAZRelData::isValid(), GNEPerson::isValid(), GNEPersonTrip::isValid(), GNERide::isValid(), GNERoute::isValid(), GNEVehicle::isValid(), GNEVehicleType::isValid(), GNEWalk::isValid(), GNEConnection::isValid(), GNECrossing::isValid(), GNEEdge::isValid(), GNEEdgeType::isValid(), GNEJunction::isValid(), GNELane::isValid(), GNELaneType::isValid(), GNEInspectorFrame::ParametersEditorInspector::onCmdSetParameters(), and GNEFrameAttributesModuls::ParametersEditorCreator::onCmdSetParameters().
void MSLane::changeLanes | ( | const SUMOTime | time | ) |
Definition at line 1878 of file MSLane.cpp.
References MSEdge::changeLanes(), and myEdge.
void MSLane::checkBufferType | ( | ) |
Definition at line 232 of file MSLane.cpp.
References MSGlobals::gNumSimThreads, myVehBuffer, and FXSynchQue< T, Container >::unsetCondition().
bool MSLane::checkFailure | ( | const MSVehicle * | aVehicle, |
double & | speed, | ||
double & | dist, | ||
const double | nspeed, | ||
const bool | patchSpeed, | ||
const std::string | errorMsg | ||
) | const |
Definition at line 642 of file MSLane.cpp.
References MSCFModel::brakeGap(), MSInsertionControl::descheduleDeparture(), MSGlobals::gCheckRoutes, MSVehicle::getCarFollowModel(), MSCFModel::getEmergencyDecel(), Named::getID(), MSNet::getInsertionControl(), MSNet::getInstance(), MSVehicleType::getMinGap(), MSBaseVehicle::getVehicleType(), MIN2(), WRITE_ERROR, and WRITE_WARNING.
Referenced by checkForPedestrians(), and isInsertionSuccess().
|
protected |
check whether pedestrians on this lane interfere with vehicle insertion
Definition at line 3768 of file MSLane.cpp.
References checkFailure(), DEBUG_COND2, MSVehicle::getCarFollowModel(), getEdge(), Named::getID(), MSVehicle::getLateralPositionOnLane(), MSVehicleType::getLength(), MSVehicleType::getLengthWithGap(), MSCFModel::getMaxDecel(), MSVehicle::getRightSideOnLane(), MSBaseVehicle::getVehicleType(), MSVehicleType::getWidth(), hasPedestrians(), nextBlocking(), SIMTIME, and MSCFModel::stopSpeed().
Referenced by isInsertionSuccess().
|
static |
Clears the dictionary.
Definition at line 1931 of file MSLane.cpp.
References myDict.
Referenced by MSNet::clearAll().
|
inherited |
Clears the parameter map.
Definition at line 140 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NLHandler::beginEdgeParsing(), and GNERouteHandler::closeRoute().
void MSLane::clearState | ( | ) |
Remove all vehicles before quick-loading state.
Definition at line 3120 of file MSLane.cpp.
References myBruttoVehicleLengthSum, myBruttoVehicleLengthSumToRemove, myFollowerInfoTime, myLeaderInfoTime, myLinks, myManeuverReservations, myNettoVehicleLengthSum, myNettoVehicleLengthSumToRemove, myParkingVehicles, myPartialVehicles, myVehicles, and SUMOTime_MIN.
|
protected |
detect whether there is a collision between the two vehicles
Definition at line 1570 of file MSLane.cpp.
References COLLISION_ACTION_TELEPORT, DEBUG_COND, DEBUG_COND2, DELTA_T, MSVehicle::getBackPositionOnLane(), MSVehicle::getCarFollowModel(), MSVehicle::getCenterOnEdge(), MSCFModel::getCollisionMinGapFactor(), Named::getID(), MSVehicle::getInfluencer(), MSVehicle::getLane(), MSVehicle::getLaneChangeModel(), MSVehicleType::getMinGap(), MSVehicle::getPositionOnLane(), MSBaseVehicle::getVehicleType(), MSVehicleType::getWidth(), MSGlobals::gLaneChangeDuration, handleCollisionBetween(), MSVehicle::hasInfluencer(), MSAbstractLaneChangeModel::haveLateralDynamics(), MSAbstractLaneChangeModel::isChangingLanes(), MSAbstractLaneChangeModel::isOpposite(), MSVehicle::Influencer::isRemoteAffected(), myCollisionAction, myCollisionMinGapFactor, and SIMTIME.
Referenced by detectCollisions().
|
virtual |
Check if vehicles are too close.
Reimplemented in GUILane.
Definition at line 1316 of file MSLane.cpp.
References MSVehicleTransfer::add(), anyVehiclesBegin(), anyVehiclesEnd(), COLLISION_ACTION_NONE, DEBUG_COND, DEBUG_COND2, detectCollisionBetween(), detectPedestrianJunctionCollision(), MSVehicle::getBackPositionOnLane(), MSEdge::getBidiEdge(), getBidiLane(), MSVehicle::getBoundingBox(), MSVehicle::getBoundingPoly(), Named::getID(), Named::getIDSecure(), MSNet::getInstance(), MSVehicleTransfer::getInstance(), MSVehicle::getLane(), MSVehicle::getLaneChangeModel(), getLastVehicleInformation(), MSVehicleType::getLength(), MSVehicle::getMutableLane(), MSEdge::getPersons(), MSVehicle::getPositionOnLane(), getRightSideOnEdge(), MSVehicle::getRightSideOnEdge(), MSAbstractLaneChangeModel::getShadowLane(), MSVehicle::getSpeed(), MSNet::getVehicleControl(), getVehicleNumberWithPartials(), MSBaseVehicle::getVehicleType(), MSVehicleType::getWidth(), handleCollisionBetween(), hasPedestrians(), MSAbstractLaneChangeModel::haveLateralDynamics(), mustCheckJunctionCollisions(), myCollisionAction, myEdge, myLength, myLinks, myNeedsCollisionCheck, myPartialVehicles, myVehicles, nextBlocking(), MSMoveReminder::NOTIFICATION_TELEPORT, MSMoveReminder::NOTIFICATION_VAPORIZED_COLLISION, MSLeaderInfo::numSublanes(), MSVehicle::onRemovalFromNet(), PositionVector::overlapsWith(), MSVehicleControl::registerCollision(), removeVehicle(), MSVehicleControl::scheduleVehicleRemoval(), SIMTIME, time2string(), toString(), and WRITE_WARNING.
Referenced by GUILane::detectCollisions().
|
protected |
detect whether a vehicle collids with pedestrians on the junction
Definition at line 1536 of file MSLane.cpp.
References DEBUG_COND, getEdge(), Named::getID(), MSNet::getInstance(), MSEdge::getPersons(), MSEdge::getSortedPersons(), MSNet::getVehicleControl(), hasPedestrians(), PositionVector::overlapsWith(), MSVehicleControl::registerCollision(), SIMTIME, time2string(), and WRITE_WARNING.
Referenced by detectCollisions().
|
static |
Returns the MSLane associated to the key id.
The lane is returned if exists, otherwise 0 is returned.
[in] | id | The id of the lane |
Definition at line 1920 of file MSLane.cpp.
References myDict.
|
static |
Static (sic!) container methods {.
Inserts a MSLane into the static dictionary
Returns true if the key id isn't already in the dictionary. Otherwise returns false.
[in] | id | The id of the lane |
[in] | lane | The lane itself |
make non-static
why is the id given? The lane is named
Definition at line 1908 of file MSLane.cpp.
References myDict.
Referenced by NLHandler::addConnection(), NLHandler::addLane(), MSRouteHandler::addStop(), MSBaseVehicle::addStop(), LIBSUMO_NAMESPACE::Lane::getLane(), NLTriggerBuilder::getLane(), NLDetectorBuilder::getLaneChecking(), NLShapeHandler::getLanePos(), MSE2Collector::getLanes(), getOpposite(), MSEdge::getStopPosition(), MSPedestrianPushButton::loadPushButtons(), MSRailSignalConstraint_Predecessor::loadState(), MSVehicleTransfer::loadState(), LIBSUMO_NAMESPACE::Vehicle::moveTo(), MSStateHandler::myStartElement(), MSTriggeredRerouter::myStartElement(), NLTriggerBuilder::parseAndBuildLaneSpeedTrigger(), NLTriggerBuilder::parseAndBuildOverheadWireSection(), NLHandler::parseLanes(), TraCIServerAPI_Lane::processSet(), MSE2Collector::recalculateDetectorLength(), and MSVehicle::replaceStop().
|
inlinestatic |
|
inline |
Returns true if there is not a single vehicle on the lane.
Definition at line 655 of file MSLane.h.
References myVehBuffer, myVehicles, and FXSynchQue< T, Container >::size().
Referenced by MSQueueExport::writeLane().
void MSLane::enteredByLaneChange | ( | MSVehicle * | v | ) |
Definition at line 2675 of file MSLane.cpp.
References MSVehicleType::getLength(), MSVehicleType::getLengthWithGap(), MSBaseVehicle::getVehicleType(), myBruttoVehicleLengthSum, and myNettoVehicleLengthSum.
Referenced by MSAbstractLaneChangeModel::primaryLaneChanged().
|
virtual |
Executes planned vehicle movements with regards to right-of-way.
This method goes through all vehicles calling their executeMove method which causes vehicles to update their positions and speeds. Vehicles wich move to the next lane are stored in the targets lane buffer
Reimplemented in GUILane.
Definition at line 1760 of file MSLane.cpp.
References MSVehicleTransfer::add(), appropriate(), COLLISION_ACTION_REMOVE, COLLISION_ACTION_TELEPORT, MSVehicle::collisionStopTime(), DEBUG_COND2, MSVehicle::executeMove(), MSVehicle::getBestLanesContinuation(), getCollisionAction(), getEdge(), MSNet::getEdgeControl(), Named::getID(), MSNet::getInstance(), MSVehicleTransfer::getInstance(), MSVehicle::getLane(), getLength(), MSVehicleType::getLength(), MSVehicleType::getLengthWithGap(), MSVehicle::getMutableLane(), MSVehicle::getPositionOnLane(), getSpeedLimit(), MSNet::getVehicleControl(), MSBaseVehicle::getVehicleType(), MSVehicle::getWaitingTime(), MSGlobals::gLateralResolution, MSGlobals::gTimeToGridlock, MSGlobals::gTimeToGridlockHighways, MSVehicle::hasArrived(), MSBaseVehicle::isParking(), MSBaseVehicle::isStopped(), MSEdge::isVaporizing(), myBruttoVehicleLengthSumToRemove, myLinks, myNeedsCollisionCheck, myNettoVehicleLengthSumToRemove, myParkingVehicles, myVehBuffer, myVehicles, MSEdgeControl::needsVehicleIntegration(), MSMoveReminder::NOTIFICATION_ARRIVED, MSMoveReminder::NOTIFICATION_VAPORIZED_COLLISION, MSMoveReminder::NOTIFICATION_VAPORIZED_VAPORIZER, MSVehicle::onRemovalFromNet(), FXSynchQue< T, Container >::push_back(), MSVehicleControl::registerCollision(), MSVehicleControl::registerTeleportJam(), MSVehicleControl::registerTeleportWrongLane(), MSVehicleControl::registerTeleportYield(), MSVehicle::resumeFromStopping(), MSVehicleControl::scheduleVehicleRemoval(), SIMTIME, succLinkSec(), time2string(), and WRITE_WARNING.
Referenced by GUILane::executeMovements().
|
static |
Fills the given RTree with lane instances.
[in,filled] | into The RTree to fill |
Definition at line 1948 of file MSLane.cpp.
References PositionVector::getBoxBoundary(), getShape(), Boundary::grow(), myDict, Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
Referenced by libsumo::Helper::collectObjectsInRange().
void MSLane::forceVehicleInsertion | ( | MSVehicle * | veh, |
double | pos, | ||
MSMoveReminder::Notification | notification, | ||
double | posLat = 0 |
||
) |
Inserts the given vehicle at the given position.
No checks are done, vehicle insertion using this method may generate collisions (possibly delayed).
[in] | veh | The vehicle to insert |
[in] | pos | The position at which the vehicle shall be inserted |
[in] | notification | The cause of insertion (i.e. departure, teleport, parking) defaults to departure |
[in] | posLat | The lateral position at which the vehicle shall be inserted |
Definition at line 1067 of file MSLane.cpp.
References getDepartSpeed(), MSVehicle::getSpeed(), MSBaseVehicle::hasDeparted(), incorporateVehicle(), myVehicles, and MSVehicle::updateBestLanes().
Referenced by MSVehicle::executeFractionalMove(), LIBSUMO_NAMESPACE::Vehicle::moveTo(), and MSAbstractLaneChangeModel::primaryLaneChanged().
bool MSLane::freeInsertion | ( | MSVehicle & | veh, |
double | speed, | ||
double | posLat, | ||
MSMoveReminder::Notification | notification = MSMoveReminder::NOTIFICATION_DEPARTED |
||
) |
Tries to insert the given vehicle on any place.
[in] | veh | The vehicle to insert |
[in] | speed | The maximum insertion speed |
[in] | notification | The cause of insertion (i.e. departure, teleport, parking) defaults to departure |
Definition at line 397 of file MSLane.cpp.
References MSVehicle::getBackPositionOnLane(), MSVehicle::getCarFollowModel(), getLength(), MSVehicleType::getLength(), MSCFModel::getMaxDecel(), MSVehicleType::getMinGap(), getMissingRearGap(), MSVehicle::getPositionOnLane(), MSCFModel::getSecureGap(), MSVehicle::getSpeed(), MSBaseVehicle::getVehicleType(), MSCFModel::insertionFollowSpeed(), isInsertionSuccess(), MIN2(), myLength, myPartialVehicles, myVehicles, MSMoveReminder::NOTIFICATION_TELEPORT, and MSVehicle::setTentativeLaneAndPosition().
Referenced by MSVehicleTransfer::checkInsertions(), and insertVehicle().
|
inline |
Definition at line 503 of file MSLane.h.
References interpolateLanePosToGeometryPos(), myShape, and PositionVector::positionAtOffset().
Referenced by GUIBusStop::addAccess(), GUIE3Collector::MyWrapper::buildDefinition(), TraCIServerAPI_Simulation::commandPositionConversion(), MSVehicle::computeAngle(), LIBSUMO_NAMESPACE::Simulation::convert2D(), LIBSUMO_NAMESPACE::Simulation::convert3D(), GUILane::debugDrawFoeIntersections(), GUIVehicle::drawAction_drawCarriageClass(), GUIEdge::drawMesoVehicles(), GUIVehicle::drawRouteHelper(), MSStoppingPlace::getAccessDistance(), MSVehicle::getBackPosition(), GUIMEVehicle::getCenteringBoundary(), NLShapeHandler::getLanePos(), MEVehicle::getPosition(), MSVehicle::getPosition(), MSVehicle::getPositionAlongBestLanes(), LIBSUMO_NAMESPACE::Vehicle::moveTo(), LIBSUMO_NAMESPACE::Person::moveToXY(), LIBSUMO_NAMESPACE::Vehicle::moveToXY(), MSPerson::MSPersonStage_Access::MSPersonStage_Access(), GUIInductLoop::MyWrapper::MyWrapper(), GUIInstantInductLoop::MyWrapper::MyWrapper(), GUIMEInductLoop::MyWrapper::MyWrapper(), GUIViewTraffic::onGamingClick(), and MSVehicle::validatePosition().
MSLane * MSLane::getBidiLane | ( | ) | const |
retrieve bidirectional lane or nullptr
XXX multi-lane edges are not considered
Definition at line 3835 of file MSLane.cpp.
References MSEdge::getBidiEdge(), MSEdge::getLanes(), and myEdge.
Referenced by MSRailSignal::LinkInfo::buildDriveWay(), MSRailSignal::DriveWay::buildRoute(), MSVehicle::checkReversal(), detectCollisions(), GUIVehicle::drawRouteHelper(), MSVehicle::enterLaneAtInsertion(), isInsertionSuccess(), MSVehicle::planMoveInternal(), and MSVehicle::processLaneAdvances().
double MSLane::getBruttoOccupancy | ( | ) | const |
Returns the brutto (including minGaps) occupancy of this lane during the last step.
Definition at line 2693 of file MSLane.cpp.
References MSVehicleType::getLength(), MSVehicle::getPositionOnLane(), getVehiclesSecure(), MSBaseVehicle::getVehicleType(), MIN2(), myBruttoVehicleLengthSum, myLength, myPartialVehicles, myVehicles, and releaseVehicles().
Referenced by MSLCM_LC2013::_wantsChange(), GUILane::getColorValue(), GUILane::getParameterWindow(), GUILane::getScaleValue(), and MSEdge::insertVehicle().
|
inline |
Returns the sum of lengths of vehicles, including their minGaps, which were on the lane during the last step.
Definition at line 1019 of file MSLane.h.
References myBruttoVehicleLengthSum.
Referenced by MSVehicle::checkRewindLinkLanes(), and MSLCHelper::getRoundaboutDistBonus().
MSLane * MSLane::getCanonicalPredecessorLane | ( | ) | const |
Return the main predecessor lane for the current. If there are several incoming lanes, the first attempt is to return the priorized. If this does not yield an unambiguous lane, the one with the least angle difference to the current is selected.
Definition at line 2588 of file MSLane.cpp.
References Named::getID(), MSGlobals::gNumSimThreads, myCanonicalPredecessorLane, Named::myID, and myIncomingLanes.
Referenced by getEntryLink(), getFirstInternalInConnection(), and MSE2Collector::selectLanes().
MSLane * MSLane::getCanonicalSuccessorLane | ( | ) | const |
Return the main successor lane for the current. If there are several outgoing lanes, the first attempt is to return the priorized. If this does not yield an unambiguous lane, the one with the least angle difference to the current is selected.
Definition at line 2612 of file MSLane.cpp.
References Named::getID(), myCanonicalSuccessorLane, Named::myID, and myLinks.
Referenced by MSDevice_SSM::classifyEncounter(), MSPModel_Striping::getNextLane(), and MSE2Collector::selectLanes().
|
inline |
Definition at line 1090 of file MSLane.h.
References myRightSideOnEdge, and myWidth.
Referenced by MSVehicle::getCenterOnEdge().
double MSLane::getCO2Emissions | ( | ) | const |
Returns the sum of last step CO2 emissions.
Definition at line 2777 of file MSLane.cpp.
References getVehiclesSecure(), and releaseVehicles().
Referenced by GUILane::getColorValue(), GUILane::getScaleValue(), and MSFullExport::writeLane().
double MSLane::getCOEmissions | ( | ) | const |
Returns the sum of last step CO emissions.
Definition at line 2789 of file MSLane.cpp.
References getVehiclesSecure(), and releaseVehicles().
Referenced by GUILane::getColorValue(), GUILane::getScaleValue(), and MSFullExport::writeLane().
|
inlinestatic |
Definition at line 1235 of file MSLane.h.
References myCollisionAction.
Referenced by executeMovements(), and MSVehicle::resumeFromStopping().
std::pair< MSVehicle *const, double > MSLane::getCriticalLeader | ( | double | dist, |
double | seen, | ||
double | speed, | ||
const MSVehicle & | veh | ||
) | const |
Returns the most dangerous leader and the distance to him.
Goes along the vehicle's estimated used lanes (bestLaneConts). For each link, it is determined whether the ego vehicle will pass it. If so, the subsequent lane is investigated. Check all lanes up to the stopping distance of ego. Return the leader vehicle (and the gap) which puts the biggest speed constraint on ego.
If no leading vehicle was found, <0, -1> is returned.
Pretty slow, as it has to go along lanes.
[in] | dist | The distance to investigate |
[in] | seen | The already seen place (normally the place in front on own lane) |
[in] | speed | The speed of the vehicle used for determining whether a subsequent link will be opened at arrival time |
[in] | veh | The (ego) vehicle for which the information shall be computed |
Definition at line 2469 of file MSLane.cpp.
References MSCFModel::brakeGap(), DEBUG_COND2, MSVehicle::getBackPositionOnLane(), MSVehicle::getBestLanesContinuation(), MSVehicle::getCarFollowModel(), MSNet::getCurrentTimeStep(), Named::getID(), MSBaseVehicle::getImpatience(), MSNet::getInstance(), getLastAnyVehicle(), MSVehicle::getLateralPositionOnLane(), getLength(), MSVehicleType::getLength(), MSCFModel::getMaxDecel(), MSVehicleType::getMinGap(), MSVehicle::getSafeFollowSpeed(), MSVehicle::getSpeed(), getVehicleMaxSpeed(), MSBaseVehicle::getVehicleType(), MSCFModel::insertionFollowSpeed(), isInternal(), isLinkEnd(), MAX2(), SIMTIME, succLinkSec(), and TIME2STEPS.
Referenced by MSLaneChanger::checkChange().
int MSLane::getCrossingIndex | ( | ) | const |
return the index of the link to the next crossing if this is walkingArea, else -1
Definition at line 2682 of file MSLane.cpp.
References myLinks.
|
protected |
Definition at line 520 of file MSLane.cpp.
References CENTER, DEFAULT, SUMOVehicleParameter::departPosLat, SUMOVehicleParameter::departPosLatProcedure, MSBaseVehicle::getParameter(), MSBaseVehicle::getVehicleType(), getWidth(), MSVehicleType::getWidth(), GIVEN, LEFT, RandHelper::rand(), RANDOM, and RIGHT.
Referenced by insertVehicle().
|
protected |
Definition at line 485 of file MSLane.cpp.
References DEFAULT, SUMOVehicleParameter::departSpeed, SUMOVehicleParameter::departSpeedProcedure, DESIRED, MSBaseVehicle::getChosenSpeedFactor(), MSBaseVehicle::getParameter(), getVehicleMaxSpeed(), GIVEN, LIMIT, MAX, RandHelper::rand(), and RANDOM.
Referenced by forceVehicleInsertion(), and insertVehicle().
|
inherited |
Returns the value for a given key converted to a double.
[in] | key | The key to ask for |
[in] | defaultValue | The default value to return if no value is stored under the key |
Definition at line 122 of file Parameterised.cpp.
References Parameterised::myMap, StringUtils::toDouble(), and WRITE_WARNING.
Referenced by MSDevice_Battery::buildVehicleDevices(), MSDevice_ElecHybrid::buildVehicleDevices(), MSSOTLPolicy5DStimulus::getStimCox(), MSSOTLPolicy5DStimulus::getStimCoxExpDispersionIn(), MSSOTLPolicy5DStimulus::getStimCoxExpDispersionOut(), MSSOTLPolicy5DStimulus::getStimCoxExpIn(), MSSOTLPolicy5DStimulus::getStimCoxExpOut(), MSSOTLPolicy5DStimulus::getStimDivisorDispersionIn(), MSSOTLPolicy5DStimulus::getStimDivisorDispersionOut(), MSSOTLPolicy5DStimulus::getStimDivisorIn(), MSSOTLPolicy5DStimulus::getStimDivisorOut(), MSSOTLPolicy5DStimulus::getStimOffsetDispersionIn(), MSSOTLPolicy5DStimulus::getStimOffsetDispersionOut(), MSSOTLPolicy5DStimulus::getStimOffsetIn(), MSSOTLPolicy5DStimulus::getStimOffsetOut(), and MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus().
|
inline |
Returns the lane's edge.
Definition at line 673 of file MSLane.h.
References myEdge.
Referenced by MSLCM_LC2013::_patchSpeed(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSStageDriving::abort(), LaneStoringVisitor::add(), addApproachingLane(), NLHandler::addConnection(), MSRouteHandler::addPersonTrip(), MSRouteHandler::addStop(), MSBaseVehicle::addStop(), MSSwarmTrafficLightLogic::allowLine(), libsumo::Helper::applySubscriptionFilters(), MSVehicle::boardTransportables(), MSRailSignal::DriveWay::buildRoute(), MSSOTLE2Sensors::buildSensorForLane(), MSLaneChanger::checkChange(), MSLink::checkContOff(), checkForPedestrians(), MSVehicle::checkLinkLeader(), MSVehicle::checkReversal(), MSVehicle::checkRewindLinkLanes(), MSLCM_SL2015::checkStrategicChange(), MSLink::checkWalkingAreaFoe(), MSDevice_SSM::classifyEncounter(), MSEdge::closeBuilding(), GUILane::closeTraffic(), MSLCM_SL2015::computeSpeedGain(), MSLaneChanger::continueChange(), GUIDetectorBuilder::createInductLoop(), NLDetectorBuilder::createInductLoop(), detectPedestrianJunctionCollision(), GUILane::drawLane2LaneConnections(), GUILane::drawLinkNo(), GUILane::drawLinkRules(), GUILane::drawTLSLinkNo(), MSVehicle::enterLaneAtInsertion(), MSVehicle::enterLaneAtMove(), MSVehicle::estimateTimeToNextStop(), MSVehicle::executeMove(), executeMovements(), MSDevice_SSM::findFoeConflictLane(), MSDevice_SSM::findSurroundingVehicles(), MSStoppingPlace::getAccessDistance(), MSStoppingPlace::getAccessPos(), MSVehicle::getBestLanesContinuation(), MSVehicle::getCenterOnEdge(), MSLaneChanger::getColumnleader(), LIBSUMO_NAMESPACE::Vehicle::getDrivingDistance(), MSStageDriving::getEdge(), MSVehicle::getFollower(), getFollowersOnConsecutive(), MSVehicle::getLaneIndex(), MSVehicle::getLatOffset(), MSLink::getLeaderInfo(), GUIVehicle::getLeftSublaneOnEdge(), getLogicalPredecessorLane(), MSPModel_Striping::getNextLane(), MSPModel_Striping::getNextLaneObstacles(), LIBSUMO_NAMESPACE::Vehicle::getNextTLS(), MSCFModel_CC::getParameter(), GUILane::getParentName(), MSInsertionControl::getPendingEmits(), MSVehicle::getPosition(), GUIVehicle::getRightSublaneOnEdge(), MSLCHelper::getRoundaboutDistBonus(), LIBSUMO_NAMESPACE::TrafficLight::getServedPersonCount(), MSAbstractLaneChangeModel::getShadowDirection(), MSVehicle::getSpaceTillLastStanding(), MSVehicle::getUpcomingLanesUntil(), MSDevice_SSM::getVehiclesOnJunction(), handleCollisionBetween(), MSRailSignal::hasOncomingRailTraffic(), MSVehicle::influenceChangeDecision(), MSActuatedTrafficLightLogic::init(), MSTrafficLightLogic::initMesoTLSPenalties(), isInsertionSuccess(), MSVehicle::isLeader(), MSLCM_SL2015::keepLatGap(), MSLink::lastWasContMajor(), MSLink::lastWasContMajorGreen(), MSVehicle::leaveLane(), MESegment::limitedControlOverride(), MSRailSignal::LinkInfo::LinkInfo(), MSPedestrianPushButton::loadPushButtons(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), LIBSUMO_NAMESPACE::Vehicle::moveTo(), LIBSUMO_NAMESPACE::Person::moveToXY(), MSPModel_Striping::PState::moveToXY(), libsumo::Helper::moveToXYMap(), libsumo::Helper::moveToXYMap_matchingRoutePosition(), MSTriggeredRerouter::myEndElement(), MSDevice_SSM::notifyEnter(), MSDevice_Vehroutes::notifyEnter(), MSDevice_SSM::notifyLeave(), MSE3Collector::MSE3LeaveReminder::notifyLeave(), MSDevice_Bluelight::notifyMove(), GUIViewTraffic::onCmdAddRerouter(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdShowReachability(), MSLane::edge_finder::operator()(), MSLane::outgoing_lane_priority_sorter::operator()(), NLTriggerBuilder::parseAndBuildCalibrator(), MSRouteHandler::parseWalkPositions(), MSVehicle::passingMinor(), MSLCM_DK2008::patchSpeed(), MSVehicle::planMoveInternal(), MSInternalJunction::postloadInit(), MSLCM_SL2015::prepareStep(), MSAbstractLaneChangeModel::primaryLaneChanged(), MSPerson::MSPersonStage_Access::proceed(), MSStageDriving::proceed(), MSVehicle::processLaneAdvances(), MSVehicle::processLinkApproaches(), MSVehicle::processNextStop(), MSPModel_Striping::PState::PState(), MSBaseVehicle::replaceRoute(), MSVehicle::replaceStop(), GUIVehicle::rerouteDRTStop(), MSTriggeredRerouter::rerouteParkingArea(), MSVehicle::rerouteParkingArea(), MSTransportable::rerouteParkingArea(), MSVehicle::resumeFromStopping(), LIBSUMO_NAMESPACE::Lane::setAllowed(), LIBSUMO_NAMESPACE::Lane::setDisallowed(), MSLink::setRequestInformation(), GUITriggeredRerouter::shiftProbs(), MSVehicle::unsafeLinkAhead(), MSVehicle::updateBestLanes(), MSLCM_SL2015::updateCFRelated(), MSLCM_SL2015::updateExpectedSublaneSpeeds(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), MSVehicle::willStop(), MSElecHybridExport::write(), MSFCDExport::write(), and MSElecHybridExport::writeAggregated().
double MSLane::getElectricityConsumption | ( | ) | const |
Returns the sum of last step electricity consumption.
Definition at line 2849 of file MSLane.cpp.
References getVehiclesSecure(), and releaseVehicles().
Referenced by GUILane::getColorValue(), GUILane::getScaleValue(), and MSFullExport::writeLane().
const MSLink * MSLane::getEntryLink | ( | ) | const |
Returns the entry link if this is an internal lane, else nullptr.
Definition at line 2151 of file MSLane.cpp.
References getCanonicalPredecessorLane(), getLinkTo(), and isInternal().
Referenced by MSDevice_SSM::classifyEncounter(), MSLink::getLeaderInfo(), MSLink::getLengthBeforeCrossing(), getUpcomingLinks(), and MSDevice_SSM::getVehiclesOnJunction().
MSVehicle * MSLane::getFirstAnyVehicle | ( | ) | const |
returns the first vehicle that is fully or partially on this lane
Definition at line 2065 of file MSLane.cpp.
References MSVehicle::getPositionOnLane(), myPartialVehicles, and myVehicles.
Referenced by MSRailSignal::hasOncomingRailTraffic().
const MSLane * MSLane::getFirstInternalInConnection | ( | double & | offset | ) | const |
Returns 0 if the lane is not internal. Otherwise the first part of the connection (sequence of internal lanes along junction) corresponding to the lane is returned and the offset is set to the distance of the begin of this lane to the begin of the returned.
Definition at line 1890 of file MSLane.cpp.
References getCanonicalPredecessorLane(), getLength(), and isInternal().
Referenced by MSDevice_SSM::classifyEncounter().
const MSLeaderInfo MSLane::getFirstVehicleInformation | ( | const MSVehicle * | ego, |
double | latOffset, | ||
bool | onlyFrontOnLane, | ||
double | maxPos = std::numeric_limits<double>::max() , |
||
bool | allowCached = true |
||
) | const |
analogue to getLastVehicleInformation but in the upstream direction
Definition at line 1163 of file MSLane.cpp.
References MSLeaderInfo::addLeader(), anyVehiclesUpstreamBegin(), DEBUG_COND2, MSNet::getCurrentTimeStep(), Named::getID(), MSNet::getInstance(), MSVehicle::getLatOffset(), MSVehicle::getPositionOnLane(), MSGlobals::gNumSimThreads, MSVehicle::isFrontOnLane(), myFollowerInfo, myFollowerInfoTime, and myLength.
Referenced by getFollowersOnConsecutive().
std::pair< MSVehicle *const, double > MSLane::getFollower | ( | const MSVehicle * | ego, |
double | egoPos, | ||
double | dist, | ||
bool | ignoreMinorLinks | ||
) | const |
Find follower vehicle for the given ego vehicle (which may be on the opposite direction lane)
[in] | ego | The ego vehicle |
[in] | egoPos | The ego position mapped to the current lane |
[in] | dist | The look-back distance when looking at consecutive lanes |
[in] | ignoreMinorLinks | Whether backward search should stop at minor links |
Definition at line 3633 of file MSLane.cpp.
References anyVehiclesUpstreamBegin(), anyVehiclesUpstreamEnd(), DEBUG_COND2, getFollowersOnConsecutive(), Named::getID(), MSVehicleType::getLength(), MSVehicleType::getMinGap(), MSVehicle::getPositionOnLane(), and MSBaseVehicle::getVehicleType().
Referenced by libsumo::Helper::applySubscriptionFilters(), MSVehicle::getFollower(), getOppositeFollower(), and getOppositeLeader().
MSLeaderDistanceInfo MSLane::getFollowersOnConsecutive | ( | const MSVehicle * | ego, |
double | backOffset, | ||
bool | allSublanes, | ||
double | searchDist = -1 , |
||
bool | ignoreMinorLinks = false |
||
) | const |
return the sublane followers with the largest missing rear gap among all predecessor lanes (within dist)
XXX iterate in reverse and abort when there are no more freeSublanes
XXX dubious term. here for backwards compatibility
Definition at line 3166 of file MSLane.cpp.
References MSCriticalFollowerDistanceInfo::addFollower(), anyVehiclesBegin(), anyVehiclesEnd(), DEBUG_COND2, gDebugFlag1, getEdge(), getFirstVehicleInformation(), MSVehicle::getFurtherLanes(), Named::getID(), Named::getIDSecure(), getIncomingLanes(), MSVehicle::getLane(), MSEdge::getLanes(), MSVehicle::getLatOffset(), getLength(), MSVehicleType::getLength(), getLogicalPredecessorLane(), getMaximumBrakeDist(), MSVehicleType::getMinGap(), MSVehicle::getPositionOnLane(), getRightSideOnEdge(), MSBaseVehicle::getVehicleType(), MSVehicle::isFrontOnLane(), MSVehicle::isOnRoad(), MSLane::IncomingLaneInfo::lane, MSLane::IncomingLaneInfo::length, MAX2(), myEdge, myIncomingLanes, MSLeaderInfo::numFreeSublanes(), MSLeaderInfo::numSublanes(), MSVehicle::onFurtherEdge(), SIMTIME, MSLeaderInfo::toString(), MSCriticalFollowerDistanceInfo::toString(), and MSLane::IncomingLaneInfo::viaLink.
Referenced by getFollower(), getMissingRearGap(), and isInsertionSuccess().
double MSLane::getFuelConsumption | ( | ) | const |
Returns the sum of last step fuel consumption.
Definition at line 2837 of file MSLane.cpp.
References getVehiclesSecure(), and releaseVehicles().
Referenced by GUILane::getColorValue(), GUILane::getScaleValue(), and MSFullExport::writeLane().
double MSLane::getHarmonoise_NoiseEmissions | ( | ) | const |
Returns the sum of last step noise emissions.
Definition at line 2861 of file MSLane.cpp.
References getVehiclesSecure(), releaseVehicles(), and HelpersHarmonoise::sum().
Referenced by GUILane::getColorValue(), GUILane::getScaleValue(), and MSFullExport::writeLane().
double MSLane::getHCEmissions | ( | ) | const |
Returns the sum of last step HC emissions.
Definition at line 2825 of file MSLane.cpp.
References getVehiclesSecure(), and releaseVehicles().
Referenced by GUILane::getColorValue(), GUILane::getScaleValue(), and MSFullExport::writeLane().
|
inlineinherited |
Returns the id.
Definition at line 73 of file Named.h.
References Named::myID.
Referenced by MSLCM_LC2013::_patchSpeed(), MSLCM_SL2015::_patchSpeed(), MSCFModel_ACC::_v(), MSCFModel_CACC::_v(), MSCFModel_Wiedemann::_v(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSTransportableControl::abortAnyWaitingForVehicle(), MSLaneChangerSublane::abortLCManeuver(), MSLCM_LC2013::adaptSpeedToPedestrians(), MSVehicle::adaptToLeader(), MSVehicle::adaptToLeaders(), MSVehicleTransfer::add(), MSPModel_Striping::add(), PCPolyContainer::add(), ShapeContainer::add(), MSDetectorControl::add(), NLTriggerBuilder::addAccess(), RORouteDef::addAlternative(), addApproachingLane(), MSChargingStation::addChargeValueForOutput(), MSOverheadWire::addChargeValueForOutput(), NBNodeCont::addCluster2Join(), NLHandler::addConnection(), NBLoadedSUMOTLDef::addConnection(), MSPModel_Striping::addCrossingVehs(), RODFDetectorCon::addDetector(), RONet::addEdge(), ROJTREdge::addFollowerProbability(), MSLCM_SL2015::addLCSpeedAdvice(), MSTLLogicControl::TLSLogicVariants::addLogic(), addNeigh(), RONet::addNode(), MSTractionSubstation::addOverheadWireClampToCircuit(), MSTractionSubstation::addOverheadWireInnerSegmentToCircuit(), MSTractionSubstation::addOverheadWireSegmentToCircuit(), NIImporter_SUMO::addPhase(), GUIEdge::addRerouter(), MSDispatch::addReservation(), MSRouteHandler::addRide(), RONet::addRouteDef(), NIXMLEdgesHandler::addSplit(), NBTrafficLightLogic::addStep(), MSRouteHandler::addStop(), RORouteHandler::addStop(), ROVehicle::addStop(), MSBaseVehicle::addStop(), MSNet::addStoppingPlace(), MSVehicle::addTransportable(), AGActivityTripWriter::addTrip(), MSRouteHandler::addVehicleStopsToImplicitRoute(), NIXMLConnectionsHandler::addWalkingArea(), MSTransportable::appendStage(), LIBSUMO_NAMESPACE::Person::appendWalkingStage(), MSCFModel::applyHeadwayAndSpeedDifferencePerceptionErrors(), MSCFModel::applyHeadwayPerceptionError(), libsumo::Helper::applySubscriptionFilterLateralDistanceSinglePass(), libsumo::Helper::applySubscriptionFilters(), MSDevice_ToC::awarenessRecoveryStep(), GUITrafficLightLogicWrapper::begin2TrackPhases(), MSPModel_Striping::blockedAtDist(), MSLink::blockedAtTime(), MSLink::blockedByFoe(), MSVehicle::boardTransportables(), NLEdgeControlBuilder::build(), NIVisumTL::build(), RODFNet::buildApproachList(), MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildCountSensorForLane(), MSSOTLE2Sensors::buildCountSensorForOutLane(), NBNode::buildCrossings(), NBNode::buildCrossingsAndWalkingAreas(), MSTransportableDevice_Routing::buildDevices(), MSTransportableDevice_FCD::buildDevices(), NIImporter_VISUM::buildDistrictNode(), MSRailSignal::LinkInfo::buildDriveWay(), NLDetectorBuilder::buildE2Detector(), RODFNet::buildEdgeFlowMap(), NBEdge::buildInnerEdges(), NLTriggerBuilder::buildInnerOverheadWireSegments(), GNETLSEditorFrame::buildInternalLanes(), NIVissimEdge::buildNBEdge(), NGEdge::buildNBEdge(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), MSRailSignal::DriveWay::buildRoute(), MELoop::buildSegmentsFor(), MSSOTLE2Sensors::buildSensorForLane(), MSSOTLE2Sensors::buildSensorForOutLane(), LIBSUMO_NAMESPACE::Vehicle::buildStopParameters(), MSDevice_Battery::buildVehicleDevices(), MSDevice_Bluelight::buildVehicleDevices(), MSDevice_BTreceiver::buildVehicleDevices(), MSDevice_BTsender::buildVehicleDevices(), MSDevice_DriverState::buildVehicleDevices(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Emissions::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice_FCD::buildVehicleDevices(), MSDevice_Routing::buildVehicleDevices(), MSDevice_SSM::buildVehicleDevices(), MSDevice_Taxi::buildVehicleDevices(), MSDevice_ToC::buildVehicleDevices(), MSDevice_Tripinfo::buildVehicleDevices(), MSDevice_Transportable::buildVehicleDevices(), MSDevice_Vehroutes::buildVehicleDevices(), NBNode::buildWalkingAreas(), MSBaseVehicle::calculateArrivalParams(), MSSwarmTrafficLightLogic::calculateEtaDiff(), MSSwarmTrafficLightLogic::calculateEtaRatio(), MSE2Collector::calculateTimeLossAndTimeOnDetector(), MSSOTLPolicyBasedTrafficLightLogic::canRelease(), MSLaneChanger::change(), MSLaneChangerSublane::change(), MSLCM_SL2015::changed(), MSLaneChanger::changeOpposite(), MELoop::changeSegment(), MSSimpleTrafficLightLogic::changeStepAndDuration(), LIBSUMO_NAMESPACE::Vehicle::changeTarget(), MSTLLogicControl::check2Switch(), MSEdge::checkAndRegisterBiDirEdge(), MSLaneChanger::checkChange(), MSLaneChangerSublane::checkChangeSublane(), NBEdgeCont::checkConsistency(), MSRailSignal::DriveWay::checkCrossingFlanks(), MSDevice_ToC::checkDynamicToC(), checkFailure(), checkForPedestrians(), GUIApplicationWindow::checkGamingEvents(), MSVehicleTransfer::checkInsertions(), MSVehicle::checkLinkLeader(), MSDevice_Battery::checkParam(), MSDevice_ElecHybrid::checkParam(), MSE2Collector::checkPositioning(), MSVehicle::checkReversal(), MSVehicle::checkRewindLinkLanes(), MSLCM_SL2015::checkStrategicChange(), MSAbstractLaneChangeModel::checkTraCICommands(), MSLaneChanger::checkTraCICommands(), MSSwarmTrafficLightLogic::choosePolicy(), MSDevice_SSM::classifyEncounter(), ShapeContainer::clearHighlights(), NBTrafficLightLogic::closeBuilding(), ODDistrictHandler::closeDistrict(), NLHandler::closeEdge(), MSDevice_SSM::closeEncounter(), MSRouteHandler::closeFlow(), RORouteHandler::closeRouteDistribution(), RORouteHandler::closeVehicle(), NBTrafficLightDefinition::collectAllLinks(), NBTrafficLightDefinition::collectEdges(), NBLoadedSUMOTLDef::collectEdgeVectors(), NBLoadedTLDef::collectLinks(), MSLCM_SL2015::commitManoeuvre(), IntermodalRouter< E, L, N, V >::compute(), ROJTRRouter::compute(), NBTrafficLightDefinition::compute(), MSVehicle::computeAngle(), MSDispatch::computeDetourTime(), NBNodeShapeComputer::computeEdgeBoundaries(), NBNode::computeInternalLaneShape(), NBNode::computeLanes2Lanes(), NBNode::computeLogic(), NBOwnTLDef::computeLogicAndConts(), NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeShapeComputer::computeNodeShapeSmall(), NBNodeTypeComputer::computeNodeTypes(), RODFNet::computeRoutesFor(), NBTrafficLightLogicCont::computeSingleLogic(), NBNode::computeSmoothShape(), MSLCM_SL2015::computeSpeedLat(), MSDevice_SSM::computeSSMs(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), MSVehicle::Manoeuvre::configureEntryManoeuvre(), MSVehicle::Manoeuvre::configureExitManoeuvre(), NGNet::connect(), MSRailSignal::constraintsAllow(), MSLaneChanger::continueChange(), MSLaneChangerSublane::continueChangeSublane(), LIBSUMO_NAMESPACE::Person::convertTraCIStage(), NBLoadedSUMOTLDef::copyIndices(), NBOwnTLDef::corridorLike(), MSSOTLWaveTrafficLightLogic::countVehicles(), MSSOTLE2Sensors::countVehicles(), MSDevice_SSM::createEncounters(), GUINet::createTLWrapper(), MSDevice_Taxi::customerArrived(), MSDevice_ToC::deactivateDeliberateLCs(), MSRailSignal::DriveWay::deadlockLaneOccupied(), libsumo::Helper::debugPrint(), MSLCM_SL2015::decideDirection(), MSActuatedTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decideNextPhase(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decidePolicy(), MSSwarmTrafficLightLogic::decidePolicy(), MSVehicleControl::deleteVehicle(), MSDevice_ElecHybrid::deleteVehicleFromCircuit(), detectCollisionBetween(), detectCollisions(), MSE3Collector::detectorUpdate(), detectPedestrianJunctionCollision(), NIVissimDistrictConnection::dict_BuildDistrictNodes(), NIVissimDistrictConnection::dict_BuildDistricts(), NBNodeCont::discardTrafficLights(), MSDispatch_Greedy::dispatch(), MSDispatch_GreedyShared::dispatch(), MSDispatch_RouteExtension::dispatch(), MSDevice_Taxi::dispatchShared(), MSDevice_SSM::Encounter::Encounter(), MSAbstractLaneChangeModel::endLaneChangeManeuver(), MSE3Collector::enter(), MSVehicle::enterLaneAtMove(), MSVehicle::Manoeuvre::entryManoeuvreIsComplete(), MSTransportableControl::erase(), METriggeredCalibrator::execute(), Command_SaveTLSProgram::execute(), Command_SaveTLSState::execute(), Command_SaveTLSSwitches::execute(), Command_SaveTLSSwitchStates::execute(), MSVTypeProbe::execute(), MSPModel_Striping::MovePedestrians::execute(), MSCalibrator::execute(), MSVehicle::executeMove(), executeMovements(), NBNodeCont::extract(), NBTrafficLightLogicCont::extract(), MSCFModel::finalizeSpeed(), MSCFModel_Daniel1::finalizeSpeed(), MSLaneChanger::findCandidate(), libsumo::Helper::findCloserLane(), MSRailSignal::DriveWay::findFlankProtection(), MSDevice_SSM::findFoeConflictLane(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), MSDevice_SSM::findSurroundingVehicles(), MSDevice_SSM::flushConflicts(), MSDevice_SSM::flushGlobalMeasures(), MSCFModel_CACC::followSpeed(), MSCFModel_W99::followSpeed(), NBTrafficLightDefinition::forbids(), NBNodeCont::generateNodeClusters(), MSDevice_Tripinfo::generateOutput(), GUITrafficLightLogicWrapper::getActiveTLLogic(), RODFDetectorCon::getAggFlowFor(), RODFDetectorCon::getAnyDetectorForEdge(), MSPModel_Striping::getArbitraryPath(), MSVehicle::getBackPosition(), MSVehicle::getBackPositionOnLane(), LIBSUMO_NAMESPACE::Vehicle::getBestLanes(), NBOwnTLDef::getBestPair(), NBRailwayTopologyAnalyzer::getBrokenRailNodes(), getCanonicalPredecessorLane(), getCanonicalSuccessorLane(), MSVehicle::getCenterOnEdge(), MSDevice_Battery::getChargingStationID(), MSRailSignal::getClickableTLLinkID(), GUIVehicle::getColorValue(), MSLaneChanger::getColumnleader(), LIBSUMO_NAMESPACE::TrafficLight::getControlledLinks(), getCriticalLeader(), NBNodeShapeComputer::getDefaultRadius(), MSLink::getDescription(), MSStop::getDescription(), NBTrafficLightDefinition::getDescription(), GUIPerson::getDestinationEdgeID(), MSDevice_SSM::getDetectionRange(), RODFNet::getDetectorEdge(), MSActuatedTrafficLightLogic::getDetectorPriority(), MSRailSignal::LinkInfo::getDriveWay(), GUIPerson::getEdgeID(), GUIMEVehicle::getEdgeID(), MSMeanData::getEdgeID(), libsumo::Calibrator::getEdgeID(), LIBSUMO_NAMESPACE::RouteProbe::getEdgeID(), MSDevice_SSM::getExtraTime(), MSPModel_Remote::getFirstPedestrianLane(), getFirstVehicleInformation(), getFollower(), getFollowersOnConsecutive(), GUIPerson::getFromEdgeID(), MSCalibrator::getID(), NBEdge::getID(), MSRailSignal::getJunctionLinkID(), RORouteHandler::getJunctionTaz(), libsumo::Calibrator::getLaneID(), MSParkingArea::getLastFreePosWithReservation(), getLastVehicleInformation(), MSVehicle::getLatOffset(), getLeader(), MSLink::getLeaderInfo(), getLeaderOnConsecutive(), MSLaneChangerSublane::getLeaders(), getLeadersOnConsecutive(), MSLink::getLengthBeforeCrossing(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForInputLanes(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForOutputLanes(), MSDevice_SSM::getMeasuresAndThresholds(), NIImporter_VISUM::getNamedEdgeContinuating(), MSPModel_Striping::getNeighboringObstacles(), MSPerson::getNextEdge(), MSPModel_Striping::getNextLane(), MSPModel_Striping::getNextLaneObstacles(), getOppositeFollower(), getOppositeLeader(), getOppositePos(), MSDevice_SSM::getOutputFilename(), MSDevice_ElecHybrid::getOverheadWireSegmentID(), MSOverheadWire::getOverheadWireSegmentName(), MSDevice_ToC::getParameter(), LIBSUMO_NAMESPACE::Simulation::getParameter(), GUIContainer::getParameterWindow(), GUILane::getParameterWindow(), GUITrafficLightLogicWrapper::getParameterWindow(), GUILane::getParentName(), getPartialBehind(), MSSimpleDriverState::getPerceivedHeadway(), MSSimpleDriverState::getPerceivedSpeedDifference(), MSSOTLTrafficLightLogic::getPhaseIndexWithMaxCTS(), MSSwarmTrafficLightLogic::getPheromoneForInputLanes(), MSSwarmTrafficLightLogic::getPheromoneForOutputLanes(), PolygonDynamics::getPolygonID(), GUITrafficLightLogicWrapper::getPopUpMenu(), NLTriggerBuilder::getPosition(), NLDetectorBuilder::getPositionChecking(), MSBaseVehicle::getPrefixedParameter(), MSCFModel_CC::getRadarMeasurements(), MSLaneChanger::getRealFollower(), MSLaneChanger::getRealLeader(), LIBSUMO_NAMESPACE::Vehicle::getRoadID(), MSLCHelper::getRoundaboutDistBonus(), LIBSUMO_NAMESPACE::Vehicle::getRouteID(), libsumo::Calibrator::getRouteProbeID(), MSBaseVehicle::getRouteValidity(), MSVehicle::getSafeFollowSpeed(), MSAbstractLaneChangeModel::getShadowLane(), MSBaseVehicle::getSingularType(), MSTransportable::getSingularType(), LIBSUMO_NAMESPACE::Person::getStage(), MSPerson::MSPersonStage_Walking::getStageSummary(), MSStageTrip::getStageSummary(), MSStageWaiting::getStageSummary(), MSStageDriving::getStageSummary(), MSStageTranship::getStageSummary(), MSDevice_Taxi::getStopLane(), MSNet::getStoppingPlaceID(), MSDevice::getStringParam(), getSurroundingVehicles(), MSActuatedTrafficLightLogic::getTarget(), LIBSUMO_NAMESPACE::Person::getTaxiReservations(), MSRailSignal::getTLLinkID(), NIImporter_OpenDrive::getTLSSecure(), MSDevice_ElecHybrid::getTractionSubstationID(), PedestrianEdge< E, L, N, V >::getTravelTime(), MSVehicle::getUpcomingLanesUntil(), getUpcomingLinks(), MSDevice_SSM::getUpstreamVehicles(), LIBSUMO_NAMESPACE::Person::getVehicle(), MSPModel_Striping::getVehicleObstacles(), MSDevice_SSM::getVehiclesOnJunction(), MSRailSignalConstraint::getVehID(), MSStageDriving::getWaitingDescription(), MSEdge::getWaitingVehicle(), MSLink::getZipperSpeed(), GNEEdge::GNEEdge(), NBNode::guessCrossings(), RODFDetectorCon::guessEmptyFlows(), NBNodeCont::guessTLs(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow(), handleCollisionBetween(), MSRailSignal::hasInsertionConstraint(), MSRailSignal::hasOncomingRailTraffic(), MSBaseVehicle::hasValidRouteStart(), MSVehicle::hasValidRouteStart(), MSBaseVehicle::haveValidStopEdges(), libsumo::POI::highlight(), LIBSUMO_NAMESPACE::Vehicle::highlight(), MSIdling_Stop::idle(), MSIdling_RandomCircling::idle(), MSVehicle::ignoreRed(), MSLCM_LC2013::inform(), MSLCM_SL2015::inform(), MSLCM_SL2015::informFollower(), MSLCM_LC2013::informFollower(), MSLCM_SL2015::informLeader(), MSLCM_LC2013::informLeader(), NBEdge::init(), MSActuatedTrafficLightLogic::init(), MSDelayBasedTrafficLightLogic::init(), MSDeterministicHiLevelTrafficLightLogic::init(), MSRailSignal::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), MSTrafficLightLogic::init(), MSE2Collector::initAuxiliaries(), MESegment::initialise(), MSTrafficLightLogic::initMesoTLSPenalties(), PolygonDynamics::initTrackedPosition(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NBDistrictCont::insert(), NBNodeCont::insert(), NBTrafficLightLogicCont::insert(), MSCFModel_IDM::insertionFollowSpeed(), MSEdge::insertVehicle(), integrateNewVehicles(), GNEJunction::invalidateTLS(), NBNode::invalidateTLS(), MSTLLogicControl::isActive(), MSPedestrianPushButton::isActiveForEdge(), MSPedestrianPushButton::isActiveOnAnySideOfTheRoad(), RODFNet::isDestination(), RODFNet::isFalseSource(), isInsertionSuccess(), MSVehicle::isLeader(), MESegment::isOpen(), RODFNet::isSource(), NIImporter_VISUM::isSplitEdge(), MSSOTLTrafficLightLogic::isThresholdPassed(), MSStageDriving::isWaitingFor(), MESegment::jamThresholdForSpeed(), NBNodeCont::joinSameJunctions(), MSVehicle::joinTrainPartFront(), MSAbstractLaneChangeModel::laneChangeOutput(), MSVehicle::lateralDistanceToLane(), MSE3Collector::leave(), MSE3Collector::leaveFront(), MSVehicle::leaveLane(), MSDevice_BTreceiver::BTreceiverUpdate::leaveRange(), MSPedestrianPushButton::loadCrossingEdgeMap(), NIImporter_OpenDrive::loadNetwork(), MSPedestrianPushButton::loadPushButtons(), ODDistrictCont::makeDistricts(), MSE2Collector::makeMoveNotification(), MSE2Collector::makeVehicleInfo(), MSSOTLE2Sensors::meanVehiclesSpeed(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), MSPModel_Striping::PState::moveToNextLane(), LIBSUMO_NAMESPACE::Person::moveToXY(), LIBSUMO_NAMESPACE::Vehicle::moveToXY(), MSPModel_Striping::PState::moveToXY(), libsumo::Helper::moveToXYMap(), MSDevice_ToC::MRMExecutionStep(), MSChargingStation::MSChargingStation(), MSDevice_Battery::MSDevice_Battery(), MSDevice_ElecHybrid::MSDevice_ElecHybrid(), MSDevice_Taxi::MSDevice_Taxi(), MSDevice_ToC::MSDevice_ToC(), MSE2Collector::MSE2Collector(), MSLCM_LC2013::MSLCM_LC2013(), MSSimpleDriverState::MSSimpleDriverState(), NBLoadedTLDef::myCompute(), NIImporter_SUMO::myEndElement(), MSStateHandler::myStartElement(), MSLaneSpeedTrigger::myStartElement(), MSTriggeredRerouter::myStartElement(), MSPModel_Striping::nextBlocking(), MSDevice_ElecHybrid::notifyEnter(), MSE2Collector::notifyEnter(), MSDevice_Bluelight::notifyEnter(), MSDevice_Example::notifyEnter(), MSDevice_SSM::notifyEnter(), MSDevice_Tripinfo::notifyEnter(), MSMeanData::MeanDataValues::notifyEnter(), MSMeanData::MeanDataValueTracker::notifyEnter(), MSMeanData_Net::MSLaneMeanDataValues::notifyEnter(), MSRailSignalConstraint_Predecessor::PassedTracker::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSE3Collector::MSE3EntryReminder::notifyEnter(), MSE3Collector::MSE3LeaveReminder::notifyEnter(), MSDevice_BTreceiver::notifyEnter(), MSDevice_BTsender::notifyEnter(), MSDevice_ElecHybrid::notifyLeave(), MSDevice_Bluelight::notifyLeave(), MSDevice_Example::notifyLeave(), MSDevice_SSM::notifyLeave(), MSDevice_Transportable::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSE2Collector::notifyLeave(), MSE3Collector::MSE3EntryReminder::notifyLeave(), MSE3Collector::MSE3LeaveReminder::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSDevice_ElecHybrid::notifyMove(), MSDevice_Battery::notifyMove(), MSDevice_Bluelight::notifyMove(), MSDevice_BTreceiver::notifyMove(), MSDevice_BTsender::notifyMove(), MSDevice_Example::notifyMove(), MSDevice_SSM::notifyMove(), MSDevice_Transportable::notifyMove(), MSE2Collector::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSDevice_ToC::notifyMove(), MSE3Collector::MSE3LeaveReminder::notifyMove(), MSE3Collector::MSE3EntryReminder::notifyMove(), MSMeanData_Net::MSLaneMeanDataValues::notifyMoveInternal(), GNETLSEditorFrame::onCmdDefSwitch(), GUIViewTraffic::onGamingClick(), MSVehicle::onRemovalFromNet(), MSLink::opened(), RORouteHandler::openRoute(), MSLane::incoming_lane_priority_sorter::operator()(), MSLane::outgoing_lane_priority_sorter::operator()(), MSEdge::transportable_by_position_sorter::operator()(), NBNetBuilder::by_id_sorter::operator()(), NBNode::nodes_by_id_sorter::operator()(), RODFNet::idComp::operator()(), MSLaneChangerSublane::outputLCStarted(), NIImporter_VISUM::parse_Connectors_legacy(), NIImporter_VISUM::parse_EdgePolys(), NIImporter_VISUM::parse_Lanes(), NIImporter_VISUM::parse_Turns(), NLTriggerBuilder::parseAndBuildCalibrator(), NLTriggerBuilder::parseAndBuildOverheadWireSection(), MSRouteHandler::parseWalkPositions(), NBLoadedSUMOTLDef::patchIfCrossingsAdded(), MSLCM_LC2013::patchSpeed(), MSLCM_SL2015::patchSpeed(), NBLoadedTLDef::SignalGroup::patchTYellow(), MSCFModel_CC::performAutoLaneChange(), MSVehicle::planMove(), MSVehicle::planMoveInternal(), planMovements(), PolygonDynamics::PolygonDynamics(), MSInternalJunction::postloadInit(), MSRightOfWayJunction::postloadInit(), MSLCM_SL2015::prepareStep(), MSDevice_Taxi::prepareStop(), MSAbstractLaneChangeModel::primaryLaneChanged(), AGStreet::print(), MSStageDriving::proceed(), MSDevice_SSM::processEncounters(), MSVehicle::processLaneAdvances(), MSVehicle::processLinkApproaches(), MSVehicle::processNextStop(), NIXMLNodesHandler::processNodeType(), TraCIServerAPI_Vehicle::processSet(), MEVehicle::processStop(), MSVehicle::processTraCISpeedControl(), NIXMLNodesHandler::processTrafficLightDefinitions(), MSDelayBasedTrafficLightLogic::proposeProlongation(), NBNodeCont::pruneClusterFringe(), NBNodeCont::pruneSlipLaneNodes(), MSPModel_Striping::PState::PState(), MSOffTrafficLightLogic::rebuildPhase(), NBEdge::recheckLanes(), NBEdgeCont::recheckPostProcessConnections(), NIImporter_OpenStreetMap::reconstructLayerElevation(), NBLoadedSUMOTLDef::reconstructLogic(), MSRailSignalControl::registerProtectedDriveway(), MSLink::removeApproaching(), MSVehicle::removePassedDriveItems(), GNEJunction::removeTLSConnections(), NBNodeCont::rename(), RORouteDef::repairCurrentRoute(), GNEJunction::replaceIncomingConnections(), MSVehicle::replaceParkingArea(), MSBaseVehicle::replaceRouteEdges(), MSVehicle::replaceStop(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), NLEdgeControlBuilder::reportCurrentEdgeOrLane(), MSDevice_SSM::requestsTrajectories(), MSDevice_ToC::requestToC(), MSPerson::reroute(), MSBaseVehicle::reroute(), MSRailSignal::LinkInfo::reroute(), GUIVehicle::rerouteDRTStop(), MSTriggeredRerouter::rerouteParkingArea(), MSVehicle::rerouteParkingArea(), MSTransportable::rerouteParkingArea(), MSDevice_ToC::resetDeliberateLCs(), resetManeuverReservation(), resetPartialOccupation(), LIBSUMO_NAMESPACE::Vehicle::resume(), MSRailSignal::retrieveDriveWay(), NIImporter_OpenDrive::retrieveSignalEdges(), RODFNet::revalidateFlows(), NBRailwayTopologyAnalyzer::reverseEdges(), MSStageWaiting::routeOutput(), MSStageDriving::routeOutput(), safeInsertionSpeed(), LIBSUMO_NAMESPACE::RouteProbe::sampleCurrentRouteID(), LIBSUMO_NAMESPACE::RouteProbe::sampleLastRouteID(), RONet::saveAndRemoveRoutesUntil(), ROPerson::Ride::saveAsXML(), ROVehicle::saveAsXML(), MSLCM_SL2015::saveBlockerLength(), MSLCM_LC2013::saveBlockerLength(), MSBaseVehicle::saveState(), saveState(), MSTransportable::saveState(), MESegment::saveState(), MSDevice::saveState(), MSDevice_Routing::saveState(), MSDevice_Transportable::saveState(), MSDevice_Tripinfo::saveState(), MSDevice_Vehroutes::saveState(), MSTransportableDevice_Routing::saveState(), MSStageDriving::saveState(), MSCalibrator::scheduleRemoval(), GUIVehicle::selectBlockingFoes(), MSE2Collector::selectLanes(), MSVehicle::setAngle(), MSLink::setApproaching(), MSVehicle::setApproachingForAllLinks(), MSStageTrip::setArrived(), NBNodeCont::setAsTLControlled(), MSSimpleDriverState::setAwareness(), MSChargingStation::setChargeDelay(), MSChargingStation::setChargingPower(), NLEdgeControlBuilder::setDefaultStopOffsets(), MSChargingStation::setEfficency(), MSAbstractLaneChangeModel::setManeuverDist(), setManeuverReservation(), MSDevice_Battery::setMaximumBatteryCapacity(), NBEdge::setNodeBorder(), MSLCM_SL2015::setOwnState(), MSActuatedTrafficLightLogic::setParameter(), MSDevice_ToC::setParameter(), MSCFModel_CACC::setParameter(), MSCFModel_CC::setParameter(), setPartialOccupation(), MSDevice_Battery::setPowerMax(), NBEdgePriorityComputer::setPriorityJunctionPriorities(), libsumo::Helper::setRemoteControlled(), MSLink::setRequestInformation(), LIBSUMO_NAMESPACE::Vehicle::setRoute(), LIBSUMO_NAMESPACE::Vehicle::setRouteID(), MSDevice_Battery::setStoppingTreshold(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBOwnTLDef::setTLControllingInformation(), NBTrafficLightLogicCont::setTLControllingInformation(), MSStageDriving::setVehicle(), MSOverheadWire::setVoltage(), NBEdge::shiftPositionAtNode(), MSLCM_LC2013::slowDownForBlocked(), MSLCM_SL2015::slowDownForBlocked(), sortManeuverReservations(), IntermodalNetwork< E, L, N, V >::splitEdge(), MSLaneChangerSublane::startChangeSublane(), MSStopOut::stopEnded(), MSStopOut::stopStarted(), succLinkSec(), MSDevice_ToC::switchHolderType(), GUITrafficLightLogicWrapper::switchTLSLogic(), MELoop::teleportVehicle(), MSDevice_ToC::ToCPreparationStep(), MSDevice_ToC::triggerDownwardToC(), MSDevice_ToC::triggerMRM(), MSDevice_ToC::triggerUpwardToC(), MSTransportable::tripInfoOutput(), MSPerson::MSPersonStage_Access::tripInfoOutput(), METriggeredCalibrator::tryEmit(), MSSOTLTrafficLightLogic::trySwitch(), MSDevice_SSM::update(), MSSimpleDriverState::update(), PolygonDynamics::update(), MSDevice_SSM::updateAndWriteOutput(), MSVehicle::updateBestLanes(), MSLCM_SL2015::updateCFRelated(), MSSOTLTrafficLightLogic::updateCTS(), NLEdgeControlBuilder::updateCurrentLaneStopOffsets(), MSVehicle::updateDriveItems(), MSRailSignal::updateDriveway(), MSLCM_SL2015::updateExpectedSublaneSpeeds(), MSVehicle::updateFurtherLanes(), MSLCM_SL2015::updateGaps(), GNETLSEditorFrame::TLSJunction::updateJunctionDescription(), GNENetHelper::AttributeCarriers::updateJunctionID(), MSSwarmTrafficLightLogic::updatePheromoneLevels(), MSSwarmTrafficLightLogic::updateSensitivities(), MSAbstractLaneChangeModel::updateShadowLane(), MSVehicle::updateState(), MSAbstractLaneChangeModel::updateTargetLane(), MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility(), MSDevice_SSM::useGeoCoords(), NBNodeTypeComputer::validateRailCrossings(), libsumo::Helper::VehicleStateListener::vehicleStateChanged(), TraCIServer::vehicleStateChanged(), MSDynamicShapeUpdater::vehicleStateChanged(), MSLCM_LC2013::wantsChange(), MSLCM_SL2015::wantsChange(), MSLCM_SL2015::wantsChangeSublane(), MSInstantInductLoop::write(), NBParking::write(), MSElecHybridExport::write(), MSFCDExport::write(), MSBatteryExport::write(), MSEmissionExport::write(), MSElecHybridExport::writeAggregated(), MSLink::writeApproaching(), MSRailSignal::writeBlocks(), NWWriter_DlrNavteq::writeConnectedLanes(), NWWriter_SUMO::writeDistrict(), MSMeanData::writeEdge(), NWWriter_SUMO::writeEdge(), MSFullExport::writeEdge(), MSXMLRawOut::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), RODFDetector::writeEmitterDefinition(), RODFDetectorCon::writeEmitterPOIs(), RODFDetectorCon::writeEmitters(), RODFDetectorCon::writeEndRerouterDetectors(), NWWriter_OpenDrive::writeInternalEdge(), writeInterval(), NWWriter_SUMO::writeJunction(), MSFullExport::writeLane(), MSQueueExport::writeLane(), MSXMLRawOut::writeLane(), NWWriter_DlrNavteq::writeLinksUnsplitted(), NWWriter_OpenDrive::writeNetwork(), NWWriter_XML::writeNodes(), NWWriter_DlrNavteq::writeNodesUnsplitted(), MSTractionSubstation::writeOut(), MSDevice_ToC::writeOutput(), MSNet::writeOutput(), MSDevice_Vehroutes::writeOutput(), MSOverheadWire::writeOverheadWireSegmentOutput(), NWWriter_SUMO::writeRoundabout(), RODFDetectorCon::writeSpeedTrigger(), NWWriter_SUMO::writeTrafficLight(), NWWriter_DlrNavteq::writeTrafficSignals(), MSFCDExport::writeTransportable(), MSXMLRawOut::writeTransportable(), RODFDetectorCon::writeValidationDetectors(), MSXMLRawOut::writeVehicle(), MSAmitranTrajectories::writeVehicle(), MSFullExport::writeVehicles(), SUMOPolygon::writeXML(), PointOfInterest::writeXML(), MSE2Collector::writeXMLOutput(), MSInductLoop::writeXMLOutput(), MSRouteProbe::writeXMLOutput(), MSDevice_Transportable::~MSDevice_Transportable(), MSTriggeredRerouter::~MSTriggeredRerouter(), and RONet::~RONet().
|
inlinestaticinherited |
get an identifier for Named-like object which may be Null
Definition at line 66 of file Named.h.
Referenced by MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), NBRailwayTopologyAnalyzer::assignDirectionPriority(), MSLaneChanger::changeOpposite(), MSVehicle::checkReversal(), MSVehicle::checkRewindLinkLanes(), AStarRouter< E, V >::compute(), DijkstraRouter< E, V >::compute(), NBOwnTLDef::computeLogicAndConts(), MSLaneChanger::continueChange(), detectCollisions(), MSRailSignal::DriveWay::findProtection(), NBPTLineCont::findWay(), MSCFModel_CACC::followSpeed(), MSCFModel_W99::followSpeed(), MSVehicle::getBackPositionOnLane(), NBOwnTLDef::getBestCombination(), NBOwnTLDef::getBestPair(), MSVehicle::getCenterOnEdge(), MSLaneChanger::getColumnleader(), NBEdge::Connection::getDescription(), getFollowersOnConsecutive(), GUIVehicle::getLaneID(), LIBSUMO_NAMESPACE::Person::getLaneID(), MSVehicle::getLatOffset(), getLeaderOnConsecutive(), MSLaneChanger::getRealLeader(), GUIVehicle::getShadowLaneID(), GUIVehicle::getTargetLaneID(), MSDevice_SSM::getVehiclesOnJunction(), MSCFModel_IDM::insertionFollowSpeed(), isInsertionSuccess(), MESegment::isOpen(), joinNamedToString(), joinNamedToStringSorting(), MSPModel_Striping::PState::moveToNextLane(), LIBSUMO_NAMESPACE::Person::moveToXY(), LIBSUMO_NAMESPACE::Vehicle::moveToXY(), MSPModel_Striping::PState::moveToXY(), libsumo::Helper::moveToXYMap(), MSBaseVehicle::reroute(), MSTriggeredRerouter::rerouteParkingArea(), MSLCM_SL2015::saveBlockerLength(), MSLCM_LC2013::saveBlockerLength(), MSLCM_LC2013::slowDownForBlocked(), MSLCM_SL2015::slowDownForBlocked(), MSLaneChangerSublane::startChangeSublane(), MSLeaderInfo::toString(), MSLeaderDistanceInfo::toString(), MSCriticalFollowerDistanceInfo::toString(), toString(), MSVehicle::updateBestLanes(), and MSAbstractLaneChangeModel::updateShadowLane().
|
inline |
Definition at line 825 of file MSLane.h.
References myIncomingLanes.
Referenced by MSSOTLE2Sensors::buildContinueSensior(), MSRailSignal::DriveWay::buildRoute(), MSDevice_SSM::classifyEncounter(), MSVehicle::enterLaneAtInsertion(), MSRailSignal::DriveWay::findFlankProtection(), MSRailSignal::DriveWay::findProtection(), MSLink::getCorrespondingEntryLink(), getFollowersOnConsecutive(), MSLogicJunction::getInternalLanes(), MSNoLogicJunction::getInternalLanes(), MSLink::getInternalLengthsBefore(), MSLink::getLeaderInfo(), MSPModel_Striping::getNextLaneObstacles(), MSPModel_Striping::getNextWalkingArea(), getSurroundingVehicles(), MSLink::isExitLinkAfterInternalJunction(), MSVehicle::isLeader(), MSLane::incoming_lane_priority_sorter::operator()(), MSVehicle::passingMinor(), MSVehicle::planMoveInternal(), MSInternalJunction::postloadInit(), MSRightOfWayJunction::postloadInit(), and MSLink::setRequestInformation().
LinkState MSLane::getIncomingLinkState | ( | ) | const |
get the state of the link from the logical predecessor to this lane
Definition at line 2633 of file MSLane.cpp.
References getLinkTo(), getLogicalPredecessorLane(), MSLink::getState(), and LINKSTATE_DEADEND.
|
inline |
Returns the lane's index.
Definition at line 562 of file MSLane.h.
References myIndex.
Referenced by MSLCM_SL2015::_wantsChangeSublane(), libsumo::Helper::applySubscriptionFilters(), GUILane::drawLinkNo(), MSVehicle::enterLaneAtMove(), MSCalibrator::execute(), MSLink::getLeaderInfo(), MSLCHelper::getRoundaboutDistBonus(), MSAbstractLaneChangeModel::getShadowDirection(), MSLink::getZipperSpeed(), MSEdge::insertVehicle(), MSCalibrator::myStartElement(), MSDevice_Vehroutes::notifyEnter(), MSDevice_Bluelight::notifyMove(), MSLink::opened(), MSEdge::parallelLane(), MSLaneChangerSublane::startChangeSublane(), and MSLaneChangerSublane::updateChanger().
returns the internal lane leading to the given lane or nullptr, if there is none
Definition at line 2140 of file MSLane.cpp.
References myLinks.
Referenced by MSTractionSubstation::addOverheadWireSegmentToCircuit(), MSPModel_Striping::getNextLane(), MSVehicle::getUpcomingLanesUntil(), and NLTriggerBuilder::parseAndBuildOverheadWireSection().
|
inline |
MSVehicle * MSLane::getLastAnyVehicle | ( | ) | const |
returns the last vehicle that is fully or partially on this lane
Definition at line 2051 of file MSLane.cpp.
References myPartialVehicles, and myVehicles.
Referenced by MSVehicle::checkRewindLinkLanes(), MSLaneChanger::getColumnleader(), getCriticalLeader(), getLeaderOnConsecutive(), and lastInsertion().
MSVehicle * MSLane::getLastFullVehicle | ( | ) | const |
returns the last vehicle for which this lane is responsible or 0
Definition at line 2042 of file MSLane.cpp.
References myVehicles.
Referenced by MSCalibrator::remainingVehicleCapacity().
const MSLeaderInfo MSLane::getLastVehicleInformation | ( | const MSVehicle * | ego, |
double | latOffset, | ||
double | minPos = 0 , |
||
bool | allowCached = true |
||
) | const |
Returns the last vehicles on the lane.
The information about the last vehicles in this lanes in all sublanes occupied by ego are returned. Partial occupators are included
[in] | ego | The vehicle for which to restrict the returned leaderInfo |
[in] | minPos | The minimum position from which to start search for leaders |
[in] | allowCached | Whether the cached value may be used |
Definition at line 1107 of file MSLane.cpp.
References MSLeaderInfo::addLeader(), anyVehiclesBegin(), DEBUG_COND2, gDebugFlag1, MSNet::getCurrentTimeStep(), Named::getID(), MSNet::getInstance(), MSVehicle::getLatOffset(), MSVehicle::getPositionOnLane(), MSGlobals::gNumSimThreads, myLeaderInfo, myLeaderInfoTime, and MSLeaderInfo::toString().
Referenced by detectCollisions(), getLeadersOnConsecutive(), isInsertionSuccess(), and MSVehicle::planMoveInternal().
std::pair< MSVehicle *const, double > MSLane::getLeader | ( | const MSVehicle * | veh, |
const double | vehPos, | ||
const std::vector< MSLane * > & | bestLaneConts, | ||
double | dist = -1 , |
||
bool | checkTmpVehicles = false |
||
) | const |
Returns the immediate leader of veh and the distance to veh starting on this lane.
Iterates over the current lane to find a leader and then uses getLeaderOnConsecutive()
[in] | veh | The vehicle for which the information shall be computed |
[in] | vehPos | The vehicle position relative to this lane (may be negative) |
[in] | bestLaneConts | The succeding lanes that shall be checked (if any) |
[in] | dist | Optional distance to override default (ego stopDist) |
[in] | checkTmpVehicles | Whether myTmpVehicles should be used instead of myVehicles |
Definition at line 2278 of file MSLane.cpp.
References anyVehiclesBegin(), anyVehiclesEnd(), MSCFModel::brakeGap(), DEBUG_COND2, MSVehicle::getBackPositionOnLane(), MSVehicle::getCarFollowModel(), Named::getID(), getLeaderOnConsecutive(), getLength(), MSVehicleType::getMinGap(), MSVehicle::getPositionOnLane(), MSVehicle::getSpeed(), MSBaseVehicle::getVehicleType(), gPrecision, myTmpVehicles, myVehicles, and toString().
Referenced by libsumo::Helper::applySubscriptionFilters(), MSLaneChanger::checkChange(), getOppositeFollower(), getOppositeLeader(), insertVehicle(), and lastInsertion().
std::pair< MSVehicle *const, double > MSLane::getLeaderOnConsecutive | ( | double | dist, |
double | seen, | ||
double | speed, | ||
const MSVehicle & | veh, | ||
const std::vector< MSLane * > & | bestLaneConts | ||
) | const |
Returns the immediate leader and the distance to him.
Goes along the vehicle's estimated used lanes (bestLaneConts). For each link, it is determined whether the vehicle will pass it. If so, the subsequent lane is investigated. If a vehicle (leader) is found, it is returned, together with the length of the investigated lanes until this vehicle's end, including the already seen place (seen).
If no leading vehicle was found, <0, -1> is returned.
Pretty slow, as it has to go along lanes.
[in] | dist | The distance to investigate |
[in] | seen | The already seen place (normally the place in front on own lane) |
[in] | speed | The speed of the vehicle used for determining whether a subsequent link will be opened at arrival time |
[in] | veh | The vehicle for which the information shall be computed |
[in] | bestLaneConts | The lanes the vehicle will use in future |
Definition at line 2343 of file MSLane.cpp.
References MSCFModel::brakeGap(), DEBUG_COND2, gDebugFlag1, MSVehicle::getBackPositionOnLane(), MSVehicle::getCarFollowModel(), MSNet::getCurrentTimeStep(), Named::getID(), Named::getIDSecure(), MSBaseVehicle::getImpatience(), MSNet::getInstance(), MSVehicle::getLane(), getLastAnyVehicle(), MSVehicle::getLateralPositionOnLane(), getLength(), MSVehicleType::getLength(), MSCFModel::getMaxDecel(), MSVehicleType::getMinGap(), MSVehicle::getSpeed(), getVehicleMaxSpeed(), getVehiclesSecure(), MSBaseVehicle::getVehicleType(), isInternal(), MSVehicle::isLeader(), isLinkEnd(), MAX2(), myPartialVehicles, releaseVehicles(), succLinkSec(), TIME2STEPS, and toString().
Referenced by getLeader(), and MSVehicle::getLeader().
void MSLane::getLeadersOnConsecutive | ( | double | dist, |
double | seen, | ||
double | speed, | ||
const MSVehicle * | ego, | ||
const std::vector< MSLane * > & | bestLaneConts, | ||
MSLeaderDistanceInfo & | result | ||
) | const |
Returns the immediate leaders and the distance to them (as getLeaderOnConsecutive but for the sublane case)
Definition at line 3353 of file MSLane.cpp.
References MSLeaderDistanceInfo::addLeader(), MSCFModel::brakeGap(), DEBUG_COND2, MSVehicle::getBackPositionOnLane(), MSVehicle::getCarFollowModel(), MSNet::getCurrentTimeStep(), Named::getID(), MSBaseVehicle::getImpatience(), MSNet::getInstance(), getLastVehicleInformation(), MSVehicle::getLateralPositionOnLane(), MSVehicle::getLatOffset(), getLength(), MSVehicleType::getLength(), MSCFModel::getMaxDecel(), MSVehicleType::getMinGap(), getVehicleMaxSpeed(), MSBaseVehicle::getVehicleType(), MSVehicle::isFrontOnLane(), MSVehicle::isLeader(), isLinkEnd(), MAX2(), MIN2(), myPartialVehicles, MSLeaderInfo::numFreeSublanes(), MSLeaderInfo::numSublanes(), SIMTIME, succLinkSec(), TIME2STEPS, MSLeaderInfo::toString(), and MSLink::LinkLeader::vehAndGap.
|
inline |
Returns the lane's length.
Definition at line 539 of file MSLane.h.
References myLength.
Referenced by MSVehicle::adaptLaneEntering2MoveReminder(), MSVehicle::adaptToLeaders(), NLTriggerBuilder::addAccess(), NLHandler::addConnection(), MSPModel_Striping::addCrossingVehs(), NLHandler::addE2Detector(), addIncomingLane(), MSParkingArea::addLotEntry(), addNeigh(), MSTractionSubstation::addOverheadWireInnerSegmentToCircuit(), MSTractionSubstation::addOverheadWireSegmentToCircuit(), MSBaseVehicle::addStop(), libsumo::Helper::applySubscriptionFilters(), MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildCountSensorForLane(), MSSOTLE2Sensors::buildCountSensorForOutLane(), NLDetectorBuilder::buildE2Detector(), NLTriggerBuilder::buildInnerOverheadWireSegments(), MSRailSignal::DriveWay::buildRoute(), MSSOTLE2Sensors::buildSensorForLane(), MSSOTLE2Sensors::buildSensorForOutLane(), MSLaneChanger::changeOpposite(), MSLaneChanger::checkChange(), MSE2Collector::checkPositioning(), MSVehicle::checkReversal(), MSVehicle::checkRewindLinkLanes(), MSLCM_SL2015::checkStrategicChange(), MSDevice_SSM::classifyEncounter(), MSLink::computeDistToDivergence(), GUILane::debugDrawFoeIntersections(), GUIVehicle::drawAction_drawCarriageClass(), GUIEdge::drawMesoVehicles(), GUIVehicle::drawRouteHelper(), MSVehicle::estimateTimeToNextStop(), MSVehicle::executeMove(), executeMovements(), MSRailSignal::DriveWay::findFlankProtection(), MSDevice_SSM::findFoeConflictLane(), MSDevice_SSM::findSurroundingVehicles(), freeInsertion(), GUILane::getColorValue(), MSLaneChanger::getColumnleader(), getCriticalLeader(), MSVehicle::getDistanceToPosition(), MSE2Collector::getEstimateQueueLength(), getFirstInternalInConnection(), getFollowersOnConsecutive(), MSLink::getInternalLengthsAfter(), MSLink::getInternalLengthsBefore(), libsumo::Helper::getLaneChecking(), NLShapeHandler::getLanePos(), getLeader(), MSVehicle::getLeader(), MSLink::getLeaderInfo(), getLeaderOnConsecutive(), MSLaneChangerSublane::getLeaders(), getLeadersOnConsecutive(), MSLink::getLengthBeforeCrossing(), MSLink::getLengthsBeforeCrossing(), MSPModel_Striping::getNextLane(), MSPModel_Striping::getNextLaneObstacles(), LIBSUMO_NAMESPACE::Vehicle::getNextTLS(), getOppositePos(), MSVehicle::getPastLanesUntil(), NLTriggerBuilder::getPosition(), MSVehicle::getPositionAlongBestLanes(), NLDetectorBuilder::getPositionChecking(), MSLaneChanger::getRealLeader(), MSVehicle::getRerouteOrigin(), MSLCHelper::getRoundaboutDistBonus(), MSVehicle::getSafeFollowSpeed(), MSVehicle::getSpaceTillLastStanding(), getSurroundingVehicles(), LIBSUMO_NAMESPACE::Lane::getTraveltime(), MSVehicle::getUpcomingLanesUntil(), getUpcomingLinks(), MSPModel_Striping::getVehicleObstacles(), handleCollisionBetween(), MSLCM_LC2013::informFollower(), MSActuatedTrafficLightLogic::init(), MSDelayBasedTrafficLightLogic::init(), MSE2Collector::initAuxiliaries(), MSPModel_Striping::initWalkingAreaPaths(), insertVehicle(), isInsertionSuccess(), lastInsertion(), MSVehicle::leaveLane(), MSPModel_Striping::moveInDirectionOnLane(), MSPerson::MSPersonStage_Walking::moveToNextEdge(), MSE2Collector::MSE2Collector(), MSDevice_Tripinfo::notifyLeave(), MSDevice_ElecHybrid::notifyMove(), MSDevice_Bluelight::notifyMove(), NLTriggerBuilder::parseAndBeginParkingArea(), NLTriggerBuilder::parseAndBuildChargingStation(), NLTriggerBuilder::parseAndBuildOverheadWireSegment(), MSRouteHandler::parseWalkPositions(), MSVehicle::planMoveInternal(), MSVehicle::processLaneAdvances(), MSE2Collector::recalculateDetectorLength(), MSCalibrator::remainingVehicleCapacity(), GUIVehicle::selectBlockingFoes(), MSE2Collector::selectLanes(), MSVehicle::setBlinkerInformation(), MSLink::setRequestInformation(), MSVehicle::unsafeLinkAhead(), MSVehicle::updateBestLanes(), MSVehicle::validatePosition(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), MSMeanData::writeEdge(), and MSQueueExport::writeLane().
|
inline |
return shape.length() / myLength
Definition at line 481 of file MSLane.h.
References myLengthGeometryFactor.
|
inline |
returns the container with all links !!!
Definition at line 640 of file MSLane.h.
References myLinks.
Referenced by MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSPModel_Striping::addCrossingVehs(), MSRailSignal::DriveWay::buildRoute(), MSDevice_SSM::classifyEncounter(), MSLink::computeParallelLink(), MSLink::contIntersect(), GUILane::debugDrawFoeIntersections(), GUILane::drawGL(), MSVehicle::enterLaneAtInsertion(), MSRailSignal::DriveWay::findFlankProtection(), MSDevice_SSM::findFoeConflictLane(), MSRailSignal::DriveWay::findProtection(), MSDevice_SSM::findSurroundingVehicles(), MSVehicle::getBestLanesContinuation(), MSLink::getCorrespondingExitLink(), LIBSUMO_NAMESPACE::Lane::getInternalFoes(), MSLink::getInternalLengthsAfter(), MSLink::getLeaderInfo(), MSLink::getLengthsBeforeCrossing(), MESegment::getLink(), LIBSUMO_NAMESPACE::Lane::getLinks(), MSPModel_Striping::getNextLane(), MSPModel_Striping::getNextWalkingArea(), MSVehicle::getPastLanesUntil(), MSVehicle::getPositionAlongBestLanes(), MSLCHelper::getRoundaboutDistBonus(), LIBSUMO_NAMESPACE::TrafficLight::getServedPersonCount(), getSurroundingVehicles(), MSVehicle::getUpcomingLanesUntil(), MSActuatedTrafficLightLogic::init(), MSStateHandler::myStartElement(), MSVehicle::planMoveInternal(), MSInternalJunction::postloadInit(), MSRightOfWayJunction::postloadInit(), MSVehicle::processLaneAdvances(), MSVehicle::setBlinkerInformation(), MSLink::setRequestInformation(), MSVehicle::updateBestLanes(), MSVehicle::updateDriveItems(), MSLCM_DK2008::wantsChangeToLeft(), and MSLCM_DK2008::wantsChangeToRight().
returns the link to the given lane or nullptr, if it is not connected
Definition at line 2128 of file MSLane.cpp.
References isInternal(), and myLinks.
Referenced by NLDetectorBuilder::buildE2Detector(), MSLaneChanger::changeOpposite(), MSPModel_Striping::connectedDirection(), GUILane::drawLinkNo(), GUILane::drawLinkRules(), GUILane::drawTLSLinkNo(), MSVehicle::enterLaneAtMove(), MSDevice_SSM::findFoeConflictLane(), MSDevice_SSM::findSurroundingVehicles(), getEntryLink(), getIncomingLinkState(), MSPModel_Striping::getNextLane(), MSVehicle::getPositionAlongBestLanes(), getUpcomingLinks(), MSE2Collector::initAuxiliaries(), MSPModel_Striping::initWalkingAreaPaths(), MSLink::lastWasContMajor(), MSLink::lastWasContMajorGreen(), MSLane::incoming_lane_priority_sorter::operator()(), MSVehicle::processLaneAdvances(), MSE2Collector::recalculateDetectorLength(), MSE2Collector::selectLanes(), MSVehicle::setAngle(), GUILane::setFunctionalColor(), and MSAbstractLaneChangeModel::updateShadowLane().
MSLane * MSLane::getLogicalPredecessorLane | ( | ) | const |
get the most likely precedecessor lane (sorted using by_connections_to_sorter). The result is cached in myLogicalPredecessorLane
Definition at line 2542 of file MSLane.cpp.
References getEdge(), MSEdge::getPredecessors(), myEdge, myIncomingLanes, and myLogicalPredecessorLane.
Referenced by MSVehicle::checkLinkLeader(), GUILane::drawLinkNo(), GUILane::drawLinkRules(), GUILane::drawTLSLinkNo(), MSVehicle::enterLaneAtInsertion(), MSVehicle::enterLaneAtLaneChange(), getFollowersOnConsecutive(), getIncomingLinkState(), MSLink::getLeaderInfo(), MSPModel_Striping::getNextLane(), getNormalPredecessorLane(), MSVehicle::getPastLanesUntil(), MSActuatedTrafficLightLogic::init(), MSLink::lastWasContMajor(), MSLink::lastWasContMajorGreen(), libsumo::Helper::moveToXYMap(), MSInternalJunction::postloadInit(), GUILane::setFunctionalColor(), MSLink::setRequestInformation(), and MSVehicle::updateBestLanes().
return the (first) predecessor lane from the given edge
Definition at line 2577 of file MSLane.cpp.
References myIncomingLanes.
|
protected |
compute maximum braking distance on this lane
Definition at line 2267 of file MSLane.cpp.
References MSNet::getInstance(), MSVehicleControl::getMaxSpeedFactor(), MSVehicleControl::getMinDeceleration(), getSpeedLimit(), MSNet::getVehicleControl(), MIN2(), myPermissions, and SVC_SHIP.
Referenced by getFollowersOnConsecutive().
double MSLane::getMeanSpeed | ( | ) | const |
Returns the mean speed on this lane.
Definition at line 2736 of file MSLane.cpp.
References getVehiclesSecure(), myMaxSpeed, myVehicles, and releaseVehicles().
Referenced by GUILane::getColorValue(), GUILane::getScaleValue(), LIBSUMO_NAMESPACE::Lane::getTraveltime(), MSCalibrator::invalidJam(), and MSFullExport::writeLane().
double MSLane::getMeanSpeedBike | ( | ) | const |
get the mean speed of all bicycles on this lane
Definition at line 2752 of file MSLane.cpp.
References getVehiclesSecure(), myMaxSpeed, myVehicles, releaseVehicles(), and SVC_BICYCLE.
double MSLane::getMissingRearGap | ( | const MSVehicle * | leader, |
double | backOffset, | ||
double | leaderSpeed | ||
) | const |
return by how much further the leader must be inserted to avoid rear end collisions
Definition at line 2251 of file MSLane.cpp.
References MSVehicle::getCarFollowModel(), getFollowersOnConsecutive(), MSCFModel::getMaxDecel(), MSCFModel::getSecureGap(), and MSVehicle::getSpeed().
Referenced by freeInsertion(), and isInsertionSuccess().
|
inline |
Return the list of this lane's move reminders.
Definition at line 266 of file MSLane.h.
References myMoveReminders.
Referenced by MSVehicle::adaptLaneEntering2MoveReminder(), MSVehicle::enterLaneAtInsertion(), MSVehicle::enterLaneAtLaneChange(), MSPerson::MSPersonStage_Walking::moveToNextEdge(), MSPerson::MSPersonStage_Walking::proceed(), and MSVehicle::processNextStop().
double MSLane::getNettoOccupancy | ( | ) | const |
Returns the netto (excluding minGaps) occupancy of this lane during the last step (including minGaps)
Definition at line 2708 of file MSLane.cpp.
References MSVehicleType::getLength(), MSVehicle::getPositionOnLane(), getVehiclesSecure(), MSBaseVehicle::getVehicleType(), MIN2(), myLength, myNettoVehicleLengthSum, myPartialVehicles, myVehicles, and releaseVehicles().
Referenced by GUILane::getColorValue(), GUILane::getParameterWindow(), GUILane::getScaleValue(), and MSFullExport::writeLane().
const MSEdge * MSLane::getNextNormal | ( | ) | const |
Returns the lane's follower if it is an internal lane, the edge of the lane otherwise.
Definition at line 1884 of file MSLane.cpp.
References MSEdge::getNormalSuccessor(), and myEdge.
Referenced by MSBaseVehicle::addStop(), MSRailSignal::DriveWay::buildRoute(), MSVehicle::getRerouteOrigin(), LIBSUMO_NAMESPACE::Vehicle::moveTo(), and MSVehicle::updateBestLanes().
std::vector< const MSLane * > MSLane::getNormalIncomingLanes | ( | ) | const |
get the list of all direct (disregarding internal predecessors) non-internal predecessor lanes of this lane
Definition at line 2654 of file MSLane.cpp.
References myApproachingLanes.
Referenced by MSTractionSubstation::addOverheadWireSegmentToCircuit(), and NLTriggerBuilder::parseAndBuildOverheadWireSection().
const MSLane * MSLane::getNormalPredecessorLane | ( | ) | const |
get normal lane leading to this internal lane, for normal lanes, the lane itself is returned
Definition at line 2567 of file MSLane.cpp.
References getLogicalPredecessorLane(), getNormalPredecessorLane(), and isInternal().
Referenced by getNormalPredecessorLane(), MSVehicle::isLeader(), and MSVehicle::updateBestLanes().
double MSLane::getNOxEmissions | ( | ) | const |
Returns the sum of last step NOx emissions.
Definition at line 2813 of file MSLane.cpp.
References getVehiclesSecure(), and releaseVehicles().
Referenced by GUILane::getColorValue(), GUILane::getScaleValue(), and MSFullExport::writeLane().
|
inline |
Returns this lane's numerical id.
Definition at line 468 of file MSLane.h.
References myNumericalID.
Referenced by MSDevice_ToC::checkDynamicToC(), MSDevice_ToC::notifyMove(), MSPModel_Striping::lane_by_numid_sorter::operator()(), and MSPModel_Striping::walkingarea_path_sorter::operator()().
|
inlinestatic |
return the number of RNGs
Definition at line 220 of file MSLane.h.
References myRNGs.
Referenced by loadRNGState(), and saveRNGStates().
MSLane * MSLane::getOpposite | ( | ) | const |
return the opposite direction lane for lane changing or 0
Definition at line 3612 of file MSLane.cpp.
References dictionary(), and myNeighs.
Referenced by addNeigh(), MSLaneChanger::changeOpposite(), MSVehicle::executeMove(), MSDevice_SSM::findSurroundingVehicles(), MSVehicle::getLatOffset(), getOppositePos(), MSVehicle::getPositionAlongBestLanes(), MSEdge::parallelLane(), MSVehicle::planMoveInternal(), MSVehicle::updateBestLanes(), and MSVehicle::updateState().
Definition at line 3678 of file MSLane.cpp.
References DEBUG_COND2, MSVehicle::getBackPositionOnLane(), getFollower(), Named::getID(), MSVehicle::getLaneChangeModel(), getLeader(), MSVehicleType::getLength(), getOppositePos(), MSVehicle::getPositionOnLane(), MSBaseVehicle::getVehicleType(), MSAbstractLaneChangeModel::isOpposite(), and SIMTIME.
Referenced by MSLaneChanger::changeOpposite().
std::pair< MSVehicle *const, double > MSLane::getOppositeLeader | ( | const MSVehicle * | ego, |
double | dist, | ||
bool | oppositeDir | ||
) | const |
Definition at line 3655 of file MSLane.cpp.
References DEBUG_COND2, MSVehicle::getBestLanesContinuation(), getFollower(), Named::getID(), MSVehicle::getLaneChangeModel(), getLeader(), MSVehicleType::getLength(), MSVehicleType::getMinGap(), getOppositePos(), MSVehicle::getPositionOnLane(), MSBaseVehicle::getVehicleType(), MSAbstractLaneChangeModel::isOpposite(), and SIMTIME.
Referenced by MSLaneChanger::changeOpposite(), and MSVehicle::planMoveInternal().
double MSLane::getOppositePos | ( | double | pos | ) | const |
return the corresponding position on the opposite lane
Definition at line 3621 of file MSLane.cpp.
References Named::getID(), getLength(), getOpposite(), and MAX2().
Referenced by MSLCM_LC2013::_wantsChange(), MSLaneChanger::changeOpposite(), MSVehicle::executeMove(), getOppositeFollower(), getOppositeLeader(), MSAbstractLaneChangeModel::primaryLaneChanged(), and MSVehicle::updateState().
const std::vector< std::pair< const MSLane *, const MSEdge * > > MSLane::getOutgoingViaLanes | ( | ) | const |
get the list of outgoing lanes
Definition at line 2644 of file MSLane.cpp.
References myLinks.
Referenced by MSTractionSubstation::addOverheadWireSegmentToCircuit(), and NLTriggerBuilder::parseAndBuildOverheadWireSection().
MSLane * MSLane::getParallelLane | ( | int | offset, |
bool | includeOpposite = true |
||
) | const |
Returns the lane with the given offset parallel to this one or 0 if it does not exist.
[in] | offset | The offset of the result lane |
Definition at line 2211 of file MSLane.cpp.
References myEdge, and MSEdge::parallelLane().
Referenced by libsumo::Helper::applySubscriptionFilters(), MSLaneChanger::checkChange(), MSLink::computeParallelLink(), MSLaneChanger::continueChange(), MSAbstractLaneChangeModel::determineTargetLane(), MSAbstractLaneChangeModel::getShadowLane(), MSVehicle::lateralDistanceToLane(), MSVehicle::planMoveInternal(), and MSAbstractLaneChangeModel::updateTargetLane().
|
inherited |
Returns the value for a given key.
[in] | key | The key to ask for |
[in] | defaultValue | The default value to return if no value is stored under the key |
Definition at line 112 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NBEdge::addRestrictedLane(), FareModul::addStop(), NBEdge::append(), MSDevice_Battery::buildVehicleDevices(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), ROEdge::cacheParamRestrictions(), SUMOVTypeParameter::cacheParamRestrictions(), MSRailSignal::constraintsAllow(), GNEEdge::drawEdgeName(), GNEGenericData::drawFilteredAttribute(), GUIEdge::drawGL(), GNEConnection::drawGL(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), MSSwarmTrafficLightLogic::getBetaNo(), MSSwarmTrafficLightLogic::getBetaSp(), NBRailwayTopologyAnalyzer::getBrokenRailNodes(), MSSwarmTrafficLightLogic::getChangePlanProbability(), GNEEdgeData::getColor(), GNEEdgeRelData::getColor(), GUILane::getColorValue(), GUIVehicle::getColorValue(), GNELane::getColorValue(), MSSOTLTrafficLightLogic::getDecayConstant(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSSwarmTrafficLightLogic::getForgettingCox(), MSSwarmTrafficLightLogic::getGammaNo(), MSSwarmTrafficLightLogic::getGammaSp(), MSTLLogicControl::WAUTSwitchProcedure::getGSPTime(), MSSOTLTrafficLightLogic::getInputSensorsLength(), MSSwarmTrafficLightLogic::getLearningCox(), MSSwarmTrafficLightLogic::getMaxCongestionDuration(), MSDevice_SSM::getMeasuresAndThresholds(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), MSSOTLTrafficLightLogic::getMode(), GUIBaseVehicle::getOptionalName(), GUITrafficLightLogicWrapper::getOptionalName(), MSDevice_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), MSSOTLTrafficLightLogic::getOutputSensorsLength(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSSwarmTrafficLightLogic::getPheroMaxVal(), MSSwarmTrafficLightLogic::getPoliciesParam(), MSBaseVehicle::getPrefixedParameter(), MSSwarmTrafficLightLogic::getReinforcementMode(), MSSOTLTrafficLightLogic::getSpeedThreshold(), MSDevice::getStringParam(), MSSwarmTrafficLightLogic::getThetaInit(), MSSwarmTrafficLightLogic::getThetaMax(), MSSwarmTrafficLightLogic::getThetaMin(), MSSOTLTrafficLightLogic::getThreshold(), MSRailSignalConstraint::getVehID(), MSTriggeredRerouter::getWeight(), MSRailSignal::hasInsertionConstraint(), MSSOTLPhasePolicy::init(), MSActuatedTrafficLightLogic::init(), MSDelayBasedTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), PushButtonLogic::init(), SigmoidLogic::init(), MSVehicleType::initRailVisualizationParameters(), GNEVehicleType::initRailVisualizationParameters(), MSSOTLTrafficLightLogic::isDecayThresholdActivated(), MSSOTLTrafficLightLogic::isPushButtonPressed(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSDelayBasedTrafficLightLogic::MSDelayBasedTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic(), MSRailSignalConstraint_Predecessor::PassedTracker::notifyEnter(), GNEVehicleType::overwriteVType(), MSDevice_SSM::requestsTrajectories(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), NBEdgeCont::splitAt(), MSDevice_SSM::useGeoCoords(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::WAUTSwitchProcedure_Stretch(), NWWriter_DlrNavteq::writeLinksUnsplitted(), and NWWriter_OpenDrive::writeRoadObjects().
|
inherited |
Returns the inner key/value map.
Definition at line 146 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NIImporter_SUMO::_loadNetwork(), NBEdge::addLane(), GUIParameterTableWindow::closeBuilding(), NLHandler::closeEdge(), NBTrafficLightDefinition::compute(), GNEGenericData::drawAttribute(), GNEGenericData::drawFilteredAttribute(), GNEAdditional::getACParametersMap(), GNEPOI::getACParametersMap(), GNEPoly::getACParametersMap(), GNETAZElement::getACParametersMap(), GNEDataInterval::getACParametersMap(), GNEDataSet::getACParametersMap(), GNEGenericData::getACParametersMap(), GNEPerson::getACParametersMap(), GNEPersonStop::getACParametersMap(), GNEPersonTrip::getACParametersMap(), GNERide::getACParametersMap(), GNERoute::getACParametersMap(), GNEStop::getACParametersMap(), GNEVehicle::getACParametersMap(), GNEVehicleType::getACParametersMap(), GNEWalk::getACParametersMap(), GNEConnection::getACParametersMap(), GNECrossing::getACParametersMap(), GNEEdge::getACParametersMap(), GNEEdgeType::getACParametersMap(), GNEJunction::getACParametersMap(), GNELane::getACParametersMap(), GNELaneType::getACParametersMap(), GUILane::getParameterWindow(), MSActuatedTrafficLightLogic::init(), MSDevice_Taxi::initDispatch(), NIImporter_OpenStreetMap::insertEdge(), GNEEdgeData::isGenericDataVisible(), GNEEdgeRelData::isGenericDataVisible(), GNETAZRelData::isGenericDataVisible(), GNEGenericData::isVisibleInspectDeleteSelect(), NBEdge::NBEdge(), NBLoadedSUMOTLDef::NBLoadedSUMOTLDef(), GUIParameterTableWindow::numParams(), GNEVehicleType::overwriteVType(), TraCIServerAPI_TrafficLight::processGet(), Parameterised::setParameters(), GNEEdgeData::writeGenericData(), GNEEdgeRelData::writeGenericData(), and GNETAZRelData::writeGenericData().
|
inherited |
Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN".
Definition at line 152 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by GNEAccess::getAttribute(), GNEBusStop::getAttribute(), GNECalibrator::getAttribute(), GNECalibratorFlow::getAttribute(), GNEChargingStation::getAttribute(), GNEClosingLaneReroute::getAttribute(), GNEClosingReroute::getAttribute(), GNEContainerStop::getAttribute(), GNEDestProbReroute::getAttribute(), GNEDetectorE1::getAttribute(), GNEDetectorE1Instant::getAttribute(), GNEDetectorE2::getAttribute(), GNEDetectorE3::getAttribute(), GNEDetectorEntryExit::getAttribute(), GNEParkingArea::getAttribute(), GNEParkingAreaReroute::getAttribute(), GNEParkingSpace::getAttribute(), GNEPOI::getAttribute(), GNEPoly::getAttribute(), GNERerouter::getAttribute(), GNERerouterInterval::getAttribute(), GNERouteProbe::getAttribute(), GNERouteProbReroute::getAttribute(), GNETAZ::getAttribute(), GNETAZSourceSink::getAttribute(), GNEVaporizer::getAttribute(), GNEVariableSpeedSign::getAttribute(), GNEVariableSpeedSignStep::getAttribute(), GNEEdgeData::getAttribute(), GNEEdgeRelData::getAttribute(), GNETAZRelData::getAttribute(), GNEPerson::getAttribute(), GNEPersonTrip::getAttribute(), GNERide::getAttribute(), GNERoute::getAttribute(), GNEVehicle::getAttribute(), GNEVehicleType::getAttribute(), GNEWalk::getAttribute(), GNEConnection::getAttribute(), GNEEdge::getAttribute(), GNEEdgeType::getAttribute(), GNEJunction::getAttribute(), GNELane::getAttribute(), and GNELaneType::getAttribute().
|
inline |
retrieve the parking vehicles (see GUIParkingArea)
Definition at line 1138 of file MSLane.h.
References myParkingVehicles.
Referenced by LaneStoringVisitor::add(), and GUIParkingArea::drawGL().
Definition at line 3443 of file MSLane.cpp.
References DEBUG_COND2, Named::getID(), MSVehicle::getPositionOnLane(), MSVehicle::isFrontOnLane(), myPartialVehicles, SIMTIME, and toString().
MSLeaderInfo MSLane::getPartialBeyond | ( | ) | const |
get all vehicles that are inlapping from consecutive edges
Definition at line 3466 of file MSLane.cpp.
References MSLeaderInfo::addLeader(), MSVehicle::getLatOffset(), MSVehicle::isFrontOnLane(), and myPartialVehicles.
|
inline |
Returns the number of vehicles partially on this lane (for which this lane is not responsible)
Definition at line 415 of file MSLane.h.
References myPartialVehicles.
|
inline |
Returns the vehicle class permissions for this lane.
Definition at line 547 of file MSLane.h.
References myPermissions.
Referenced by MSSwarmTrafficLightLogic::allowLine(), MSInternalJunction::indirectBicycleTurn(), MSDelayBasedTrafficLightLogic::init(), and GUIApplicationWindow::onCmdEditChosen().
double MSLane::getPMxEmissions | ( | ) | const |
Returns the sum of last step PMx emissions.
Definition at line 2801 of file MSLane.cpp.
References getVehiclesSecure(), and releaseVehicles().
Referenced by GUILane::getColorValue(), GUILane::getScaleValue(), and MSFullExport::writeLane().
|
inline |
Definition at line 1086 of file MSLane.h.
References myRightmostSublane.
Referenced by MSLCM_SL2015::_wantsChangeSublane().
|
inline |
Definition at line 1082 of file MSLane.h.
References myRightSideOnEdge.
Referenced by MSLCM_SL2015::_wantsChangeSublane(), MSLCM_SL2015::checkBlocking(), MSLaneChangerSublane::checkChangeSublane(), MSVehicle::checkLinkLeader(), MSLCM_SL2015::commitManoeuvre(), detectCollisions(), MSVehicle::getCenterOnEdge(), getFollowersOnConsecutive(), MSVehicle::getLatOffset(), MSLCM_SL2015::keepLatGap(), MSVehicle::planMoveInternal(), MSLaneChangerSublane::startChangeSublane(), and MSLaneChangerSublane::updateChanger().
|
inline |
return the associated RNG
Definition at line 215 of file MSLane.h.
References myRNGIndex, and myRNGs.
Referenced by MSBaseVehicle::getRNG().
|
inline |
returns the associated RNG index
Definition at line 210 of file MSLane.h.
References myRNGIndex.
Referenced by MSEdgeControl::changeLanes(), and MSBaseVehicle::getRNGIndex().
|
inline |
Returns this lane's shape.
Definition at line 476 of file MSLane.h.
References myShape.
Referenced by LaneStoringVisitor::add(), NLHandler::addConnection(), MSParkingArea::addLotEntry(), MSTractionSubstation::addOverheadWireClampToCircuit(), GUIE3Collector::MyWrapper::buildDefinition(), MSDevice_SSM::classifyEncounter(), MSVehicle::computeAngle(), MSLink::computeDistToDivergence(), MSLink::contIntersect(), libsumo::Helper::convertCartesianToRoadMap(), GUILane::debugDrawFoeIntersections(), GUIVehicle::drawAction_drawLinkItems(), GUILane::drawLane2LaneConnections(), fill(), libsumo::Helper::findCloserLane(), MEVehicle::getAngle(), MSStage::getLanePosition(), MSPModel_Striping::getNextLaneObstacles(), GUIContainer::getPosition(), MEVehicle::getSlope(), MSVehicle::getSlope(), LIBSUMO_NAMESPACE::Person::getSlope(), MSVTKExport::getSpeed(), LIBSUMO_NAMESPACE::InductionLoop::getTree(), GUIBusStop::getWaitPosition(), MSStoppingPlace::getWaitPosition(), GUIBusStop::GUIBusStop(), GUIChargingStation::GUIChargingStation(), GUIContainerStop::GUIContainerStop(), GUIOverheadWire::GUIOverheadWire(), GUIOverheadWireClamp::GUIOverheadWireClamp(), MSInternalJunction::indirectBicycleTurn(), MSPModel_Striping::initWalkingAreaPaths(), LIBSUMO_NAMESPACE::Person::moveToXY(), LIBSUMO_NAMESPACE::Vehicle::moveToXY(), libsumo::Helper::moveToXYMap(), MSLink::MSLink(), MSParkingArea::MSParkingArea(), GUIInductLoop::MyWrapper::MyWrapper(), GUIInstantInductLoop::MyWrapper::MyWrapper(), GUIMEInductLoop::MyWrapper::MyWrapper(), MSLane::incoming_lane_priority_sorter::operator()(), MSLane::by_connections_to_sorter::operator()(), MSLane::outgoing_lane_priority_sorter::operator()(), MSLink::setRequestInformation(), MSLaneChangerSublane::startChangeSublane(), LIBSUMO_NAMESPACE::InductionLoop::storeShape(), and MSPerson::MSPersonStage_Walking::walkDistance().
|
inline |
Returns the lane's maximum allowed speed.
Definition at line 531 of file MSLane.h.
References myMaxSpeed.
Referenced by MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSLaneChanger::changeOpposite(), MSVehicleTransfer::checkInsertions(), MSLCM_SL2015::checkStrategicChange(), MSVehicle::congested(), MSAbstractLaneChangeModel::congested(), executeMovements(), MSCFModel_CC::finalizeSpeed(), MSCFModel_ACC::followSpeed(), GUILane::getColorValue(), MSE2Collector::getEstimatedCurrentVehicleNumber(), MSLCM_SL2015::getLateralDrift(), LIBSUMO_NAMESPACE::Lane::getLinks(), getMaximumBrakeDist(), GUILane::getParameterWindow(), GUILane::getScaleValue(), MSLCM_LC2013::informFollower(), MSLCM_LC2013::prepareStep(), MSLCM_DK2008::wantsChangeToRight(), MSMeanData::writeEdge(), and MSFullExport::writeLane().
double MSLane::getStopOffset | ( | const MSVehicle * | veh | ) | const |
Returns vehicle class specific stopOffset for the vehicle.
Definition at line 3152 of file MSLane.cpp.
References MSBaseVehicle::getVClass(), and myStopOffsets.
Referenced by isInsertionSuccess(), MSVehicle::planMoveInternal(), MSVehicle::processLaneAdvances(), and MSVehicle::processLinkApproaches().
|
inline |
Returns vehicle class specific stopOffsets.
Definition at line 840 of file MSLane.h.
References myStopOffsets.
|
inline |
Definition at line 1170 of file MSLane.h.
References myStopWatch.
Referenced by MSVehicle::planMoveInternal().
std::set< MSVehicle * > MSLane::getSurroundingVehicles | ( | double | startPos, |
double | downstreamDist, | ||
double | upstreamDist, | ||
std::shared_ptr< LaneCoverageInfo > | checkedLanes | ||
) | const |
Returns all vehicles closer than downstreamDist along the along the road network starting on the given position. Predecessor lanes are searched upstream for the given upstreamDistance.
[in] | lanes | - sequence of lanes to search along |
[in] | startPos | - start position of the search on the first lane |
[in] | downstreamDist | - distance to search downstream |
[in] | upstreamDist | - distance to search upstream |
[in/out] | checkedLanes - lanes, which were already scanned (current lane is added, if not present, otherwise the scan is aborted; TODO: this may disregard unscanned parts of the lane in specific circular set ups.) |
Definition at line 3481 of file MSLane.cpp.
References Named::getID(), getIncomingLanes(), getLength(), getLinkCont(), getSurroundingVehicles(), getVehiclesInRange(), MAX2(), MIN2(), Named::myID, and myLength.
Referenced by libsumo::Helper::applySubscriptionFilters(), and getSurroundingVehicles().
|
inline |
returns the associated thread index
Definition at line 205 of file MSLane.h.
References MSGlobals::gNumSimThreads, and myRNGIndex.
std::vector< const MSJunction * > MSLane::getUpcomingJunctions | ( | double | pos, |
double | range, | ||
const std::vector< MSLane * > & | contLanes | ||
) | const |
Returns all upcoming junctions within given range along the given (non-internal) continuation lanes measured from given position.
Definition at line 3553 of file MSLane.cpp.
References getUpcomingLinks().
std::vector< const MSLink * > MSLane::getUpcomingLinks | ( | double | pos, |
double | range, | ||
const std::vector< MSLane * > & | contLanes | ||
) | const |
Returns all upcoming links within given range along the given (non-internal) continuation lanes measured from given position.
Definition at line 3564 of file MSLane.cpp.
References getEntryLink(), Named::getID(), MSLink::getInternalLengthsAfter(), MSLink::getLane(), getLength(), getLinkTo(), and isInternal().
Referenced by libsumo::Helper::applySubscriptionFilters(), and getUpcomingJunctions().
|
inline |
Returns the lane's maximum speed, given a vehicle's speed limit adaptation.
[in] | The | vehicle to return the adapted speed limit for |
Definition at line 517 of file MSLane.h.
References SUMOTrafficObject::getChosenSpeedFactor(), SUMOTrafficObject::getMaxSpeed(), SUMOTrafficObject::getVClass(), MIN2(), myMaxSpeed, and myRestrictions.
Referenced by MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSLCM_LC2013::anticipateFollowSpeed(), MSE2Collector::calculateTimeLossAndTimeOnDetector(), MSLaneChanger::changeOpposite(), MSLCM_SL2015::commitManoeuvre(), MSLaneChanger::computeOvertakingTime(), MSVehicle::estimateLeaveSpeed(), MEVehicle::estimateLeaveSpeed(), MSVehicle::estimateTimeToNextStop(), MSCFModel::finalizeSpeed(), MSCFModel_Daniel1::finalizeSpeed(), MSCFModel_IDM::finalizeSpeed(), MSCFModel_CACC::followSpeed(), MSCFModel_IDM::followSpeed(), MSCFModel_IDM::freeSpeed(), GUIVehicle::getColorValue(), MSLaneChanger::getColumnleader(), getCriticalLeader(), getDepartSpeed(), getLeaderOnConsecutive(), getLeadersOnConsecutive(), MSVehicle::getMaxSpeedOnLane(), MSLink::getZipperSpeed(), MSVehicle::Influencer::implicitSpeedRemote(), MSCFModel::interactionGap(), MSCFModel_IDM::interactionGap(), isInsertionSuccess(), MSMeanData_Net::MSLaneMeanDataValues::notifyMoveInternal(), MSVehicle::planMoveInternal(), MSVehicle::setBlinkerInformation(), MSCFModel_IDM::stopSpeed(), MSLCM_SL2015::updateExpectedSublaneSpeeds(), MSVehicle::updateTimeLoss(), MSLCM_DK2008::wantsChangeToLeft(), and MSLCM_DK2008::wantsChangeToRight().
|
inline |
Returns the number of vehicles on this lane (for which this lane is responsible)
Definition at line 399 of file MSLane.h.
References myVehicles.
Referenced by MSCalibrator::invalidJam(), MSVehicle::planMoveInternal(), MSCalibrator::remainingVehicleCapacity(), and MSFullExport::writeLane().
|
inline |
Returns the number of vehicles on this lane (including partial occupators)
Definition at line 407 of file MSLane.h.
References myPartialVehicles, and myVehicles.
Referenced by detectCollisions(), MSPModel_Striping::getNextLaneObstacles(), isInsertionSuccess(), MSPModel_Striping::moveInDirectionOnLane(), MSVehicle::planMoveInternal(), and MSPModel_Striping::PState::PState().
std::set< MSVehicle * > MSLane::getVehiclesInRange | ( | const double | a, |
const double | b | ||
) | const |
Returns all vehicles on the lane overlapping with the interval [a,b].
Definition at line 3533 of file MSLane.cpp.
References getVehiclesSecure(), and releaseVehicles().
Referenced by libsumo::Helper::applySubscriptionFilters(), and getSurroundingVehicles().
|
inlinevirtual |
Returns the vehicles container; locks it for microsimulation.
Please note that it is necessary to release the vehicles container afterwards using "releaseVehicles".
Reimplemented in GUILane.
Definition at line 426 of file MSLane.h.
References myVehicles.
Referenced by LaneStoringVisitor::add(), GUIParkingArea::drawGL(), getBruttoOccupancy(), getCO2Emissions(), getCOEmissions(), getElectricityConsumption(), getFuelConsumption(), getHarmonoise_NoiseEmissions(), getHCEmissions(), LIBSUMO_NAMESPACE::Lane::getLastStepHaltingNumber(), LIBSUMO_NAMESPACE::Lane::getLastStepLength(), LIBSUMO_NAMESPACE::Lane::getLastStepVehicleIDs(), MSVehicle::getLeader(), getLeaderOnConsecutive(), getMeanSpeed(), getMeanSpeedBike(), getNettoOccupancy(), getNOxEmissions(), getPMxEmissions(), MSVehicle::getSpaceTillLastStanding(), getVehiclesInRange(), MSPedestrianPushButton::isActiveForEdge(), GUIViewTraffic::onGamingClick(), and MSXMLRawOut::writeLane().
double MSLane::getWaitingSeconds | ( | ) | const |
Returns the overall waiting time on this lane.
Definition at line 2723 of file MSLane.cpp.
References myVehicles.
|
inline |
Returns the lane's width.
Definition at line 555 of file MSLane.h.
References myWidth.
Referenced by MSLCM_SL2015::_wantsChangeSublane(), MSPModel_Striping::addCrossingVehs(), MSLaneChanger::checkChange(), MSLaneChangerSublane::checkChangeToNewLane(), MSDevice_SSM::classifyEncounter(), MSLaneChanger::continueChange(), MSAbstractLaneChangeModel::determineTargetLane(), GUILane::drawGL(), MSVehicle::getCenterOnEdge(), getDepartPosLat(), MSVehicle::getLateralOverlap(), MSVehicle::getLatOffset(), MSLink::getLeaderInfo(), MSPModel_Striping::getNextLaneObstacles(), MSVehicle::getRightSideOnLane(), MSLCM_SL2015::getSublaneWidth(), MSPModel_Striping::getVehicleObstacles(), GUIBusStop::getWaitPosition(), MSStoppingPlace::getWaitPosition(), GUIBusStop::GUIBusStop(), GUIParkingArea::GUIParkingArea(), MSPModel_Striping::initWalkingAreaPaths(), insertVehicle(), MSLCM_SL2015::keepLatGap(), MSVehicle::lateralDistanceToLane(), MSPModel_Striping::moveInDirection(), LIBSUMO_NAMESPACE::Person::moveToXY(), LIBSUMO_NAMESPACE::Vehicle::moveToXY(), MSPModel_Striping::PState::moveToXY(), MSParkingArea::MSParkingArea(), MSPModel_Striping::nextBlocking(), MSDevice_Bluelight::notifyMove(), MSPModel_Striping::numStripes(), MSVehicle::processLinkApproaches(), GUIVehicle::selectBlockingFoes(), MSLink::setRequestInformation(), MSLaneChangerSublane::startChangeSublane(), and MSAbstractLaneChangeModel::startLaneChangeManeuver().
|
protected |
take action upon collision
Definition at line 1641 of file MSLane.cpp.
References MSBaseVehicle::addStop(), GeomHelper::angleDiff(), MSCFModel::brakeGap(), COLLISION_ACTION_REMOVE, COLLISION_ACTION_TELEPORT, COLLISION_ACTION_WARN, MSVehicle::collisionStopTime(), DEBUG_COND2, SUMOVehicleParameter::Stop::duration, SUMOVehicleParameter::Stop::endPos, MSVehicle::getAngle(), MSEdge::getBidiEdge(), MSVehicle::getCarFollowModel(), getEdge(), MSCFModel::getEmergencyDecel(), Named::getID(), MSVehicle::getInfluencer(), MSNet::getInstance(), MSVehicle::getLane(), MSVehicle::getLaneChangeModel(), getLength(), MSVehicleType::getLength(), MSVehicle::getPositionOnLane(), MSVehicle::getSpeed(), MSNet::getVehicleControl(), MSBaseVehicle::getVehicleType(), MSVehicle::hasInfluencer(), MSAbstractLaneChangeModel::haveLateralDynamics(), MSVehicle::ignoreCollision(), MSNet::informVehicleStateListener(), MSAbstractLaneChangeModel::isOpposite(), MSVehicle::Influencer::isRemoteAffected(), SUMOVehicleParameter::Stop::lane, MAX2(), MIN2(), myCollisionAction, myCollisionStopTime, SUMOVehicleParameter::Stop::parametersSet, RAD2DEG, MSVehicleControl::registerCollision(), SUMOVehicleParameter::Stop::startPos, STOP_DURATION_SET, time2string(), toString(), MSNet::VEHICLE_STATE_COLLISION, and WRITE_WARNING.
Referenced by detectCollisionBetween(), and detectCollisions().
bool MSLane::hasApproaching | ( | ) | const |
Definition at line 3070 of file MSLane.cpp.
References myLinks.
Referenced by saveState().
|
protected |
check whether any of the outgoing links are being approached
bool MSLane::hasPedestrians | ( | ) | const |
whether the lane has pedestrians on it
Definition at line 3755 of file MSLane.cpp.
References MSNet::getInstance(), MSTransportableControl::getMovementModel(), MSNet::getPersonControl(), MSPModel::hasPedestrians(), and MSNet::hasPersons().
Referenced by MSLCM_LC2013::adaptSpeedToPedestrians(), MSLaneChanger::checkChange(), checkForPedestrians(), detectCollisions(), detectPedestrianJunctionCollision(), MSVehicle::planMoveInternal(), and MSLCM_SL2015::updateExpectedSublaneSpeeds().
|
protectedvirtual |
Inserts the vehicle into this lane, and informs it about entering the network.
Calls the vehicles enterLaneAtInsertion function, updates statistics and modifies the active state as needed
[in] | veh | The vehicle to be incorporated |
[in] | pos | The position of the vehicle |
[in] | speed | The speed of the vehicle |
[in] | posLat | The lateral position of the vehicle |
[in] | at | |
[in] | notification | The cause of insertion (i.e. departure, teleport, parking) defaults to departure |
Reimplemented in GUILane.
Definition at line 341 of file MSLane.cpp.
References MSVehicle::enterLaneAtInsertion(), MSNet::getEdgeControl(), MSNet::getInstance(), MSVehicleType::getLength(), MSVehicleType::getLengthWithGap(), MSBaseVehicle::getVehicleType(), MSEdgeControl::gotActive(), MSEdge::markDelayed(), myBruttoVehicleLengthSum, myEdge, myLength, myNeedsCollisionCheck, myNettoVehicleLengthSum, and myVehicles.
Referenced by forceVehicleInsertion(), GUILane::incorporateVehicle(), isInsertionSuccess(), and loadState().
|
static |
Definition at line 3707 of file MSLane.cpp.
References COLLISION_ACTION_NONE, COLLISION_ACTION_REMOVE, COLLISION_ACTION_TELEPORT, COLLISION_ACTION_WARN, OptionsCont::getBool(), OptionsCont::getFloat(), OptionsCont::getString(), myCheckJunctionCollisions, myCollisionAction, myCollisionMinGapFactor, myCollisionStopTime, myExtrapolateSubstepDepart, string2time(), and WRITE_ERROR.
Referenced by MSFrame::setMSGlobals().
void MSLane::initRestrictions | ( | ) |
initialized vClass-specific speed limits
Definition at line 224 of file MSLane.cpp.
References MSEdge::getEdgeType(), MSNet::getInstance(), MSNet::getRestrictions(), MSGlobals::gUnitTests, myEdge, and myRestrictions.
Referenced by MSLane().
|
static |
initialize rngs
Definition at line 3803 of file MSLane.cpp.
References OptionsCont::getBool(), OptionsCont::getInt(), RandHelper::initRand(), and myRNGs.
Referenced by NLBuilder::initRandomness().
|
static |
Adds the ids of all stored lanes into the given vector.
[in,filled] | into The vector to add the IDs into |
Definition at line 1940 of file MSLane.cpp.
References myDict.
bool MSLane::insertVehicle | ( | MSVehicle & | v | ) |
Tries to insert the given vehicle.
The insertion position and speed are determined in dependence to the vehicle's departure definition, first.
Then, the vehicle is tried to be inserted into the lane using these values by a call to "isInsertionSuccess". The result of "isInsertionSuccess" is returned.
[in] | v | The vehicle to insert |
Definition at line 544 of file MSLane.cpp.
References BASE, MSBaseVehicle::basePos(), DEFAULT, DELTA_T, SUMOVehicleParameter::departPos, SUMOVehicleParameter::departPosLatProcedure, SUMOVehicleParameter::departPosProcedure, MSVehicle::executeFractionalMove(), FALLTHROUGH, FREE, freeInsertion(), MSVehicle::getBestLanesContinuation(), MSVehicle::getCarFollowModel(), MSBaseVehicle::getDepartDelay(), getDepartPosLat(), getDepartSpeed(), MSStop::getEndPos(), getLeader(), getLength(), MSCFModel::getMaxDecel(), MSVehicle::getNextStop(), MSBaseVehicle::getParameter(), MSCFModel::getSecureGap(), MSVehicle::getSpeed(), MSBaseVehicle::getVehicleType(), getWidth(), MSVehicleType::getWidth(), GIVEN, MSGlobals::gLateralResolution, MSBaseVehicle::hasStops(), isInsertionSuccess(), MSStop::lane, LAST, lastInsertion(), MIN2(), myEdge, myExtrapolateSubstepDepart, myLength, MSMoveReminder::NOTIFICATION_DEPARTED, RandHelper::rand(), RANDOM, RANDOM_FREE, and STOP.
Referenced by MSEdge::insertVehicle().
|
virtual |
Insert buffered vehicle into the real lane.
Reimplemented in GUILane.
Definition at line 1982 of file MSLane.cpp.
References DEBUG_COND, FXSynchQue< T, Container >::getContainer(), Named::getID(), MSGlobals::gLateralResolution, MSEdge::markDelayed(), myBruttoVehicleLengthSum, myEdge, myNeedsCollisionCheck, myNeighs, myNettoVehicleLengthSum, myPartialVehicles, myVehBuffer, myVehicles, SIMTIME, sortPartialVehicles(), toString(), and FXSynchQue< T, Container >::unlock().
Referenced by GUILane::integrateNewVehicles().
|
inline |
Definition at line 509 of file MSLane.h.
References myLengthGeometryFactor.
Referenced by libsumo::Helper::convertCartesianToRoadMap(), GUILane::getPopUpMenu(), libsumo::Helper::moveToXYMap(), and MSLink::setRequestInformation().
|
inline |
Definition at line 497 of file MSLane.h.
References myLengthGeometryFactor.
Referenced by MSVehicle::computeAngle(), GUIOverheadWire::drawGL(), GUIEdge::drawMesoVehicles(), geometryPositionAtOffset(), MEVehicle::getAngle(), MSStage::getLanePosition(), MSVehicle::getPosition(), MEVehicle::getSlope(), MSVehicle::getSlope(), LIBSUMO_NAMESPACE::Person::getSlope(), GUIBusStop::getWaitPosition(), MSStoppingPlace::getWaitPosition(), GUIBusStop::GUIBusStop(), GUIChargingStation::GUIChargingStation(), GUIContainerStop::GUIContainerStop(), GUIOverheadWire::GUIOverheadWire(), MSParkingArea::MSParkingArea(), and MSLaneChangerSublane::startChangeSublane().
|
inline |
return whether this lane is an acceleration lane
Definition at line 486 of file MSLane.h.
References myIsRampAccel.
Referenced by MSLCM_LC2013::informFollower().
|
inline |
Definition at line 831 of file MSLane.h.
References myApproachingLanes.
Definition at line 2241 of file MSLane.cpp.
References myApproachingLanes.
|
inline |
Returns the information whether the lane is has no vehicle and no partial occupation
Definition at line 774 of file MSLane.h.
References myPartialVehicles, and myVehicles.
Referenced by MSRailSignal::hasOncomingRailTraffic().
bool MSLane::isInsertionSuccess | ( | MSVehicle * | vehicle, |
double | speed, | ||
double | pos, | ||
double | posLat, | ||
bool | recheckNextLanes, | ||
MSMoveReminder::Notification | notification | ||
) |
Tries to insert the given vehicle with the given state (speed and pos)
Checks whether the vehicle can be inserted at the given position with the given speed so that no collisions with leader/follower occur and the speed does not cause unexpected behaviour on consecutive lanes. Returns false if the vehicle can not be inserted.
If the insertion can take place, incorporateVehicle() is called and true is returned.
[in] | vehicle | The vehicle to insert |
[in] | speed | The speed with which it shall be inserted |
[in] | pos | The position at which it shall be inserted |
[in] | posLat | The lateral position at which it shall be inserted |
[in] | recheckNextLanes | Forces patching the speed for not being too fast on next lanes |
[in] | notification | The cause of insertion (i.e. departure, teleport, parking) defaults to departure |
Definition at line 671 of file MSLane.cpp.
References SUMOVehicleParameter::arrivalSpeed, SUMOVehicleParameter::arrivalSpeedProcedure, MSRoute::begin(), MSCFModel::brakeGap(), checkFailure(), checkForPedestrians(), DEBUG_COND2, MSInsertionControl::descheduleDeparture(), SUMOVehicleParameter::Stop::endPos, MSCFModel::freeSpeed(), MSGlobals::gCheckRoutes, MSBaseVehicle::getArrivalPos(), MSVehicle::getBackPositionOnLane(), MSVehicle::getBestLanesContinuation(), MSEdge::getBidiEdge(), getBidiLane(), MSVehicle::getCarFollowModel(), MSNet::getCurrentTimeStep(), getEdge(), getFollowersOnConsecutive(), Named::getID(), Named::getIDSecure(), MSBaseVehicle::getImpatience(), MSNet::getInsertionControl(), MSNet::getInstance(), MSVehicle::getLaneChangeModel(), MSRoute::getLastEdge(), getLastVehicleInformation(), getLength(), MSVehicleType::getLength(), MSCFModel::getMaxDecel(), MSVehicleType::getMinGap(), getMissingRearGap(), MSVehicle::getNextStop(), MSBaseVehicle::getParameter(), MSVehicle::getPositionOnLane(), MSBaseVehicle::getRoute(), MSCFModel::getSecureGap(), MSAbstractLaneChangeModel::getShadowLane(), MSVehicle::getSpeed(), getStopOffset(), MSEdge::getToJunction(), MSBaseVehicle::getVClass(), getVehicleMaxSpeed(), getVehicleNumberWithPartials(), MSBaseVehicle::getVehicleType(), GIVEN, MSRailSignal::hasInsertionConstraint(), MSRailSignal::hasOncomingRailTraffic(), MSBaseVehicle::hasStops(), MSLeaderInfo::hasVehicles(), incorporateVehicle(), MSCFModel::insertionStopSpeed(), INVALID_SPEED, isLinkEnd(), isRailway(), MSStop::lane, LINKSTATE_ALLWAY_STOP, LINKSTATE_EQUAL, LINKSTATE_MINOR, LINKSTATE_STOP, MAX2(), myEdge, Named::myID, myLength, myManeuverReservations, myPartialVehicles, myVehicles, MSLeaderInfo::numFreeSublanes(), MSLeaderInfo::numSublanes(), MSStop::pars, safeInsertionSpeed(), MSVehicle::setTentativeLaneAndPosition(), SIMTIME, MSCFModel::stopSpeed(), succLinkSec(), SUMO_const_haltingSpeed, TIME2STEPS, MSLeaderInfo::toString(), toString(), MSVehicle::updateBestLanes(), WRITE_ERROR, and WRITE_WARNING.
Referenced by MSVehicleTransfer::checkInsertions(), freeInsertion(), insertVehicle(), and lastInsertion().
bool MSLane::isInternal | ( | ) | const |
Returns whether the lane pertains to an internal edge
Definition at line 2036 of file MSLane.cpp.
References MSEdge::isInternal(), and myEdge.
Referenced by MSTractionSubstation::addOverheadWireSegmentToCircuit(), MSRouteHandler::addStop(), MSBaseVehicle::addStop(), MSDevice_ToC::checkDynamicToC(), MSVehicle::checkReversal(), MSDevice_SSM::classifyEncounter(), GUILane::drawGL(), GUILane::drawLinkRule(), MSVehicle::enterLaneAtInsertion(), MSVehicle::executeFractionalMove(), MSRailSignal::DriveWay::findFlankProtection(), MSDevice_SSM::findFoeConflictLane(), MSDevice_SSM::findSurroundingVehicles(), MSLink::getCorrespondingEntryLink(), getCriticalLeader(), MSVehicle::getDistanceToPosition(), getEntryLink(), getFirstInternalInConnection(), LIBSUMO_NAMESPACE::Lane::getInternalFoes(), MSLogicJunction::getInternalLanes(), MSNoLogicJunction::getInternalLanes(), MSLink::getInternalLengthsAfter(), MSLink::getInternalLengthsBefore(), getLeaderOnConsecutive(), getLinkTo(), getNormalPredecessorLane(), MSVehicle::getPastLanesUntil(), MSVehicle::getPositionAlongBestLanes(), GUIVehicle::getPreviousLane(), MSVehicle::getUpcomingLanesUntil(), getUpcomingLinks(), MSE2Collector::initAuxiliaries(), MSVehicle::isLeader(), MSVehicle::joinTrainPartFront(), MSLink::MSLink(), MSLane::incoming_lane_priority_sorter::operator()(), NLTriggerBuilder::parseAndBuildOverheadWireSegment(), MSVehicle::planMoveInternal(), MSVehicle::processLaneAdvances(), MSVehicle::processLinkApproaches(), succLinkSec(), MSVehicle::updateBestLanes(), MSVehicle::updateDriveItems(), MSElecHybridExport::write(), MSFCDExport::write(), and MSElecHybridExport::writeAggregated().
|
inline |
Returns the information whether the given link shows at the end of the list of links (is not valid)
Definition at line 762 of file MSLane.h.
References myLinks.
Referenced by MSLaneChanger::checkChange(), getCriticalLeader(), getLeaderOnConsecutive(), getLeadersOnConsecutive(), LIBSUMO_NAMESPACE::Vehicle::getNextTLS(), isInsertionSuccess(), MSVehicle::planMoveInternal(), and MSVehicle::unsafeLinkAhead().
|
inline |
|
staticprivateinherited |
check if given string can be parsed to a parameter of type "key=value"
Definition at line 240 of file Parameterised.cpp.
References Parameterised::DOUBLE, StringTokenizer::getVector(), SUMOXMLDefinitions::isValidParameterKey(), and StringUtils::toDouble().
Referenced by Parameterised::areParametersValid().
|
inlinevirtual |
|
inherited |
Returns whether the parameter is known.
[in] | key | The key to ask for |
Definition at line 106 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NBEdge::append(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), NWWriter_DlrNavteq::getBrunnelType(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSDevice::getStringParam(), MSTriggeredRerouter::getWeight(), MSVehicleType::initRailVisualizationParameters(), GNEVehicleType::initRailVisualizationParameters(), GNEVehicleType::overwriteVType(), MSDevice_SSM::requestsTrajectories(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), MSDevice_SSM::useGeoCoords(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::WAUTSwitchProcedure_Stretch(), and NWWriter_OpenDrive::writeRoadObjects().
bool MSLane::lastInsertion | ( | MSVehicle & | veh, |
double | mspeed, | ||
double | posLat, | ||
bool | patchSpeed | ||
) |
inserts vehicle as close as possible to the last vehicle on this lane (or at the end of the lane if there is no leader)
look for a leaders on consecutive lanes
Definition at line 362 of file MSLane.cpp.
References MSCFModel::brakeGap(), MSVehicle::getBackPositionOnLane(), MSVehicle::getBestLanesContinuation(), MSVehicle::getCarFollowModel(), getLastAnyVehicle(), getLeader(), getLength(), MSCFModel::getMaxDecel(), MSVehicleType::getMinGap(), MSCFModel::getSecureGap(), MSVehicle::getSpeed(), MSBaseVehicle::getVehicleType(), isInsertionSuccess(), MIN2(), MSMoveReminder::NOTIFICATION_DEPARTED, MSVehicle::setTentativeLaneAndPosition(), and MSVehicle::updateBestLanes().
Referenced by insertVehicle().
void MSLane::leftByLaneChange | ( | MSVehicle * | v | ) |
Definition at line 2668 of file MSLane.cpp.
References MSVehicleType::getLength(), MSVehicleType::getLengthWithGap(), MSBaseVehicle::getVehicleType(), myBruttoVehicleLengthSum, and myNettoVehicleLengthSum.
Referenced by MSAbstractLaneChangeModel::primaryLaneChanged().
|
static |
load random number generator state for the given rng index
Definition at line 3826 of file MSLane.cpp.
References getNumRNGs(), RandHelper::loadState(), myRNGs, and toString().
Referenced by MSStateHandler::myStartElement().
void MSLane::loadState | ( | const std::vector< std::string > & | vehIDs, |
MSVehicleControl & | vc | ||
) |
Loads the state of this segment with the given parameters.
This method is called for every internal que the segment has. Every vehicle is retrieved from the given MSVehicleControl and added to this lane.
[in] | vehIDs | The vehicle ids for the current que |
[in] | vc | The vehicle control to retrieve references vehicles from |
What about throwing an IOError?
What about throwing an error if something else fails (a vehicle can not be referenced)?
Definition at line 3137 of file MSLane.cpp.
References MSVehicle::getLateralPositionOnLane(), MSVehicle::getPositionOnLane(), MSVehicle::getSpeed(), MSVehicleControl::getVehicle(), incorporateVehicle(), myVehicles, MSMoveReminder::NOTIFICATION_JUNCTION, MSVehicle::processNextStop(), and MSVehicle::updateBestLanes().
Referenced by MSStateHandler::myStartElement().
bool MSLane::mustCheckJunctionCollisions | ( | ) | const |
whether this lane must check for junction collisions
Definition at line 3848 of file MSLane.cpp.
References MSEdge::isInternal(), myCheckJunctionCollisions, myEdge, and myLinks.
Referenced by detectCollisions(), and MSVehicle::processLaneAdvances().
|
inline |
short-circut collision check if nothing changed since the last check
Definition at line 621 of file MSLane.h.
References myNeedsCollisionCheck.
PersonDist MSLane::nextBlocking | ( | double | minPos, |
double | minRight, | ||
double | maxLeft, | ||
double | stopTime = 0 |
||
) | const |
This is just a wrapper around MSPModel::nextBlocking. You should always check using hasPedestrians before calling this method.
Definition at line 3762 of file MSLane.cpp.
References MSNet::getInstance(), MSTransportableControl::getMovementModel(), MSNet::getPersonControl(), and MSPModel::nextBlocking().
Referenced by MSLCM_LC2013::adaptSpeedToPedestrians(), MSLaneChanger::checkChange(), checkForPedestrians(), detectCollisions(), MSVehicle::planMoveInternal(), and MSLCM_SL2015::updateExpectedSublaneSpeeds().
|
virtual |
Compute safe velocities for all vehicles based on positions and speeds from the last time step. Also registers ApproachingVehicleInformation for all links.
This method goes through all vehicles calling their "planMove" method.
Reimplemented in GUILane.
Definition at line 1218 of file MSLane.cpp.
References MSLeaderInfo::addLeader(), DEBUG_COND, DEBUG_COND2, Named::getID(), MSGlobals::gLateralResolution, myManeuverReservations, myPartialVehicles, myVehicles, SIMTIME, MSLeaderInfo::toString(), toString(), and updateLeaderInfo().
Referenced by GUILane::planMovements().
|
inlinevirtual |
Allows to use the container for microsimulation again.
Reimplemented in GUILane.
Definition at line 456 of file MSLane.h.
Referenced by LaneStoringVisitor::add(), GUIParkingArea::drawGL(), getBruttoOccupancy(), getCO2Emissions(), getCOEmissions(), getElectricityConsumption(), getFuelConsumption(), getHarmonoise_NoiseEmissions(), getHCEmissions(), LIBSUMO_NAMESPACE::Lane::getLastStepHaltingNumber(), LIBSUMO_NAMESPACE::Lane::getLastStepLength(), LIBSUMO_NAMESPACE::Lane::getLastStepVehicleIDs(), MSVehicle::getLeader(), getLeaderOnConsecutive(), getMeanSpeed(), getMeanSpeedBike(), getNettoOccupancy(), getNOxEmissions(), getPMxEmissions(), MSVehicle::getSpaceTillLastStanding(), getVehiclesInRange(), MSPedestrianPushButton::isActiveForEdge(), GUIViewTraffic::onGamingClick(), and MSXMLRawOut::writeLane().
|
virtual |
remove parking vehicle. This must be syncrhonized when running with GUI
Reimplemented in GUILane.
Definition at line 3065 of file MSLane.cpp.
References myParkingVehicles.
Referenced by MSVehicleTransfer::checkInsertions(), MSVehicleTransfer::remove(), and GUILane::removeParking().
|
virtual |
Reimplemented in GUILane.
Definition at line 2193 of file MSLane.cpp.
References MSVehicle::getLane(), MSVehicleType::getLength(), MSVehicleType::getLengthWithGap(), MSBaseVehicle::getVehicleType(), MSVehicle::leaveLane(), myBruttoVehicleLengthSum, myNettoVehicleLengthSum, and myVehicles.
Referenced by detectCollisions(), MSVehicle::executeFractionalMove(), LIBSUMO_NAMESPACE::Vehicle::moveTo(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdRemoveObject(), MSVehicle::Influencer::postProcessRemoteControl(), LIBSUMO_NAMESPACE::Vehicle::remove(), MSCalibrator::removePending(), and GUILane::removeVehicle().
|
inline |
require another collision check due to relevant changes in the simulation
Definition at line 626 of file MSLane.h.
References myNeedsCollisionCheck.
Referenced by MSLaneChanger::continueChange().
|
virtual |
Unregisters a vehicle, which previously registered for maneuvering into this lane.
[in] | v | The vehicle |
Definition at line 323 of file MSLane.cpp.
References DEBUG_COND2, Named::getID(), myManeuverReservations, and SIMTIME.
Referenced by MSAbstractLaneChangeModel::cleanupTargetLane(), and MSAbstractLaneChangeModel::updateTargetLane().
|
virtual |
Removes the information about a vehicle lapping into this lane.
[in] | v | The vehicle which laps into this lane |
Reimplemented in GUILane.
Definition at line 290 of file MSLane.cpp.
References DEBUG_COND2, Named::getID(), MSGlobals::gNumSimThreads, myPartialVehicles, and SIMTIME.
Referenced by MSAbstractLaneChangeModel::cleanupShadowLane(), GUILane::resetPartialOccupation(), and MSAbstractLaneChangeModel::updateShadowLane().
void MSLane::resetPermissions | ( | long long | transientID | ) |
Definition at line 3740 of file MSLane.cpp.
References myOriginalPermissions, myPermissionChanges, myPermissions, and SVCAll.
Referenced by GUILane::closeTraffic(), and setPermissions().
|
protected |
return the maximum safe speed for insertion behind leaders (a negative value indicates that safe insertion is impossible)
Definition at line 1078 of file MSLane.cpp.
References DEBUG_COND2, MSVehicle::getBackPositionOnLane(), MSVehicle::getCarFollowModel(), Named::getID(), MSCFModel::getMaxDecel(), MSVehicleType::getMinGap(), MSVehicle::getSpeed(), MSBaseVehicle::getVehicleType(), MSCFModel::insertionFollowSpeed(), INVALID_SPEED, MIN2(), MSLeaderInfo::numSublanes(), and SIMTIME.
Referenced by isInsertionSuccess().
|
static |
save random number generator states to the given output device
Definition at line 3816 of file MSLane.cpp.
References OutputDevice::closeTag(), getNumRNGs(), myRNGs, OutputDevice::openTag(), RandHelper::saveState(), SUMO_ATTR_INDEX, SUMO_ATTR_STATE, SUMO_TAG_RNGLANE, and OutputDevice::writeAttr().
Referenced by MSStateHandler::saveRNGs().
void MSLane::saveState | ( | OutputDevice & | out | ) |
Saves the state of this lane into the given stream.
Basically, a list of vehicle ids
[in,filled] | out The (possibly binary) device to write the state into |
Definition at line 3080 of file MSLane.cpp.
References OutputDevice::closeTag(), Named::getID(), MSEdge::getToJunction(), MSJunction::getType(), hasApproaching(), myEdge, myLinks, myVehicles, OutputDevice::openTag(), RAIL_CROSSING, RAIL_SIGNAL, SUMO_ATTR_ARRIVALSPEED, SUMO_ATTR_ARRIVALSPEEDBRAKING, SUMO_ATTR_ARRIVALTIME, SUMO_ATTR_ARRIVALTIMEBRAKING, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_DISTANCE, SUMO_ATTR_ID, SUMO_ATTR_REQUEST, SUMO_ATTR_TO, SUMO_ATTR_VALUE, SUMO_ATTR_WAITINGTIME, SUMO_TAG_APPROACHING, SUMO_TAG_LANE, SUMO_TAG_LINK, SUMO_TAG_VIEWSETTINGS_VEHICLES, and OutputDevice::writeAttr().
|
inlinevirtualinherited |
resets the id
[in] | newID | The new id of this object |
Reimplemented in MSTransportable, and MSBaseVehicle.
Definition at line 81 of file Named.h.
References Named::myID.
Referenced by Distribution_Parameterized::parse(), NBLoadedSUMOTLDef::reconstructLogic(), NBEdgeCont::rename(), NBNodeCont::rename(), GNEJunction::setAttribute(), and IntermodalNetwork< E, L, N, V >::splitEdge().
|
virtual |
Register junction approaches for all vehicles after velocities have been planned.
This method goes through all vehicles calling their * "setApproachingForAllLinks" method.
Reimplemented in GUILane.
Definition at line 1258 of file MSLane.cpp.
References myVehicles.
Referenced by GUILane::setJunctionApproaches().
void MSLane::setLength | ( | double | val | ) |
Sets a new length for the lane (used by TraCI only)
[in] | val | the new length in m |
Definition at line 2175 of file MSLane.cpp.
References myEdge, myLength, and MSEdge::recalcCache().
Referenced by LIBSUMO_NAMESPACE::Lane::setLength().
|
virtual |
Registers the lane change intentions (towards this lane) for the given vehicle.
Definition at line 312 of file MSLane.cpp.
References DEBUG_COND2, Named::getID(), myManeuverReservations, and SIMTIME.
Referenced by MSAbstractLaneChangeModel::updateTargetLane().
void MSLane::setMaxSpeed | ( | double | val | ) |
Sets a new maximum speed for the lane (used by TraCI and MSCalibrator)
[in] | val | the new speed in m/s |
Definition at line 2168 of file MSLane.cpp.
References myEdge, myMaxSpeed, and MSEdge::recalcCache().
Referenced by MSCalibrator::execute(), and LIBSUMO_NAMESPACE::Lane::setMaxSpeed().
|
virtualinherited |
Sets a parameter.
[in] | key | The parameter's name |
[in] | value | The parameter's value |
Reimplemented in GNEPoly, GNEPOI, and MSActuatedTrafficLightLogic.
Definition at line 75 of file Parameterised.cpp.
References Parameterised::DOUBLE, Parameterised::myAttrType, Parameterised::myMap, StringUtils::toDouble(), and WRITE_WARNING.
Referenced by NLHandler::addDistrict(), RONetHandler::addParam(), SUMORouteHandler::addParam(), ShapeHandler::addPOI(), NBEdge::append(), NIImporter_OpenStreetMap::insertNodeChecking(), NBNodeCont::joinNodeCluster(), NBEdge::Lane::Lane(), NIImporter_OpenDrive::loadNetwork(), MSStateHandler::myStartElement(), NIImporter_MATSim::EdgesHandler::myStartElement(), NIXMLNodesHandler::myStartElement(), NIXMLTrafficLightsHandler::myStartElement(), ShapeHandler::myStartElement(), GNEAdditionalHandler::parseParameter(), GNEDataHandler::parseParameter(), GNEVehicleType::setAttribute(), NBEdge::setJunctionPriority(), NIImporter_OpenDrive::setLaneAttributes(), MSActuatedTrafficLightLogic::setParameter(), GNEPOI::setParameter(), GNEPoly::setParameter(), Parameterised::setParameters(), Parameterised::setParametersMap(), Parameterised::setParametersStr(), and Parameterised::updateParameters().
|
inherited |
set the inner key/value map in map<string, string> format
Definition at line 168 of file Parameterised.cpp.
References Parameterised::getParametersMap(), Parameterised::myMap, and Parameterised::setParameter().
|
inherited |
set the inner key/value map in map<string, string> format
Definition at line 179 of file Parameterised.cpp.
References Parameterised::myMap, and Parameterised::setParameter().
|
inherited |
set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN"
[in] | paramsString | A serialized key-value map |
[in] | kvsep | The separater between key and value |
[in] | sep | The separater between map entries |
Definition at line 190 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::myMap, and Parameterised::setParameter().
Referenced by MSDevice_Taxi::initDispatch(), GNEAccess::setAttribute(), GNEBusStop::setAttribute(), GNECalibrator::setAttribute(), GNECalibratorFlow::setAttribute(), GNEChargingStation::setAttribute(), GNEClosingLaneReroute::setAttribute(), GNEClosingReroute::setAttribute(), GNEContainerStop::setAttribute(), GNEDestProbReroute::setAttribute(), GNEDetectorE1::setAttribute(), GNEDetectorE1Instant::setAttribute(), GNEDetectorE2::setAttribute(), GNEDetectorE3::setAttribute(), GNEDetectorEntryExit::setAttribute(), GNEParkingArea::setAttribute(), GNEParkingAreaReroute::setAttribute(), GNEParkingSpace::setAttribute(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), GNERerouter::setAttribute(), GNERerouterInterval::setAttribute(), GNERouteProbe::setAttribute(), GNERouteProbReroute::setAttribute(), GNETAZ::setAttribute(), GNETAZSourceSink::setAttribute(), GNEVaporizer::setAttribute(), GNEVariableSpeedSign::setAttribute(), GNEVariableSpeedSignStep::setAttribute(), GNEEdgeData::setAttribute(), GNEEdgeRelData::setAttribute(), GNETAZRelData::setAttribute(), GNEPerson::setAttribute(), GNEPersonTrip::setAttribute(), GNERide::setAttribute(), GNERoute::setAttribute(), GNEVehicle::setAttribute(), GNEVehicleType::setAttribute(), GNEWalk::setAttribute(), GNEConnection::setAttribute(), GNEEdge::setAttribute(), GNEEdgeType::setAttribute(), GNEJunction::setAttribute(), GNELane::setAttribute(), and GNELaneType::setAttribute().
|
virtual |
Sets the information about a vehicle lapping into this lane.
This vehicle is added to myVehicles and may be distinguished from regular vehicles by the disparity between this lane and v->getLane()
[in] | v | The vehicle which laps into this lane |
Reimplemented in GUILane.
Definition at line 272 of file MSLane.cpp.
References DEBUG_COND2, Named::getID(), MSGlobals::gNumSimThreads, myLength, myNeedsCollisionCheck, myPartialVehicles, and SIMTIME.
Referenced by GUILane::setPartialOccupation(), and MSAbstractLaneChangeModel::updateShadowLane().
void MSLane::setPermissions | ( | SVCPermissions | permissions, |
long long | transientID | ||
) |
Sets the permissions to the given value. If a transientID is given, the permissions are recored as temporary.
[in] | permissions | The new permissions |
[in] | transientID | The id of the permission-modification or the special value PERMANENT |
Definition at line 3728 of file MSLane.cpp.
References CHANGE_PERMISSIONS_PERMANENT, myOriginalPermissions, myPermissionChanges, myPermissions, and resetPermissions().
Referenced by GUILane::closeTraffic(), LIBSUMO_NAMESPACE::Lane::setAllowed(), and LIBSUMO_NAMESPACE::Lane::setDisallowed().
|
inline |
Definition at line 1072 of file MSLane.h.
References myRightmostSublane, and myRightSideOnEdge.
|
inline |
Set vehicle class specific stopOffsets.
Definition at line 845 of file MSLane.h.
References myStopOffsets.
void MSLane::sortManeuverReservations | ( | ) |
sorts myManeuverReservations
Definition at line 2017 of file MSLane.cpp.
References DEBUG_COND, Named::getID(), myManeuverReservations, and toString().
void MSLane::sortPartialVehicles | ( | ) |
sorts myPartialVehicles
Definition at line 2009 of file MSLane.cpp.
References myPartialVehicles.
Referenced by integrateNewVehicles(), and swapAfterLaneChange().
|
static |
Same as succLink, but does not throw any assertions when the succeeding link could not be found; Returns the myLinks.end() instead; Further, the number of edges to look forward may be given
Definition at line 2079 of file MSLane.cpp.
References Named::getID(), MSNet::getInstance(), MSVehicleType::getVehicleClass(), SUMOTrafficObject::getVehicleType(), isInternal(), myLinks, SUMOVehicle::succEdge(), time2string(), and WRITE_WARNING.
Referenced by appropriate(), MSLaneChanger::checkChange(), executeMovements(), getCriticalLeader(), getLeaderOnConsecutive(), getLeadersOnConsecutive(), LIBSUMO_NAMESPACE::Vehicle::getNextTLS(), isInsertionSuccess(), MSVehicle::planMoveInternal(), MSVehicle::setBlinkerInformation(), and MSVehicle::unsafeLinkAhead().
|
protectedvirtual |
moves myTmpVehicles int myVehicles after a lane change procedure
Reimplemented in GUILane.
Definition at line 2182 of file MSLane.cpp.
References myTmpVehicles, myVehicles, and sortPartialVehicles().
Referenced by GUILane::swapAfterLaneChange().
|
inlinestatic |
Definition at line 1231 of file MSLane.h.
References COLLISION_ACTION_TELEPORT, and myCollisionAction.
Referenced by MSVehicleControl::getTeleportCount().
|
inherited |
Removes a parameter.
[in] | key | The parameter's name |
Definition at line 92 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NIImporter_OpenStreetMap::insertEdge(), and GNEVehicleType::setAttribute().
void MSLane::updateLeaderInfo | ( | const MSVehicle * | veh, |
VehCont::reverse_iterator & | vehPart, | ||
VehCont::reverse_iterator & | vehRes, | ||
MSLeaderInfo & | ahead | ||
) | const |
This updates the MSLeaderInfo argument with respect to the given MSVehicle. All leader-vehicles on the same edge, which are relevant for the vehicle (i.e. with position > vehicle's position) and not already integrated into the LeaderInfo, are integrated. The given iterators vehPart and vehRes give access to these vehicles which are either partial occupators or have issued a maneuver reservation for the lane (the latter occurs only for the sublane model).
Definition at line 1266 of file MSLane.cpp.
References MSLeaderInfo::addLeader(), DEBUG_COND, MSVehicle::getPositionOnLane(), myManeuverReservations, and myPartialVehicles.
Referenced by planMovements().
void MSLane::updateLengthSum | ( | ) |
updated current vehicle length sum (delayed to avoid lane-order-dependency)
Definition at line 1864 of file MSLane.cpp.
References myBruttoVehicleLengthSum, myBruttoVehicleLengthSumToRemove, myNettoVehicleLengthSum, myNettoVehicleLengthSumToRemove, and myVehicles.
|
inherited |
Adds or updates all given parameters from the map.
[in] | mapArg | The keys/values to insert |
Definition at line 98 of file Parameterised.cpp.
References Parameterised::setParameter().
Referenced by NIImporter_SUMO::_loadNetwork(), PCLoaderOSM::addPOI(), PCLoaderOSM::addPolygon(), NLHandler::closeEdge(), NLJunctionControlBuilder::closeJunction(), NBTrafficLightDefinition::compute(), NIImporter_OpenStreetMap::insertEdge(), NBEdge::NBEdge(), and NBLoadedSUMOTLDef::NBLoadedSUMOTLDef().
|
inline |
Callback for visiting the lane when traversing an RTree.
This is used in the TraCIServerAPI_Lane for context subscriptions.
[in] | cont | The context doing all the work |
Definition at line 1219 of file MSLane.h.
References LaneStoringVisitor::add().
Referenced by libsumo::Helper::collectObjectsInRange().
|
inherited |
write Params in the given outputdevice
Definition at line 205 of file Parameterised.cpp.
References OutputDevice::closeTag(), StringUtils::escapeXML(), Parameterised::myMap, OutputDevice::openTag(), SUMO_ATTR_KEY, SUMO_ATTR_VALUE, SUMO_TAG_PARAM, and OutputDevice::writeAttr().
Referenced by ROPerson::saveAsXML(), ROVehicle::saveAsXML(), MEVehicle::saveState(), MSVehicle::saveState(), SUMOVTypeParameter::write(), GNEAdditional::writeAdditional(), NWWriter_SUMO::writeConnection(), GNEPerson::writeDemandElement(), GNEPersonTrip::writeDemandElement(), GNERide::writeDemandElement(), GNERoute::writeDemandElement(), GNEVehicle::writeDemandElement(), GNEWalk::writeDemandElement(), NWWriter_SUMO::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_SUMO::writeJunction(), NWWriter_SUMO::writeLane(), NWWriter_XML::writeNodes(), MSDevice_Vehroutes::writeOutput(), GNETAZ::writeTAZElement(), NWWriter_SUMO::writeTrafficLight(), SUMOPolygon::writeXML(), and PointOfInterest::writeXML().
|
friend |
Definition at line 89 of file MSLane.h.
Referenced by anyVehiclesBegin(), anyVehiclesEnd(), anyVehiclesUpstreamBegin(), and anyVehiclesUpstreamEnd().
|
friend |
|
friend |
|
friend |
|
static |
Definition at line 1240 of file MSLane.h.
Referenced by GUILane::closeTraffic().
|
static |
Definition at line 1239 of file MSLane.h.
Referenced by LIBSUMO_NAMESPACE::Lane::setAllowed(), LIBSUMO_NAMESPACE::Edge::setAllowedSVCPermissions(), LIBSUMO_NAMESPACE::Lane::setDisallowed(), and setPermissions().
All direct internal and direct (disregarding internal predecessors) non-internal predecessor lanes of this lane.
Definition at line 1412 of file MSLane.h.
Referenced by addApproachingLane(), getNormalIncomingLanes(), and isApproachedFrom().
|
privateinherited |
parameterised type
Definition at line 143 of file Parameterised.h.
Referenced by Parameterised::Parameterised(), and Parameterised::setParameter().
|
protected |
The current length of all vehicles on this lane, including their minGaps.
Definition at line 1396 of file MSLane.h.
Referenced by clearState(), enteredByLaneChange(), getBruttoOccupancy(), getBruttoVehLenSum(), incorporateVehicle(), integrateNewVehicles(), leftByLaneChange(), removeVehicle(), and updateLengthSum().
|
protected |
The length of all vehicles that have left this lane in the current step (this lane, including their minGaps)
Definition at line 1402 of file MSLane.h.
Referenced by clearState(), executeMovements(), and updateLengthSum().
|
mutableprotected |
Similar to LogicalPredecessorLane,.
Definition at line 1390 of file MSLane.h.
Referenced by getCanonicalPredecessorLane().
|
mutableprotected |
Main successor lane,.
Definition at line 1393 of file MSLane.h.
Referenced by getCanonicalSuccessorLane().
|
staticprivate |
Definition at line 1464 of file MSLane.h.
Referenced by initCollisionOptions(), and mustCheckJunctionCollisions().
|
staticprivate |
the action to take on collisions
Definition at line 1463 of file MSLane.h.
Referenced by detectCollisionBetween(), detectCollisions(), getCollisionAction(), handleCollisionBetween(), initCollisionOptions(), and teleportOnCollision().
|
staticprivate |
Definition at line 1466 of file MSLane.h.
Referenced by detectCollisionBetween(), and initCollisionOptions().
|
staticprivate |
Definition at line 1465 of file MSLane.h.
Referenced by handleCollisionBetween(), and initCollisionOptions().
|
staticprotected |
Static dictionary to associate string-ids with objects.
Definition at line 1454 of file MSLane.h.
Referenced by clear(), dictionary(), dictSize(), fill(), and insertIDs().
|
protected |
The lane's edge, for routing only.
Definition at line 1369 of file MSLane.h.
Referenced by appropriate(), changeLanes(), detectCollisions(), GUILane::drawGL(), GUILane::drawLane2LaneConnections(), GUILane::drawLinkRule(), GUILane::drawLinkRules(), GUILane::drawMarkings(), getBidiLane(), GUILane::getColorValue(), getEdge(), GUILane::getEdgeLaneNumber(), getFollowersOnConsecutive(), GUILane::getLoadedEdgeWeight(), getLogicalPredecessorLane(), getNextNormal(), getParallelLane(), GUILane::getParameterWindow(), GUILane::getScaleValue(), GUILane::getStoredEdgeTravelTime(), incorporateVehicle(), initRestrictions(), insertVehicle(), integrateNewVehicles(), isInsertionSuccess(), isInternal(), GUILane::isLaneOrEdgeSelected(), mustCheckJunctionCollisions(), MSLane::by_connections_to_sorter::operator()(), saveState(), GUILane::setColor(), GUILane::setFunctionalColor(), setLength(), and setMaxSpeed().
|
staticprivate |
Definition at line 1467 of file MSLane.h.
Referenced by initCollisionOptions(), and insertVehicle().
|
mutableprotected |
followers on all sublanes as seen by vehicles on consecutive lanes (cached)
Definition at line 1417 of file MSLane.h.
Referenced by getFirstVehicleInformation().
|
mutableprotected |
time step for which myFollowerInfo was last updated
Definition at line 1422 of file MSLane.h.
Referenced by clearState(), and getFirstVehicleInformation().
|
protectedinherited |
The name of the object.
Definition at line 124 of file Named.h.
Referenced by MSE2Collector::addDetectorToLanes(), RODFDetector::buildDestinationDistribution(), NGEdge::buildNBEdge(), NGNode::buildNBNode(), MSSOTLTrafficLightLogic::checkPhases(), NBNode::computeNodeShape(), MSE2Collector::detectorUpdate(), GNEPOI::getAttribute(), GNEPoly::getAttribute(), getCanonicalPredecessorLane(), getCanonicalSuccessorLane(), Named::getID(), NBEdge::getLaneID(), ROEdge::getStoredEffort(), getSurroundingVehicles(), ROEdge::getTravelTime(), NBEdge::init(), MSActuatedTrafficLightLogic::init(), MSDelayBasedTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), isInsertionSuccess(), NBNode::NBNode(), MSE2Collector::notifyEnter(), MSE2Collector::notifyLeave(), MSE2Collector::notifyMove(), MSMeanData::openInterval(), RORouteDef::preComputeCurrentRoute(), NBEdge::reinitNodes(), MSRoute::release(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), Named::setID(), MSSOTLTrafficLightLogic::setToATargetPhase(), Distribution_Parameterized::toStr(), MSChargingStation::writeChargingStationOutput(), RODFDetector::writeEmitterDefinition(), MSOverheadWire::writeOverheadWireSegmentOutput(), RODFDetector::writeSingleSpeedTrigger(), MEInductLoop::writeXMLOutput(), and MSE3Collector::writeXMLOutput().
|
protected |
All direct predecessor lanes.
Definition at line 1384 of file MSLane.h.
Referenced by addIncomingLane(), getCanonicalPredecessorLane(), getFollowersOnConsecutive(), getIncomingLanes(), and getLogicalPredecessorLane().
|
protected |
The lane index.
Definition at line 1309 of file MSLane.h.
Referenced by GUILane::drawMarkings(), and getIndex().
|
protected |
whether this lane is an acceleration lane
Definition at line 1428 of file MSLane.h.
Referenced by isAccelLane().
|
protected |
the type of this lane
Definition at line 1431 of file MSLane.h.
Referenced by getLaneType(), and GUILane::getParameterWindow().
|
mutableprotected |
leaders on all sublanes as seen by approaching vehicles (cached)
Definition at line 1415 of file MSLane.h.
Referenced by getLastVehicleInformation().
|
mutableprotected |
time step for which myLeaderInfo was last updated
Definition at line 1420 of file MSLane.h.
Referenced by clearState(), and getLastVehicleInformation().
|
protected |
Lane length [m].
Definition at line 1358 of file MSLane.h.
Referenced by detectCollisions(), freeInsertion(), getBruttoOccupancy(), GUILane::getColorValue(), getFirstVehicleInformation(), getLength(), getNettoOccupancy(), GUILane::getParameterWindow(), GUILane::getScaleValue(), getSurroundingVehicles(), incorporateVehicle(), insertVehicle(), isInsertionSuccess(), setLength(), setPartialOccupation(), and GUILane::splitAtSegments().
|
protected |
precomputed myShape.length / myLength
Definition at line 1425 of file MSLane.h.
Referenced by GUILane::getColorValue(), getLengthGeometryFactor(), GUILane::getScaleValue(), interpolateGeometryPosToLanePos(), and interpolateLanePosToGeometryPos().
|
protected |
The lane's Links to it's succeeding lanes and the default right-of-way rule, i.e. blocked or not blocked.
Definition at line 1409 of file MSLane.h.
Referenced by addLink(), appropriate(), clearState(), detectCollisions(), GUILane::drawArrows(), GUILane::drawLane2LaneConnections(), GUILane::drawLinkNo(), GUILane::drawLinkRules(), GUILane::drawTLSLinkNo(), executeMovements(), getCanonicalSuccessorLane(), getCrossingIndex(), getInternalFollowingLane(), getLinkCont(), getLinkTo(), getOutgoingViaLanes(), hasApproaching(), isLinkEnd(), mustCheckJunctionCollisions(), saveState(), succLinkSec(), and ~MSLane().
|
mutableprotected |
Definition at line 1387 of file MSLane.h.
Referenced by getLogicalPredecessorLane().
|
protected |
The vehicles which registered maneuvering into the lane within their current action step. This is currently only relevant for sublane simulation, since continuous lanechanging uses the partial vehicle mechanism.
The entering vehicles are inserted at the front of this container and the leaving ones leave from the back.
Definition at line 1350 of file MSLane.h.
Referenced by clearState(), isInsertionSuccess(), planMovements(), resetManeuverReservation(), setManeuverReservation(), sortManeuverReservations(), and updateLeaderInfo().
|
privateinherited |
The key->value map.
Definition at line 146 of file Parameterised.h.
Referenced by Parameterised::clearParameter(), Parameterised::getDouble(), Parameterised::getParameter(), Parameterised::getParametersMap(), Parameterised::getParametersStr(), Parameterised::knowsParameter(), Parameterised::Parameterised(), Parameterised::setParameter(), Parameterised::setParameters(), Parameterised::setParametersMap(), Parameterised::setParametersStr(), Parameterised::unsetParameter(), and Parameterised::writeParams().
|
protected |
Lane-wide speedlimit [m/s].
Definition at line 1372 of file MSLane.h.
Referenced by GUILane::getColorValue(), getMeanSpeed(), getMeanSpeedBike(), GUILane::getScaleValue(), getSpeedLimit(), getVehicleMaxSpeed(), and setMaxSpeed().
|
private |
This lane's move reminder.
Definition at line 1460 of file MSLane.h.
Referenced by addMoveReminder(), and getMoveReminders().
|
protected |
whether a collision check is currently needed
Definition at line 1439 of file MSLane.h.
Referenced by detectCollisions(), executeMovements(), incorporateVehicle(), integrateNewVehicles(), needsCollisionCheck(), requireCollisionCheck(), and setPartialOccupation().
|
protected |
Definition at line 1442 of file MSLane.h.
Referenced by addNeigh(), getOpposite(), and integrateNewVehicles().
|
protected |
The current length of all vehicles on this lane, excluding their minGaps.
Definition at line 1399 of file MSLane.h.
Referenced by clearState(), enteredByLaneChange(), getNettoOccupancy(), incorporateVehicle(), integrateNewVehicles(), leftByLaneChange(), removeVehicle(), and updateLengthSum().
|
protected |
The length of all vehicles that have left this lane in the current step (this lane, excluding their minGaps)
Definition at line 1405 of file MSLane.h.
Referenced by clearState(), executeMovements(), and updateLengthSum().
|
protected |
Unique numerical ID (set on reading by netload)
Definition at line 1303 of file MSLane.h.
Referenced by getNumericalID().
|
protected |
The original vClass permissions for this lane (before temporary modifications)
Definition at line 1378 of file MSLane.h.
Referenced by resetPermissions(), and setPermissions().
|
protected |
Definition at line 1355 of file MSLane.h.
Referenced by addParking(), clearState(), GUILane::drawGL(), executeMovements(), getParkingVehicles(), and removeParking().
|
protected |
The lane's partial vehicles. This container holds all vehicles that are partially on this lane but which are in myVehicles of another lane. Reasons for partial occupancies include the following.
The entering vehicles are inserted at the front of this container and the leaving ones leave from the back.
Definition at line 1334 of file MSLane.h.
Referenced by anyVehiclesBegin(), anyVehiclesEnd(), anyVehiclesUpstreamBegin(), clearState(), detectCollisions(), freeInsertion(), getBruttoOccupancy(), getFirstAnyVehicle(), getLastAnyVehicle(), getLeaderOnConsecutive(), getLeadersOnConsecutive(), getNettoOccupancy(), getPartialBehind(), getPartialBeyond(), getPartialVehicleNumber(), MSLaneChanger::getRealLeader(), getVehicleNumberWithPartials(), integrateNewVehicles(), isEmpty(), isInsertionSuccess(), planMovements(), resetPartialOccupation(), setPartialOccupation(), sortPartialVehicles(), and updateLeaderInfo().
|
protected |
Definition at line 1445 of file MSLane.h.
Referenced by GUILane::closeTraffic(), GUILane::getPopUpMenu(), resetPermissions(), and setPermissions().
|
protected |
The vClass permissions for this lane.
Definition at line 1375 of file MSLane.h.
Referenced by allowsVehicleClass(), GUILane::drawAsRailway(), GUILane::drawAsWaterway(), GUILane::drawGL(), GUILane::drawMarkings(), GUILane::getColorValue(), getMaximumBrakeDist(), GUILane::getParameterWindow(), getPermissions(), resetPermissions(), and setPermissions().
|
protected |
The vClass speed restrictions for this lane.
Definition at line 1381 of file MSLane.h.
Referenced by getVehicleMaxSpeed(), and initRestrictions().
|
protected |
the index of the rightmost sublane of this lane on myEdge
Definition at line 1436 of file MSLane.h.
Referenced by getRightmostSublane(), and setRightSideOnEdge().
|
protected |
the combined width of all lanes with lower index on myEdge
Definition at line 1434 of file MSLane.h.
Referenced by getCenterOnEdge(), getRightSideOnEdge(), and setRightSideOnEdge().
|
protected |
Definition at line 1448 of file MSLane.h.
Referenced by GUILane::getColorValue(), getRNG(), getRNGIndex(), getThreadIndex(), and MSLane().
|
staticprotected |
Definition at line 1456 of file MSLane.h.
Referenced by getNumRNGs(), getRNG(), initRNGs(), loadRNGState(), MSLane(), and saveRNGStates().
|
protected |
The shape of the lane.
Definition at line 1306 of file MSLane.h.
Referenced by GUILane::drawGL(), GUILane::drawLinkRules(), geometryPositionAtOffset(), GUILane::getCenteringBoundary(), GUILane::getPopUpMenu(), GUILane::getShape(), getShape(), GUILane::GUILane(), GUILane::setFunctionalColor(), and GUILane::setMultiColor().
|
protected |
Lane's vClass specific stop offset [m]. The map is either of length 0, which means no special stopOffset was set, or of length 1, where the key is a bitset representing a subset of the SUMOVehicleClass Enum and the value is the offset in meters.
Definition at line 1366 of file MSLane.h.
Referenced by GUILane::drawLinkRules(), getStopOffset(), getStopOffsets(), and setStopOffsets().
|
private |
Definition at line 1630 of file MSLane.h.
Referenced by getStopWatch().
|
protected |
Container for lane-changing vehicles. After completion of lane-change- process, the containers will be swapped with myVehicles.
Definition at line 1338 of file MSLane.h.
Referenced by anyVehiclesBegin(), anyVehiclesEnd(), anyVehiclesUpstreamBegin(), getLeader(), and swapAfterLaneChange().
|
protected |
Buffer for vehicles that moved from their previous lane onto this one. Integrated after all vehicles executed their moves.
Definition at line 1342 of file MSLane.h.
Referenced by checkBufferType(), empty(), executeMovements(), and integrateNewVehicles().
|
protected |
The lane's vehicles. This container holds all vehicles that have their front (longitudinally) and their center (laterally) on this lane. These are the vehicles that this lane is 'responsibly' for (i.e. when executing movements)
The entering vehicles are inserted at the front of this container and the leaving ones leave from the back, e.g. the vehicle in front of the junction (often called first) is myVehicles.back() (if it exists). And if it is an iterator at a vehicle, ++it points to the vehicle in front. This is the interaction vehicle.
Definition at line 1322 of file MSLane.h.
Referenced by addMoveReminder(), anyVehiclesBegin(), anyVehiclesEnd(), anyVehiclesUpstreamBegin(), clearState(), detectCollisions(), empty(), executeMovements(), GUILane::firstWaitingTime(), forceVehicleInsertion(), freeInsertion(), getBruttoOccupancy(), getFirstAnyVehicle(), getLastAnyVehicle(), getLastFullVehicle(), getLeader(), getMeanSpeed(), getMeanSpeedBike(), getNettoOccupancy(), getVehicleNumber(), getVehicleNumberWithPartials(), GUILane::getVehiclesSecure(), getVehiclesSecure(), getWaitingSeconds(), incorporateVehicle(), integrateNewVehicles(), isEmpty(), isInsertionSuccess(), loadState(), planMovements(), removeVehicle(), saveState(), setJunctionApproaches(), swapAfterLaneChange(), updateLengthSum(), and MSQueueExport::writeLane().
|
protected |
Lane width [m].
Definition at line 1361 of file MSLane.h.
Referenced by GUILane::drawArrows(), GUILane::drawDirectionIndicators(), GUILane::drawGL(), GUILane::drawLinkNo(), GUILane::drawLinkRules(), GUILane::drawTLSLinkNo(), getCenterOnEdge(), GUILane::getParameterWindow(), getWidth(), and GUILane::GUILane().