SUMO - Simulation of Urban MObility
NIVissimConnection Class Reference

#include <NIVissimConnection.h>

Inheritance diagram for NIVissimConnection:
NIVissimBoundedClusterObject NIVissimAbstractEdge

Public Types

enum  Direction { NIVC_DIR_RIGHT, NIVC_DIR_LEFT, NIVC_DIR_ALL }

Public Member Functions

void addDisturbance (int disturbance)
unsigned int buildEdgeConnections (NBEdgeCont &ec)
void buildGeom ()
bool clustered () const
void computeBounding ()
bool crosses (const AbstractPoly &poly, SUMOReal offset=0) const
SUMOReal crossesAtPoint (const Position &p1, const Position &p2) 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, Direction direction, SUMOReal dxnothalt, SUMOReal dxeinordnen, SUMOReal zuschlag1, SUMOReal zuschlag2, SUMOReal seglength, 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.
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, const std::string &name, const NIVissimExtendedEdgePoint &from_def, const NIVissimExtendedEdgePoint &to_def, const PositionVector &geom, Direction direction, SUMOReal dxnothalt, SUMOReal dxeinordnen, SUMOReal zuschlag1, SUMOReal zuschlag2, SUMOReal seglength, const std::vector< int > &assignedVehicles, const NIVissimClosedLanesVector &clv)
static bool dictionary (int id, NIVissimConnection *o)
static NIVissimConnectiondictionary (int id)
static std::vector< intgetForEdge (int edgeid, bool omitNodeAssigned=true)
static int getMaxID ()
static std::vector< intgetWithin (const AbstractPoly &p, SUMOReal offset=0.0)
static std::vector< intgetWithin (const AbstractPoly &poly)
static void splitAndAssignToNodes ()

Protected Types

typedef std::set
< NIVissimBoundedClusterObject * > 
ContType

Protected Attributes

BoundarymyBoundary
int myClusterID
std::vector< intmyDisturbances
PositionVector myGeom
int myID
int myNode

Private Types

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

Private Attributes

std::vector< intmyAssignedVehicles
NIVissimClosedLanesVector myClosedLanes
Direction myDirection
SUMOReal myDXEinordnen
SUMOReal myDXNothalt
NIVissimExtendedEdgePoint myFromDef
std::string myName
NIVissimExtendedEdgePoint myToDef
SUMOReal myZuschlag1
SUMOReal myZuschlag2

Static Private Attributes

static DictType myDict
static int myMaxID

Detailed Description

Definition at line 53 of file NIVissimConnection.h.


Member Typedef Documentation

typedef std::set<NIVissimBoundedClusterObject*> NIVissimBoundedClusterObject::ContType [protected, inherited]

Definition at line 60 of file NIVissimBoundedClusterObject.h.

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

Reimplemented from NIVissimAbstractEdge.

Definition at line 129 of file NIVissimConnection.h.


Member Enumeration Documentation

Enumerator:
NIVC_DIR_RIGHT 
NIVC_DIR_LEFT 
NIVC_DIR_ALL 

Definition at line 57 of file NIVissimConnection.h.


Constructor & Destructor Documentation

NIVissimConnection::NIVissimConnection ( int  id,
const std::string &  name,
const NIVissimExtendedEdgePoint from_def,
const NIVissimExtendedEdgePoint to_def,
const PositionVector geom,
Direction  direction,
SUMOReal  dxnothalt,
SUMOReal  dxeinordnen,
SUMOReal  zuschlag1,
SUMOReal  zuschlag2,
SUMOReal  seglength,
const std::vector< int > &  assignedVehicles,
const NIVissimClosedLanesVector clv 
)

Definition at line 70 of file NIVissimConnection.cpp.

Referenced by dictionary().

Definition at line 85 of file NIVissimConnection.cpp.

References myClosedLanes.


Member Function Documentation

void NIVissimAbstractEdge::addDisturbance ( int  disturbance) [inherited]

Definition at line 195 of file NIVissimAbstractEdge.cpp.

References NIVissimAbstractEdge::myDisturbances.

void NIVissimAbstractEdge::clearDict ( ) [static, inherited]

Definition at line 309 of file NIVissimConnection.cpp.

References myDict, and WRITE_WARNING.

Referenced by NIImporter_Vissim::postLoadBuild().

Definition at line 120 of file NIVissimConnection.cpp.

References myDict.

Reimplemented from NIVissimAbstractEdge.

Definition at line 132 of file NIVissimConnection.cpp.

References myDict.

const std::vector< int > & NIVissimAbstractEdge::getDisturbances ( ) const [inherited]
std::vector< int > NIVissimConnection::getForEdge ( int  edgeid,
bool  omitNodeAssigned = true 
) [static]

Definition at line 182 of file NIVissimConnection.cpp.

References myDict.

Definition at line 358 of file NIVissimConnection.cpp.

References myMaxID.

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

Definition at line 160 of file NIVissimConnection.cpp.

References myDict.

Referenced by buildNodeClusters().

Definition at line 169 of file NIVissimAbstractEdge.cpp.

References NIVissimAbstractEdge::myNode.

bool NIVissimAbstractEdge::overlapsWith ( const AbstractPoly p,
SUMOReal  offset = 0.0 
) const [inherited]
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 334 of file NIVissimConnection.cpp.

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

Referenced by buildEdgeConnections().


Field Documentation

Definition at line 126 of file NIVissimConnection.h.

Definition at line 123 of file NIVissimConnection.h.

Definition at line 124 of file NIVissimConnection.h.

Definition at line 124 of file NIVissimConnection.h.

int NIVissimConnection::myMaxID [static, private]

Definition at line 131 of file NIVissimConnection.h.

Referenced by dictionary(), and getMaxID().

std::string NIVissimConnection::myName [private]

Definition at line 121 of file NIVissimConnection.h.

Definition at line 125 of file NIVissimConnection.h.

Definition at line 125 of file NIVissimConnection.h.


The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines