![]() |
SUMO - Simulation of Urban MObility
|
A structure which describes a connection between edges or lanes. More...
#include <NBEdge.h>
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... | |
A structure which describes a connection between edges or lanes.
NBEdge::Connection::Connection | ( | int | fromLane_, |
NBEdge * | toEdge_, | ||
int | toLane_ | ||
) |
Constructor.
[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.
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.
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().
std::string NBEdge::Connection::getInternalLaneID | ( | ) | const |
get ID of internal lane
Definition at line 80 of file NBEdge.cpp.
References internalLaneIndex, and toString().
Referenced by NBNode::computeInternalLaneShape(), NWWriter_SUMO::getOppositeInternalID(), NWWriter_SUMO::writeConnection(), and NWWriter_OpenDrive::writeNetwork().
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().
std::string NBEdge::Connection::foeIncomingLanes |
FOE Incomings lanes.
Definition at line 238 of file NBEdge.h.
Referenced by NBEdge::buildInnerEdges().
std::vector<int> NBEdge::Connection::foeInternalLinks |
FOE Internal links.
Definition at line 235 of file NBEdge.h.
Referenced by NBEdge::buildInnerEdges().
int NBEdge::Connection::fromLane |
The lane the connections starts at.
Definition at line 184 of file NBEdge.h.
Referenced by GNEEdge::addConnection(), NBEdge::addRestrictedLane(), NIXMLTrafficLightsHandler::addTlConnection(), NBEdge::buildInnerEdges(), NBTrafficLightDefinition::collectAllLinks(), NBNode::computeInternalLaneShape(), NBNode::computeLanes2Lanes(), NBEdge::connections_sorter(), NBNode::getConnectionIndex(), getDescription(), NWWriter_SUMO::getOppositeInternalID(), NBRequest::mergeConflict(), NBNode::needsCont(), NBEdge::connections_toedge_finder::operator()(), NBEdge::connections_toedgelane_finder::operator()(), NBEdge::connections_finder::operator()(), NBEdge::connections_conflict_finder::operator()(), NBEdge::connections_fromlane_finder::operator()(), NBEdge::recheckLanes(), GNEEdge::remakeGNEConnections(), GNEEdge::removeConnection(), NBEdge::removeFromConnections(), GNEConnection::updateGeometry(), GNEConnection::updateLinkState(), NWWriter_DlrNavteq::writeConnectedLanes(), NWWriter_SUMO::writeConnection(), and NWWriter_OpenDrive::writeNetwork().
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().
std::string NBEdge::Connection::id |
id of Connection
Definition at line 214 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 241 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 202 of file NBEdge.h.
Referenced by GNEEdge::addConnection(), GNEConnection::getAttribute(), GNEConnection::setAttribute(), and NWWriter_SUMO::writeConnection().
bool NBEdge::Connection::mayDefinitelyPass |
Information about being definitely free to drive (on-ramps)
Definition at line 199 of file NBEdge.h.
Referenced by GNEEdge::addConnection(), GNEConnection::getAttribute(), NBRequest::mergeConflict(), GNEConnection::setAttribute(), GNEConnection::updateLinkState(), and NWWriter_SUMO::writeConnection().
PositionVector NBEdge::Connection::shape |
shape of Connection
Definition at line 217 of file NBEdge.h.
Referenced by NBEdge::buildInnerEdges(), NBEdgeCont::checkGrade(), and NBNode::computeInternalLaneShape().
std::string NBEdge::Connection::tlID |
The id of the traffic light that controls this connection.
Definition at line 193 of file NBEdge.h.
Referenced by NIXMLTrafficLightsHandler::addTlConnection(), NBEdge::moveOutgoingConnectionsFrom(), NBNode::needsCont(), NBEdge::setControllingTLInformation(), GNEConnection::updateLinkState(), and NWWriter_SUMO::writeConnection().
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().
NBEdge* NBEdge::Connection::toEdge |
The edge the connections yields in.
Definition at line 187 of file NBEdge.h.
Referenced by GNEEdge::addConnection(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimTL::NIVissimTLSignal::addTo(), NBEdge::buildInnerEdges(), NBEdge::canMoveConnection(), NBTrafficLightDefinition::collectAllLinks(), NBLoadedTLDef::collectLinks(), NBNode::computeInternalLaneShape(), NBNode::computeLanes2Lanes(), NBEdge::connections_sorter(), GNEConnection::getAttribute(), NBNode::getConnectionIndex(), getDescription(), NWWriter_SUMO::getOppositeInternalID(), NBRequest::mergeConflict(), NBEdge::moveConnectionToLeft(), NBEdge::moveConnectionToRight(), NBEdge::moveOutgoingConnectionsFrom(), NBNode::needsCont(), NBEdge::connections_toedge_finder::operator()(), NBEdge::connections_toedgelane_finder::operator()(), NBEdge::connections_finder::operator()(), NBEdge::connections_conflict_finder::operator()(), NBEdge::connections_relative_edgelane_sorter::operator()(), NBEdge::recheckLanes(), NBEdgeCont::recheckPostProcessConnections(), GNEEdge::remakeGNEConnections(), GNEEdge::removeConnection(), NBEdge::removeFromConnections(), GNEConnection::updateGeometry(), GNEConnection::updateLinkState(), NWWriter_DlrNavteq::writeConnectedLanes(), NWWriter_SUMO::writeConnection(), NWWriter_SUMO::writeInternalConnections(), and NWWriter_OpenDrive::writeNetwork().
int NBEdge::Connection::toLane |
The lane the connections yields in.
Definition at line 190 of file NBEdge.h.
Referenced by GNEEdge::addConnection(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimTL::NIVissimTLSignal::addTo(), NBEdge::buildInnerEdges(), NBEdge::canMoveConnection(), NBTrafficLightDefinition::collectAllLinks(), NBLoadedTLDef::collectLinks(), NBNode::computeInternalLaneShape(), NBNode::computeLanes2Lanes(), NBEdge::connections_sorter(), GNEConnection::getAttribute(), NBNode::getConnectionIndex(), getDescription(), NWWriter_SUMO::getOppositeInternalID(), NBRequest::mergeConflict(), NBEdge::moveConnectionToLeft(), NBEdge::moveConnectionToRight(), NBEdge::moveOutgoingConnectionsFrom(), NBNode::needsCont(), NBEdge::connections_toedgelane_finder::operator()(), NBEdge::connections_finder::operator()(), NBEdge::connections_relative_edgelane_sorter::operator()(), NBEdge::recheckLanes(), GNEEdge::remakeGNEConnections(), GNEEdge::removeConnection(), NBEdge::removeFromConnections(), GNEConnection::updateGeometry(), GNEConnection::updateLinkState(), NWWriter_DlrNavteq::writeConnectedLanes(), NWWriter_SUMO::writeConnection(), NWWriter_SUMO::writeInternalConnections(), and NWWriter_OpenDrive::writeNetwork().
bool NBEdge::Connection::uncontrolled |
check if Connection is uncontrolled
Definition at line 244 of file NBEdge.h.
Referenced by GNEConnection::getAttribute(), and GNEConnection::setAttribute().
std::string NBEdge::Connection::viaID |
if Connection have a via, ID of it
Definition at line 226 of file NBEdge.h.
Referenced by NBEdge::buildInnerEdges(), NBNode::computeInternalLaneShape(), and NWWriter_SUMO::writeInternalConnections().
PositionVector NBEdge::Connection::viaShape |
shape of via
Definition at line 232 of file NBEdge.h.
Referenced by NBEdge::buildInnerEdges(), NBEdgeCont::checkGrade(), and NBNode::computeInternalLaneShape().
double NBEdge::Connection::viaVmax |
Maximun velocity of via.
Definition at line 229 of file NBEdge.h.
Referenced by NBEdge::buildInnerEdges().
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().
double NBEdge::Connection::vmax |