SUMO - Simulation of Urban MObility
NBEdge::Connection Struct Reference

A structure which describes a connection between edges or lanes. More...

#include <NBEdge.h>

Collaboration diagram for NBEdge::Connection:
Collaboration graph

Public Member Functions

 Connection (int fromLane_, NBEdge *toEdge_, int toLane_)
 Constructor. More...
 
 Connection (int fromLane_, NBEdge *toEdge_, int toLane_, bool mayDefinitelyPass_, bool keepClear_=true, double contPos_=UNSPECIFIED_CONTPOS, double visibility_=UNSPECIFIED_VISIBILITY_DISTANCE, bool haveVia_=false, bool uncontrolled_=false)
 constructor with more parameters More...
 
std::string getDescription (const NBEdge *parent) const
 get string describing this connection More...
 
std::string getInternalLaneID () const
 get ID of internal lane More...
 
 ~Connection ()
 destructor More...
 

Data Fields

double contPos
 custom position for internal junction on this connection More...
 
std::string foeIncomingLanes
 FOE Incomings lanes. More...
 
std::vector< int > foeInternalLinks
 FOE Internal links. More...
 
int fromLane
 The lane the connections starts at. More...
 
bool haveVia
 check if Connection have a Via More...
 
std::string id
 id of Connection More...
 
int internalLaneIndex
 The lane index of this internal lane within the internal edge. More...
 
bool keepClear
 whether the junction must be kept clear when using this connection More...
 
bool mayDefinitelyPass
 Information about being definitely free to drive (on-ramps) More...
 
std::string origID
 origin ID More...
 
PositionVector shape
 shape of Connection More...
 
std::string tlID
 The id of the traffic light that controls this connection. More...
 
int tlLinkNo
 The index of this connection within the controlling traffic light. More...
 
NBEdgetoEdge
 The edge the connections yields in. More...
 
int toLane
 The lane the connections yields in. More...
 
bool uncontrolled
 check if Connection is uncontrolled More...
 
std::string viaID
 if Connection have a via, ID of it More...
 
PositionVector viaShape
 shape of via More...
 
double viaVmax
 Maximun velocity of via. More...
 
double visibility
 custom foe visiblity for connection More...
 
double vmax
 maximun velocity More...
 

Detailed Description

A structure which describes a connection between edges or lanes.

Definition at line 164 of file NBEdge.h.

Constructor & Destructor Documentation

◆ Connection() [1/2]

NBEdge::Connection::Connection ( int  fromLane_,
NBEdge toEdge_,
int  toLane_ 
)

Constructor.

Parameters
[in]fromLane_The lane the connections starts at
[in]toEdge_The edge the connections yields in
[in]toLane_The lane the connections yields in

Definition at line 91 of file NBEdge.cpp.

◆ Connection() [2/2]

NBEdge::Connection::Connection ( int  fromLane_,
NBEdge toEdge_,
int  toLane_,
bool  mayDefinitelyPass_,
bool  keepClear_ = true,
double  contPos_ = UNSPECIFIED_CONTPOS,
double  visibility_ = UNSPECIFIED_VISIBILITY_DISTANCE,
bool  haveVia_ = false,
bool  uncontrolled_ = false 
)

constructor with more parameters

Definition at line 106 of file NBEdge.cpp.

◆ ~Connection()

NBEdge::Connection::~Connection ( )
inline

destructor

Definition at line 181 of file NBEdge.h.

Member Function Documentation

◆ getDescription()

std::string NBEdge::Connection::getDescription ( const NBEdge parent) const

get string describing this connection

Definition at line 86 of file NBEdge.cpp.

References fromLane, Named::getIDSecure(), toEdge, toLane, and toString().

Referenced by NBEdgeCont::checkGrade(), and NBNode::computeInternalLaneShape().

◆ getInternalLaneID()

std::string NBEdge::Connection::getInternalLaneID ( ) const

Field Documentation

◆ contPos

double NBEdge::Connection::contPos

custom position for internal junction on this connection

Definition at line 205 of file NBEdge.h.

Referenced by GNEEdge::addConnection(), NBEdge::buildInnerEdges(), GNEConnection::getAttribute(), GNEConnection::setAttribute(), and NWWriter_SUMO::writeConnection().

◆ foeIncomingLanes

std::string NBEdge::Connection::foeIncomingLanes

FOE Incomings lanes.

Definition at line 238 of file NBEdge.h.

Referenced by NBEdge::buildInnerEdges().

◆ foeInternalLinks

std::vector<int> NBEdge::Connection::foeInternalLinks

FOE Internal links.

Definition at line 235 of file NBEdge.h.

Referenced by NBEdge::buildInnerEdges().

◆ fromLane

◆ haveVia

bool NBEdge::Connection::haveVia

check if Connection have a Via

Definition at line 223 of file NBEdge.h.

Referenced by NBEdge::buildInnerEdges(), and NWWriter_SUMO::writeInternalConnections().

◆ id

std::string NBEdge::Connection::id

id of Connection

Definition at line 214 of file NBEdge.h.

Referenced by NBEdge::buildInnerEdges(), and NWWriter_SUMO::writeInternalConnections().

◆ internalLaneIndex

int NBEdge::Connection::internalLaneIndex

The lane index of this internal lane within the internal edge.

Definition at line 241 of file NBEdge.h.

Referenced by NBEdge::buildInnerEdges(), NBNode::computeInternalLaneShape(), getInternalLaneID(), and NWWriter_SUMO::writeInternalConnections().

◆ keepClear

bool NBEdge::Connection::keepClear

whether the junction must be kept clear when using this connection

Definition at line 202 of file NBEdge.h.

Referenced by GNEEdge::addConnection(), GNEConnection::getAttribute(), GNEConnection::setAttribute(), and NWWriter_SUMO::writeConnection().

◆ mayDefinitelyPass

bool NBEdge::Connection::mayDefinitelyPass

◆ origID

std::string NBEdge::Connection::origID

origin ID

Definition at line 211 of file NBEdge.h.

◆ shape

PositionVector NBEdge::Connection::shape

◆ tlID

std::string NBEdge::Connection::tlID

◆ tlLinkNo

int NBEdge::Connection::tlLinkNo

The index of this connection within the controlling traffic light.

Definition at line 196 of file NBEdge.h.

Referenced by NIXMLTrafficLightsHandler::addTlConnection(), NBEdge::setControllingTLInformation(), and NWWriter_SUMO::writeConnection().

◆ toEdge

◆ toLane

◆ uncontrolled

bool NBEdge::Connection::uncontrolled

check if Connection is uncontrolled

Definition at line 244 of file NBEdge.h.

Referenced by GNEConnection::getAttribute(), and GNEConnection::setAttribute().

◆ viaID

std::string NBEdge::Connection::viaID

◆ viaShape

PositionVector NBEdge::Connection::viaShape

shape of via

Definition at line 232 of file NBEdge.h.

Referenced by NBEdge::buildInnerEdges(), NBEdgeCont::checkGrade(), and NBNode::computeInternalLaneShape().

◆ viaVmax

double NBEdge::Connection::viaVmax

Maximun velocity of via.

Definition at line 229 of file NBEdge.h.

Referenced by NBEdge::buildInnerEdges().

◆ visibility

double NBEdge::Connection::visibility

custom foe visiblity for connection

Definition at line 208 of file NBEdge.h.

Referenced by GNEEdge::addConnection(), GNEConnection::getAttribute(), GNEConnection::setAttribute(), and NWWriter_SUMO::writeConnection().

◆ vmax

double NBEdge::Connection::vmax

maximun velocity

Definition at line 220 of file NBEdge.h.

Referenced by NBEdge::buildInnerEdges().


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