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_, SUMOReal contPos_, SUMOReal visibility_, bool haveVia_=false)
 constructor with more parameters More...
 
std::string getInternalLaneID () const
 get ID of internal lnae 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...
 
NBEdgetoEdge
 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

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

§ Connection() [2/2]

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

constructor with more parameters

Definition at line 102 of file NBEdge.cpp.

§ ~Connection()

NBEdge::Connection::~Connection ( )
inline

destructor

Definition at line 169 of file NBEdge.h.

Member Function Documentation

§ getInternalLaneID()

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

Field Documentation

§ contPos

SUMOReal NBEdge::Connection::contPos

custom position for internal junction on this connection

Definition at line 193 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 226 of file NBEdge.h.

Referenced by NBEdge::buildInnerEdges().

§ foeInternalLinks

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

FOE Internal links.

Definition at line 223 of file NBEdge.h.

Referenced by NBEdge::buildInnerEdges().

§ fromLane

§ haveVia

bool NBEdge::Connection::haveVia

check if Connection have a Via

Definition at line 211 of file NBEdge.h.

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

§ id

std::string NBEdge::Connection::id

id of Connection

Definition at line 202 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 229 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 190 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 199 of file NBEdge.h.

§ shape

PositionVector NBEdge::Connection::shape

shape of Connection

Definition at line 205 of file NBEdge.h.

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

§ tlID

std::string NBEdge::Connection::tlID

§ tlLinkNo

int NBEdge::Connection::tlLinkNo

The index of this connection within the controlling traffic light.

Definition at line 184 of file NBEdge.h.

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

§ toEdge

§ toLane

§ viaID

std::string NBEdge::Connection::viaID

§ viaShape

PositionVector NBEdge::Connection::viaShape

shape of via

Definition at line 220 of file NBEdge.h.

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

§ viaVmax

SUMOReal NBEdge::Connection::viaVmax

Maximun velocity of via.

Definition at line 217 of file NBEdge.h.

Referenced by NBEdge::buildInnerEdges().

§ visibility

SUMOReal NBEdge::Connection::visibility

custom foe visiblity for connection

Definition at line 196 of file NBEdge.h.

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

§ vmax

SUMOReal NBEdge::Connection::vmax

maximun velocity

Definition at line 208 of file NBEdge.h.

Referenced by NBEdge::buildInnerEdges().


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