Eclipse SUMO - Simulation of Urban MObility
|
#include <NIVissimConnection.h>
Public Member Functions | |
void | addDisturbance (int disturbance) |
int | buildEdgeConnections (NBEdgeCont &ec) |
void | buildGeom () |
bool | clustered () const |
void | computeBounding () |
bool | crosses (const AbstractPoly &poly, double offset=0) const |
bool | crossesEdge (NIVissimAbstractEdge *c) const |
Position | crossesEdgeAtPoint (NIVissimAbstractEdge *c) const |
const Boundary & | getBoundary () const |
const Boundary & | getBoundingBox () const |
const std::vector< int > & | getDisturbances () const |
int | getFromEdgeID () const |
Position | getFromGeomPosition () const |
const std::vector< int > & | getFromLanes () const |
double | getFromPosition () const |
const PositionVector & | getGeometry () const |
Position | getGeomPosition (double pos) const |
int | getID () const |
int | getToEdgeID () const |
Position | getToGeomPosition () const |
const std::vector< int > & | getToLanes () const |
double | getToPosition () const |
bool | hasNodeCluster () const |
void | inCluster (int id) |
NIVissimConnection (int id, const std::string &name, const NIVissimExtendedEdgePoint &from_def, const NIVissimExtendedEdgePoint &to_def, const PositionVector &geom, const std::vector< int > &assignedVehicles, const NIVissimClosedLanesVector &clv) | |
bool | overlapsWith (const AbstractPoly &p, double offset=0.0) const |
void | recheckLanes (const NBEdge *const fromEdge, const NBEdge *const toEdge) |
Resets lane numbers if all lanes shall be used. | |
void | setNodeCluster (int nodeid) |
void | splitAssigning () |
virtual | ~NIVissimConnection () |
Static Public Member Functions | |
static void | buildNodeClusters () |
static void | clearDict () |
static void | closeLoading () |
static void | dict_assignToEdges () |
static void | dict_buildNBEdgeConnections (NBEdgeCont &ec) |
static NIVissimConnection * | dictionary (int id) |
static bool | dictionary (int id, NIVissimAbstractEdge *e) |
static bool | dictionary (int id, NIVissimConnection *o) |
static std::vector< int > | getForEdge (int edgeid, bool omitNodeAssigned=true) |
static int | getMaxID () |
static std::vector< int > | getWithin (const AbstractPoly &p, double offset=0.0) |
static std::vector< int > | getWithin (const AbstractPoly &poly) |
static void | splitAndAssignToNodes () |
Protected Types | |
typedef std::set< NIVissimBoundedClusterObject * > | ContType |
Protected Attributes | |
Boundary * | myBoundary |
int | myClusterID |
std::vector< int > | myDisturbances |
PositionVector | myGeom |
int | myID |
int | myNode |
Private Types | |
typedef std::map< int, NIVissimConnection * > | DictType |
Private Attributes | |
std::vector< int > | myAssignedVehicles |
NIVissimClosedLanesVector | myClosedLanes |
NIVissimExtendedEdgePoint | myFromDef |
std::string | myName |
NIVissimExtendedEdgePoint | myToDef |
Static Private Attributes | |
static DictType | myDict |
static int | myMaxID |
Definition at line 43 of file NIVissimConnection.h.
|
protectedinherited |
Definition at line 50 of file NIVissimBoundedClusterObject.h.
|
private |
Definition at line 106 of file NIVissimConnection.h.
NIVissimConnection::NIVissimConnection | ( | int | id, |
const std::string & | name, | ||
const NIVissimExtendedEdgePoint & | from_def, | ||
const NIVissimExtendedEdgePoint & | to_def, | ||
const PositionVector & | geom, | ||
const std::vector< int > & | assignedVehicles, | ||
const NIVissimClosedLanesVector & | clv | ||
) |
Definition at line 57 of file NIVissimConnection.cpp.
|
virtual |
Definition at line 67 of file NIVissimConnection.cpp.
References myClosedLanes.
|
inherited |
Definition at line 166 of file NIVissimAbstractEdge.cpp.
References NIVissimAbstractEdge::myDisturbances.
int NIVissimConnection::buildEdgeConnections | ( | NBEdgeCont & | ec | ) |
Definition at line 209 of file NIVissimConnection.cpp.
References NBEdge::addLane2LaneConnection(), NIVissimEdge::dictionary(), NIVissimEdge::getBestIncoming(), NIVissimEdge::getBestOutgoing(), getFromEdgeID(), getFromLanes(), NBEdge::getID(), NIVissimAbstractEdge::getID(), NBEdge::getNumLanes(), getToEdgeID(), getToLanes(), recheckLanes(), NBEdgeCont::retrievePossiblySplit(), TL, toString(), NBEdge::VALIDATED, NIVissimEdge::wasWithinAJunction(), WRITE_WARNING, and WRITE_WARNINGF.
|
virtual |
Implements NIVissimAbstractEdge.
Definition at line 199 of file NIVissimConnection.cpp.
References NIVissimExtendedEdgePoint::getGeomPosition(), myFromDef, NIVissimAbstractEdge::myGeom, and myToDef.
|
static |
Definition at line 98 of file NIVissimConnection.cpp.
References NIVissimBoundedClusterObject::clustered(), NIVissimNodeCluster::dictionary(), getWithin(), NIVissimBoundedClusterObject::myBoundary, myDict, Boundary::xmax(), and Boundary::xmin().
|
staticinherited |
Definition at line 151 of file NIVissimAbstractEdge.cpp.
References NIVissimAbstractEdge::myDict.
Referenced by NIImporter_Vissim::~NIImporter_Vissim().
|
staticinherited |
Definition at line 61 of file NIVissimBoundedClusterObject.cpp.
References NIVissimBoundedClusterObject::myDict.
Referenced by NIImporter_Vissim::postLoadBuild().
|
inherited |
Definition at line 55 of file NIVissimBoundedClusterObject.cpp.
References NIVissimBoundedClusterObject::myClusterID.
Referenced by buildNodeClusters().
|
virtual |
Implements NIVissimBoundedClusterObject.
Definition at line 128 of file NIVissimConnection.cpp.
References Boundary::add(), NIVissimExtendedEdgePoint::getGeomPosition(), NIVissimBoundedClusterObject::myBoundary, myFromDef, and myToDef.
|
inherited |
Definition at line 41 of file NIVissimBoundedClusterObject.cpp.
References NIVissimBoundedClusterObject::myBoundary, Boundary::overlapsWith(), Boundary::xmax(), and Boundary::xmin().
|
inherited |
Definition at line 109 of file NIVissimAbstractEdge.cpp.
References PositionVector::intersects(), and NIVissimAbstractEdge::myGeom.
Referenced by NIVissimNodeCluster::buildNBNode().
|
inherited |
Definition at line 115 of file NIVissimAbstractEdge.cpp.
References PositionVector::intersectionPosition2D(), and NIVissimAbstractEdge::myGeom.
Referenced by NIVissimDisturbance::addToNode(), and NIVissimNodeCluster::buildNBNode().
|
static |
Definition at line 304 of file NIVissimConnection.cpp.
References NIVissimEdge::dictionary(), getFromEdgeID(), getToEdgeID(), and myDict.
Referenced by NIImporter_Vissim::postLoadBuild().
|
static |
Definition at line 265 of file NIVissimConnection.cpp.
References myDict, and WRITE_WARNING.
Referenced by NIImporter_Vissim::postLoadBuild().
|
static |
Definition at line 88 of file NIVissimConnection.cpp.
References myDict.
|
staticinherited |
Definition at line 57 of file NIVissimAbstractEdge.cpp.
References NIVissimAbstractEdge::myDict.
Referenced by NIVissimNodeCluster::buildNBNode(), NIVissimDisturbance::computeBounding(), NIVissimDisturbance::dict_SetDisturbances(), NIVissimExtendedEdgePoint::getGeomPosition(), NIVissimTL::NIVissimTLSignal::getPosition(), and NIVissimAbstractEdge::NIVissimAbstractEdge().
|
static |
Definition at line 76 of file NIVissimConnection.cpp.
References myDict.
Referenced by NIVissimTL::NIVissimTLSignal::addTo(), NIVissimDisturbance::addToNode(), NIVissimEdge::buildConnectionClusters(), NIVissimNodeCluster::buildNBNode(), NIVissimEdge::getBestIncoming(), NIVissimEdge::getBestOutgoing(), NIVissimDisturbance::getConnection(), NIVissimEdge::getConnectionTo(), NIVissimConnectionCluster::getDisturbanceParticipators(), NIVissimNodeCluster::getFromNode(), NIVissimConnectionCluster::getIncomingContinuation(), NIVissimConnectionCluster::getIncomingContinuationGeometry(), NIVissimEdge::getOutgoingConnected(), NIVissimConnectionCluster::getOutgoingContinuation(), NIVissimConnectionCluster::getOutgoingContinuationGeometry(), NIVissimConnectionCluster::getPositionForEdge(), NIVissimNodeCluster::getToNode(), NIVissimConnectionCluster::isWeakDistrictConnRealisation(), NIVissimConnectionCluster::liesOnSameEdgesEnd(), NIImporter_Vissim::NIVissimXMLHandler_Streckendefinition::myEndElement(), NIVissimConnectionCluster::NIVissimConnectionCluster(), NIVissimConnectionCluster::NIVissimConnectionCluster(), NIVissimEdge::connection_position_sorter::operator()(), NIVissimSingleTypeParser_Verbindungsdefinition::parse(), NIVissimSingleTypeParser_VWunschentscheidungsdefinition::parse(), NIVissimConnectionCluster::recheckEdges(), NIVissimConnectionCluster::recomputeBoundary(), and NIVissimConflictArea::setPriorityRegulation().
|
inherited |
Definition at line 69 of file NIVissimBoundedClusterObject.cpp.
References NIVissimBoundedClusterObject::myBoundary.
Referenced by NIVissimConnectionCluster::liesOnSameEdgesEnd().
const Boundary & NIVissimConnection::getBoundingBox | ( | ) | const |
Definition at line 297 of file NIVissimConnection.cpp.
References NIVissimBoundedClusterObject::myBoundary, Boundary::xmax(), and Boundary::xmin().
Referenced by NIVissimConnectionCluster::NodeSubCluster::add().
|
inherited |
Definition at line 172 of file NIVissimAbstractEdge.cpp.
References NIVissimAbstractEdge::myDisturbances.
Referenced by NIVissimConnectionCluster::getDisturbanceParticipators().
|
static |
Definition at line 138 of file NIVissimConnection.cpp.
References myDict.
int NIVissimConnection::getFromEdgeID | ( | ) | const |
Definition at line 155 of file NIVissimConnection.cpp.
References NIVissimExtendedEdgePoint::getEdgeID(), and myFromDef.
Referenced by NIVissimTL::NIVissimTLSignal::addTo(), NIVissimDisturbance::addToNode(), buildEdgeConnections(), dict_assignToEdges(), NIVissimEdge::dict_checkEdges2Join(), NIVissimDisturbance::getConnection(), NIVissimEdge::getConnectionTo(), NIVissimConnectionCluster::getIncomingContinuation(), NIVissimConnectionCluster::getIncomingContinuationGeometry(), NIVissimConnectionCluster::getPositionForEdge(), NIVissimNodeCluster::getToNode(), NIVissimConnectionCluster::liesOnSameEdgesEnd(), NIVissimConnectionCluster::NIVissimConnectionCluster(), NIVissimConnectionCluster::NIVissimConnectionCluster(), NIVissimEdge::connection_position_sorter::operator()(), NIVissimConnectionCluster::recheckEdges(), and NIVissimConflictArea::setPriorityRegulation().
Position NIVissimConnection::getFromGeomPosition | ( | ) | const |
Definition at line 179 of file NIVissimConnection.cpp.
References NIVissimExtendedEdgePoint::getGeomPosition(), and myFromDef.
Referenced by NIVissimNodeCluster::buildNBNode(), NIVissimConnectionCluster::recheckEdges(), and NIVissimConnectionCluster::recomputeBoundary().
const std::vector< int > & NIVissimConnection::getFromLanes | ( | ) | const |
Definition at line 278 of file NIVissimConnection.cpp.
References NIVissimExtendedEdgePoint::getLanes(), and myFromDef.
Referenced by buildEdgeConnections(), and NIVissimEdge::getOutgoingConnected().
double NIVissimConnection::getFromPosition | ( | ) | const |
Definition at line 167 of file NIVissimConnection.cpp.
References NIVissimExtendedEdgePoint::getPosition(), and myFromDef.
Referenced by NIVissimEdge::dict_checkEdges2Join(), NIVissimConnectionCluster::getPositionForEdge(), and NIVissimEdge::connection_position_sorter::operator()().
|
inherited |
Definition at line 160 of file NIVissimAbstractEdge.cpp.
References NIVissimAbstractEdge::myGeom.
Referenced by NIVissimEdge::dict_checkEdges2Join(), NIVissimConnectionCluster::getIncomingContinuation(), NIVissimConnectionCluster::getIncomingContinuationGeometry(), NIVissimConnectionCluster::getOutgoingContinuation(), NIVissimConnectionCluster::getOutgoingContinuationGeometry(), NIVissimConnectionCluster::getPositionForEdge(), NIVissimConnectionCluster::isWeakDistrictConnRealisation(), NIVissimConnectionCluster::liesOnSameEdgesEnd(), NIVissimConnectionCluster::same_direction_sorter::operator()(), and NIVissimConnectionCluster::recomputeBoundary().
|
inherited |
Definition at line 79 of file NIVissimAbstractEdge.cpp.
References PositionVector::extrapolate(), PositionVector::length(), NIVissimAbstractEdge::myGeom, and PositionVector::positionAtOffset().
Referenced by NIVissimDistrictConnection::geomPosition().
|
inherited |
Definition at line 146 of file NIVissimAbstractEdge.cpp.
References NIVissimAbstractEdge::myID.
Referenced by NIVissimDisturbance::addToNode(), buildEdgeConnections(), NIVissimEdge::dict_checkEdges2Join(), NIVissimEdge::getConnectionTo(), NIVissimConnectionCluster::getIncomingContinuation(), NIVissimConnectionCluster::getIncomingContinuationGeometry(), NIVissimConnectionCluster::getOutgoingContinuation(), NIVissimConnectionCluster::getOutgoingContinuationGeometry(), and NIVissimConnectionCluster::removeConnections().
|
static |
Definition at line 314 of file NIVissimConnection.cpp.
References myMaxID.
int NIVissimConnection::getToEdgeID | ( | ) | const |
Definition at line 161 of file NIVissimConnection.cpp.
References NIVissimExtendedEdgePoint::getEdgeID(), and myToDef.
Referenced by NIVissimTL::NIVissimTLSignal::addTo(), NIVissimDisturbance::addToNode(), buildEdgeConnections(), NIVissimEdge::checkUnconnectedLaneSpeeds(), dict_assignToEdges(), NIVissimDisturbance::getConnection(), NIVissimEdge::getConnectionTo(), NIVissimNodeCluster::getFromNode(), NIVissimEdge::getOutgoingConnected(), NIVissimConnectionCluster::getOutgoingContinuation(), NIVissimConnectionCluster::getOutgoingContinuationGeometry(), NIVissimConnectionCluster::getPositionForEdge(), NIVissimConnectionCluster::liesOnSameEdgesEnd(), NIVissimConnectionCluster::NIVissimConnectionCluster(), NIVissimConnectionCluster::NIVissimConnectionCluster(), NIVissimSingleTypeParser_VWunschentscheidungsdefinition::parse(), NIVissimEdge::propagateOwn(), NIVissimEdge::propagateSpeed(), NIVissimConnectionCluster::recheckEdges(), NIVissimEdge::setDistrictSpeed(), and NIVissimConflictArea::setPriorityRegulation().
Position NIVissimConnection::getToGeomPosition | ( | ) | const |
Definition at line 186 of file NIVissimConnection.cpp.
References NIVissimExtendedEdgePoint::getGeomPosition(), and myToDef.
Referenced by NIVissimNodeCluster::buildNBNode(), NIVissimConnectionCluster::recheckEdges(), and NIVissimConnectionCluster::recomputeBoundary().
const std::vector< int > & NIVissimConnection::getToLanes | ( | ) | const |
Definition at line 284 of file NIVissimConnection.cpp.
References NIVissimExtendedEdgePoint::getLanes(), and myToDef.
Referenced by buildEdgeConnections(), NIVissimEdge::checkUnconnectedLaneSpeeds(), NIVissimSingleTypeParser_VWunschentscheidungsdefinition::parse(), NIVissimEdge::propagateOwn(), NIVissimEdge::propagateSpeed(), and NIVissimEdge::setDistrictSpeed().
double NIVissimConnection::getToPosition | ( | ) | const |
Definition at line 173 of file NIVissimConnection.cpp.
References NIVissimExtendedEdgePoint::getPosition(), and myToDef.
Referenced by NIVissimConnectionCluster::getPositionForEdge(), and NIVissimEdge::connection_position_sorter::operator()().
|
staticinherited |
Definition at line 121 of file NIVissimAbstractEdge.cpp.
References NIVissimAbstractEdge::myDict, NIVissimAbstractEdge::myID, and NIVissimAbstractEdge::overlapsWith().
|
static |
Definition at line 116 of file NIVissimConnection.cpp.
References myDict.
Referenced by buildNodeClusters().
|
inherited |
Definition at line 140 of file NIVissimAbstractEdge.cpp.
References NIVissimAbstractEdge::myNode.
|
inherited |
Definition at line 49 of file NIVissimBoundedClusterObject.cpp.
References NIVissimBoundedClusterObject::myClusterID.
|
inherited |
Definition at line 134 of file NIVissimAbstractEdge.cpp.
References NIVissimAbstractEdge::myGeom, and PositionVector::overlapsWith().
Referenced by NIVissimAbstractEdge::getWithin().
Resets lane numbers if all lanes shall be used.
Calls "NIVissimExtendedEdgePoint::recheckLanes" for both used edges.
[in] | The | built from-edge |
[in] | The | built to-edge |
Definition at line 290 of file NIVissimConnection.cpp.
References myFromDef, myToDef, and NIVissimExtendedEdgePoint::recheckLanes().
Referenced by buildEdgeConnections().
|
virtual |
Implements NIVissimAbstractEdge.
Definition at line 192 of file NIVissimConnection.cpp.
References NIVissimAbstractEdge::myNode.
|
staticinherited |
Definition at line 94 of file NIVissimAbstractEdge.cpp.
References NIVissimAbstractEdge::myDict, and NIVissimAbstractEdge::splitAssigning().
|
inherited |
Definition at line 102 of file NIVissimAbstractEdge.cpp.
Referenced by NIVissimAbstractEdge::splitAndAssignToNodes().
|
private |
Definition at line 103 of file NIVissimConnection.h.
|
protectedinherited |
Definition at line 52 of file NIVissimBoundedClusterObject.h.
Referenced by buildNodeClusters(), computeBounding(), NIVissimDisturbance::computeBounding(), NIVissimBoundedClusterObject::crosses(), NIVissimBoundedClusterObject::getBoundary(), getBoundingBox(), and NIVissimBoundedClusterObject::~NIVissimBoundedClusterObject().
|
private |
Definition at line 104 of file NIVissimConnection.h.
Referenced by ~NIVissimConnection().
|
protectedinherited |
Definition at line 53 of file NIVissimBoundedClusterObject.h.
Referenced by NIVissimBoundedClusterObject::clustered(), and NIVissimBoundedClusterObject::inCluster().
|
staticprivate |
Definition at line 107 of file NIVissimConnection.h.
Referenced by buildNodeClusters(), dict_assignToEdges(), dict_buildNBEdgeConnections(), dictionary(), dictionary(), getForEdge(), and getWithin().
|
protectedinherited |
Definition at line 65 of file NIVissimAbstractEdge.h.
Referenced by NIVissimAbstractEdge::addDisturbance(), and NIVissimAbstractEdge::getDisturbances().
|
private |
Definition at line 102 of file NIVissimConnection.h.
Referenced by buildGeom(), computeBounding(), getFromEdgeID(), getFromGeomPosition(), getFromLanes(), getFromPosition(), and recheckLanes().
|
protectedinherited |
Definition at line 64 of file NIVissimAbstractEdge.h.
Referenced by buildGeom(), NIVissimEdge::buildNBEdge(), NIVissimAbstractEdge::crossesEdge(), NIVissimAbstractEdge::crossesEdgeAtPoint(), NIVissimEdge::getBegin2D(), NIVissimEdge::getEnd2D(), NIVissimEdge::getFromNode(), NIVissimAbstractEdge::getGeometry(), NIVissimAbstractEdge::getGeomPosition(), NIVissimEdge::getLength(), NIVissimEdge::getToNode(), NIVissimAbstractEdge::NIVissimAbstractEdge(), NIVissimAbstractEdge::overlapsWith(), and NIVissimEdge::resolveSameNode().
|
protectedinherited |
Definition at line 63 of file NIVissimAbstractEdge.h.
Referenced by NIVissimEdge::buildNBEdge(), NIVissimEdge::getFromNode(), NIVissimAbstractEdge::getID(), NIVissimEdge::getToNode(), NIVissimAbstractEdge::getWithin(), NIVissimEdge::NIVissimEdge(), NIVissimEdge::resolveSameNode(), and NIVissimEdge::setDistrictSpeed().
|
staticprivate |
Definition at line 108 of file NIVissimConnection.h.
Referenced by getMaxID().
|
private |
Definition at line 101 of file NIVissimConnection.h.
|
protectedinherited |
Definition at line 66 of file NIVissimAbstractEdge.h.
Referenced by NIVissimAbstractEdge::hasNodeCluster(), setNodeCluster(), and NIVissimEdge::setNodeCluster().
|
private |
Definition at line 102 of file NIVissimConnection.h.
Referenced by buildGeom(), computeBounding(), getToEdgeID(), getToGeomPosition(), getToLanes(), getToPosition(), and recheckLanes().