Eclipse SUMO - Simulation of Urban MObility
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 More...
 
ConflictFlag flag
 
int foeConflictIndex
 the conflict from the perspective of the foe More...
 
double lengthBehindCrossing
 length of internal lane after the crossing point More...
 

Detailed Description

pre-computed information for conflict points

Definition at line 176 of file MSLink.h.

Constructor & Destructor Documentation

◆ ConflictInfo()

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

Definition at line 178 of file MSLink.h.

Member Function Documentation

◆ getFoeConflictSize()

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

Definition at line 93 of file MSLink.cpp.

References 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 82 of file MSLink.cpp.

References MSLink::CONFLICT_DUMMY_MERGE, flag, foeConflictIndex, 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 189 of file MSLink.h.

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

◆ flag

◆ foeConflictIndex

int MSLink::ConflictInfo::foeConflictIndex

the conflict from the perspective of the foe

Definition at line 185 of file MSLink.h.

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

◆ lengthBehindCrossing

double MSLink::ConflictInfo::lengthBehindCrossing

length of internal lane after the crossing point

Definition at line 187 of file MSLink.h.

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


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