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, SUMOReal contPos_=UNSPECIFIED_CONTPOS, SUMOReal visibility_=UNSPECIFIED_VISIBILITY_DISTANCE, bool haveVia_=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

SUMOReal 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...
 
NBEdge * toEdge
 The edge the connections yields in. More...
 
int toLane
 The lane the connections yields in. More...
 
std::string viaID
 if Connection have a via, ID of it More...
 
PositionVector viaShape
 shape of via More...
 
SUMOReal viaVmax
 Maximun velocity of via. More...
 
SUMOReal visibility
 custom foe visiblity for connection More...
 
SUMOReal vmax
 maximun velocity More...
 

Detailed Description

A structure which describes a connection between edges or lanes.

Definition at line 157 of file NBEdge.h.

Constructor & Destructor Documentation

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 93 of file NBEdge.cpp.

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

constructor with more parameters

Definition at line 108 of file NBEdge.cpp.

NBEdge::Connection::~Connection ( )
inline

destructor

Definition at line 173 of file NBEdge.h.

Member Function Documentation

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

get string describing this connection

Definition at line 88 of file NBEdge.cpp.

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

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

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

Field Documentation

SUMOReal NBEdge::Connection::contPos

custom position for internal junction on this connection

Definition at line 197 of file NBEdge.h.

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

std::string NBEdge::Connection::foeIncomingLanes

FOE Incomings lanes.

Definition at line 230 of file NBEdge.h.

Referenced by NBEdge::buildInnerEdges().

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

FOE Internal links.

Definition at line 227 of file NBEdge.h.

Referenced by NBEdge::buildInnerEdges().

bool NBEdge::Connection::haveVia

check if Connection have a Via

Definition at line 215 of file NBEdge.h.

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

std::string NBEdge::Connection::id

id of Connection

Definition at line 206 of file NBEdge.h.

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

int NBEdge::Connection::internalLaneIndex

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

Definition at line 233 of file NBEdge.h.

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

bool NBEdge::Connection::keepClear

whether the junction must be kept clear when using this connection

Definition at line 194 of file NBEdge.h.

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

bool NBEdge::Connection::mayDefinitelyPass
std::string NBEdge::Connection::origID

origin ID

Definition at line 203 of file NBEdge.h.

PositionVector NBEdge::Connection::shape
std::string NBEdge::Connection::tlID
int NBEdge::Connection::tlLinkNo

The index of this connection within the controlling traffic light.

Definition at line 188 of file NBEdge.h.

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

std::string NBEdge::Connection::viaID
PositionVector NBEdge::Connection::viaShape

shape of via

Definition at line 224 of file NBEdge.h.

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

SUMOReal NBEdge::Connection::viaVmax

Maximun velocity of via.

Definition at line 221 of file NBEdge.h.

Referenced by NBEdge::buildInnerEdges().

SUMOReal NBEdge::Connection::visibility

custom foe visiblity for connection

Definition at line 200 of file NBEdge.h.

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

SUMOReal NBEdge::Connection::vmax

maximun velocity

Definition at line 212 of file NBEdge.h.

Referenced by NBEdge::buildInnerEdges().


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