SUMO - Simulation of Urban MObility
NIVissimConnection Class Reference

#include <NIVissimConnection.h>

Inheritance diagram for NIVissimConnection:
Inheritance graph
Collaboration diagram for NIVissimConnection:
Collaboration graph

Public Member Functions

void addDisturbance (int disturbance)
 
int buildEdgeConnections (NBEdgeCont &ec)
 
void buildGeom ()
 
bool clustered () const
 
void computeBounding ()
 
bool crosses (const AbstractPoly &poly, SUMOReal offset=0) const
 
bool crossesEdge (NIVissimAbstractEdge *c) const
 
Position crossesEdgeAtPoint (NIVissimAbstractEdge *c) const
 
const BoundarygetBoundary () const
 
const BoundarygetBoundingBox () const
 
const std::vector< int > & getDisturbances () const
 
int getFromEdgeID () const
 
Position getFromGeomPosition () const
 
const std::vector< int > & getFromLanes () const
 
SUMOReal getFromPosition () const
 
const PositionVectorgetGeometry () const
 
Position getGeomPosition (SUMOReal pos) const
 
int getID () const
 
int getToEdgeID () const
 
Position getToGeomPosition () const
 
const std::vector< int > & getToLanes () const
 
SUMOReal 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, SUMOReal offset=0.0) const
 
void recheckLanes (const NBEdge *const fromEdge, const NBEdge *const toEdge)
 Resets lane numbers if all lanes shall be used. More...
 
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 bool dictionary (int id, NIVissimAbstractEdge *e)
 
static bool dictionary (int id, NIVissimConnection *o)
 
static NIVissimConnectiondictionary (int id)
 
static std::vector< int > getForEdge (int edgeid, bool omitNodeAssigned=true)
 
static int getMaxID ()
 
static std::vector< int > getWithin (const AbstractPoly &p, SUMOReal offset=0.0)
 
static std::vector< int > getWithin (const AbstractPoly &poly)
 
static void splitAndAssignToNodes ()
 

Protected Types

typedef std::set< NIVissimBoundedClusterObject * > ContType
 

Protected Attributes

BoundarymyBoundary
 
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
 

Detailed Description

Definition at line 53 of file NIVissimConnection.h.

Member Typedef Documentation

§ ContType

Definition at line 60 of file NIVissimBoundedClusterObject.h.

§ DictType

typedef std::map<int, NIVissimConnection*> NIVissimConnection::DictType
private

Definition at line 116 of file NIVissimConnection.h.

Constructor & Destructor Documentation

§ NIVissimConnection()

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 70 of file NIVissimConnection.cpp.

§ ~NIVissimConnection()

NIVissimConnection::~NIVissimConnection ( )
virtual

Definition at line 80 of file NIVissimConnection.cpp.

References myClosedLanes.

Member Function Documentation

§ addDisturbance()

void NIVissimAbstractEdge::addDisturbance ( int  disturbance)
inherited

Definition at line 179 of file NIVissimAbstractEdge.cpp.

References NIVissimAbstractEdge::myDisturbances.

§ buildEdgeConnections()

§ buildGeom()

void NIVissimConnection::buildGeom ( )
virtual

§ buildNodeClusters()

§ clearDict()

void NIVissimAbstractEdge::clearDict ( )
staticinherited

§ closeLoading()

void NIVissimBoundedClusterObject::closeLoading ( )
staticinherited

§ clustered()

bool NIVissimBoundedClusterObject::clustered ( ) const
inherited

§ computeBounding()

void NIVissimConnection::computeBounding ( )
virtual

§ crosses()

bool NIVissimBoundedClusterObject::crosses ( const AbstractPoly poly,
SUMOReal  offset = 0 
) const
inherited

§ crossesEdge()

bool NIVissimAbstractEdge::crossesEdge ( NIVissimAbstractEdge c) const
inherited

§ crossesEdgeAtPoint()

Position NIVissimAbstractEdge::crossesEdgeAtPoint ( NIVissimAbstractEdge c) const
inherited

§ dict_assignToEdges()

void NIVissimConnection::dict_assignToEdges ( )
static

§ dict_buildNBEdgeConnections()

void NIVissimConnection::dict_buildNBEdgeConnections ( NBEdgeCont ec)
static

Definition at line 278 of file NIVissimConnection.cpp.

References myDict, and WRITE_WARNING.

Referenced by NIImporter_Vissim::postLoadBuild().

§ dictionary() [1/3]

§ dictionary() [2/3]

§ dictionary() [3/3]

NIVissimConnection * NIVissimConnection::dictionary ( int  id)
static

Definition at line 101 of file NIVissimConnection.cpp.

References myDict.

§ getBoundary()

const Boundary & NIVissimBoundedClusterObject::getBoundary ( ) const
inherited

§ getBoundingBox()

const Boundary & NIVissimConnection::getBoundingBox ( ) const

§ getDisturbances()

const std::vector< int > & NIVissimAbstractEdge::getDisturbances ( ) const
inherited

§ getForEdge()

std::vector< int > NIVissimConnection::getForEdge ( int  edgeid,
bool  omitNodeAssigned = true 
)
static

Definition at line 151 of file NIVissimConnection.cpp.

References myDict.

§ getFromEdgeID()

§ getFromGeomPosition()

§ getFromLanes()

const std::vector< int > & NIVissimConnection::getFromLanes ( ) const

§ getFromPosition()

§ getGeometry()

§ getGeomPosition()

§ getID()

§ getMaxID()

int NIVissimConnection::getMaxID ( )
static

Definition at line 327 of file NIVissimConnection.cpp.

References myMaxID.

§ getToEdgeID()

§ getToGeomPosition()

§ getToLanes()

§ getToPosition()

§ getWithin() [1/2]

std::vector< int > NIVissimAbstractEdge::getWithin ( const AbstractPoly p,
SUMOReal  offset = 0.0 
)
staticinherited

§ getWithin() [2/2]

std::vector< int > NIVissimConnection::getWithin ( const AbstractPoly poly)
static

Definition at line 129 of file NIVissimConnection.cpp.

References myDict.

Referenced by buildNodeClusters().

§ hasNodeCluster()

bool NIVissimAbstractEdge::hasNodeCluster ( ) const
inherited

Definition at line 153 of file NIVissimAbstractEdge.cpp.

References NIVissimAbstractEdge::myNode.

§ inCluster()

void NIVissimBoundedClusterObject::inCluster ( int  id)
inherited

§ overlapsWith()

bool NIVissimAbstractEdge::overlapsWith ( const AbstractPoly p,
SUMOReal  offset = 0.0 
) const
inherited

§ recheckLanes()

void NIVissimConnection::recheckLanes ( const NBEdge *const  fromEdge,
const NBEdge *const  toEdge 
)

Resets lane numbers if all lanes shall be used.

Calls "NIVissimExtendedEdgePoint::recheckLanes" for both used edges.

Parameters
[in]Thebuilt from-edge
[in]Thebuilt to-edge

Definition at line 303 of file NIVissimConnection.cpp.

References myFromDef, myToDef, and NIVissimExtendedEdgePoint::recheckLanes().

Referenced by buildEdgeConnections().

§ setNodeCluster()

void NIVissimConnection::setNodeCluster ( int  nodeid)
virtual

Implements NIVissimAbstractEdge.

Definition at line 205 of file NIVissimConnection.cpp.

References NIVissimAbstractEdge::myNode.

§ splitAndAssignToNodes()

void NIVissimAbstractEdge::splitAndAssignToNodes ( )
staticinherited

§ splitAssigning()

void NIVissimAbstractEdge::splitAssigning ( )
inherited

Field Documentation

§ myAssignedVehicles

std::vector<int> NIVissimConnection::myAssignedVehicles
private

Definition at line 113 of file NIVissimConnection.h.

§ myBoundary

§ myClosedLanes

NIVissimClosedLanesVector NIVissimConnection::myClosedLanes
private

Definition at line 114 of file NIVissimConnection.h.

Referenced by ~NIVissimConnection().

§ myClusterID

int NIVissimBoundedClusterObject::myClusterID
protectedinherited

§ myDict

NIVissimConnection::DictType NIVissimConnection::myDict
staticprivate

§ myDisturbances

std::vector<int> NIVissimAbstractEdge::myDisturbances
protectedinherited

§ myFromDef

§ myGeom

§ myID

§ myMaxID

int NIVissimConnection::myMaxID
staticprivate

Definition at line 118 of file NIVissimConnection.h.

Referenced by getMaxID().

§ myName

std::string NIVissimConnection::myName
private

Definition at line 111 of file NIVissimConnection.h.

§ myNode

int NIVissimAbstractEdge::myNode
protectedinherited

§ myToDef

NIVissimExtendedEdgePoint NIVissimConnection::myToDef
private

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