Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
MSLink::ConflictInfo Struct Reference

pre-computed information for conflict points More...

#include <MSLink.h>

Public Member Functions

 ConflictInfo (double lbc, double cs, ConflictFlag fl=CONFLICT_DEFAULT)
double getFoeConflictSize (const MSLink *foeExitLink) const
double getFoeLengthBehindCrossing (const MSLink *foeExitLink) const
double getLengthBehindCrossing (const MSLink *exitLink) const

Data Fields

double conflictSize
 the length of the conflict space
ConflictFlag flag
int foeConflictIndex
 the conflict from the perspective of the foe
double lengthBehindCrossing
 length of internal lane after the crossing point

Detailed Description

pre-computed information for conflict points

Definition at line 195 of file MSLink.h.

Constructor & Destructor Documentation

◆ ConflictInfo()

MSLink::ConflictInfo::ConflictInfo ( double lbc,
double cs,
ConflictFlag fl = CONFLICT_DEFAULT )
inline

Member Function Documentation

◆ getFoeConflictSize()

double MSLink::ConflictInfo::getFoeConflictSize ( const MSLink * foeExitLink) const

Definition at line 94 of file MSLink.cpp.

References foeConflictIndex, MSLink::MSLink(), and MSLink::myConflicts.

Referenced by LIBSUMO_NAMESPACE::Vehicle::getJunctionFoes().

Here is the caller graph for this function:

◆ getFoeLengthBehindCrossing()

double MSLink::ConflictInfo::getFoeLengthBehindCrossing ( const MSLink * foeExitLink) const

Definition at line 83 of file MSLink.cpp.

References MSLink::CONFLICT_DUMMY_MERGE, flag, foeConflictIndex, MSLink::MSLink(), MSLink::myConflicts, and MSLink::NO_INTERSECTION.

Referenced by LIBSUMO_NAMESPACE::Vehicle::getJunctionFoes().

Here is the caller graph for this function:

◆ getLengthBehindCrossing()

double MSLink::ConflictInfo::getLengthBehindCrossing ( const MSLink * exitLink) const

Field Documentation

◆ conflictSize

double MSLink::ConflictInfo::conflictSize

the length of the conflict space

Definition at line 208 of file MSLink.h.

Referenced by ConflictInfo(), LIBSUMO_NAMESPACE::Vehicle::getJunctionFoes(), and MSLink::recheckSetRequestInformation().

◆ flag

◆ foeConflictIndex

int MSLink::ConflictInfo::foeConflictIndex

the conflict from the perspective of the foe

Definition at line 204 of file MSLink.h.

Referenced by ConflictInfo(), getFoeConflictSize(), getFoeLengthBehindCrossing(), and MSLink::recheckSetRequestInformation().

◆ lengthBehindCrossing

double MSLink::ConflictInfo::lengthBehindCrossing

length of internal lane after the crossing point

Definition at line 206 of file MSLink.h.

Referenced by ConflictInfo(), LIBSUMO_NAMESPACE::Vehicle::getJunctionFoes(), getLengthBehindCrossing(), and MSLink::recheckSetRequestInformation().


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