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...
 
NBEdge * toEdge
 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 165 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 92 of file NBEdge.cpp.

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

NBEdge::Connection::~Connection ( )
inline

destructor

Definition at line 182 of file NBEdge.h.

Member Function Documentation

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

get string describing this connection

Definition at line 87 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

double NBEdge::Connection::contPos

custom position for internal junction on this connection

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

Referenced by NBEdge::buildInnerEdges().

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

FOE Internal links.

Definition at line 236 of file NBEdge.h.

Referenced by NBEdge::buildInnerEdges().

bool NBEdge::Connection::haveVia

check if Connection have a Via

Definition at line 224 of file NBEdge.h.

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

std::string NBEdge::Connection::id

id of Connection

Definition at line 215 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 242 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 203 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 212 of file NBEdge.h.

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

The index of this connection within the controlling traffic light.

Definition at line 197 of file NBEdge.h.

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

bool NBEdge::Connection::uncontrolled

check if Connection is uncontrolled

Definition at line 245 of file NBEdge.h.

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

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

shape of via

Definition at line 233 of file NBEdge.h.

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

double NBEdge::Connection::viaVmax

Maximun velocity of via.

Definition at line 230 of file NBEdge.h.

Referenced by NBEdge::buildInnerEdges().

double NBEdge::Connection::visibility

custom foe visiblity for connection

Definition at line 209 of file NBEdge.h.

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

double NBEdge::Connection::vmax

maximun velocity

Definition at line 221 of file NBEdge.h.

Referenced by NBEdge::buildInnerEdges().


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