SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 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
 
SUMOReal getFromPosition () const
 
const PositionVector & getGeometry () 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. 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, 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 NIVissimConnection * dictionary (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

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
 
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

Definition at line 60 of file NIVissimBoundedClusterObject.h.

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().

NIVissimConnection::~NIVissimConnection ( )
virtual

Definition at line 85 of file NIVissimConnection.cpp.

References myClosedLanes.

Member Function Documentation

void NIVissimAbstractEdge::addDisturbance ( int  disturbance)
inherited

Definition at line 194 of file NIVissimAbstractEdge.cpp.

References NIVissimAbstractEdge::myDisturbances.

void NIVissimConnection::buildGeom ( )
virtual
void NIVissimAbstractEdge::clearDict ( )
staticinherited
void NIVissimBoundedClusterObject::closeLoading ( )
staticinherited
bool NIVissimBoundedClusterObject::clustered ( ) const
inherited
void NIVissimConnection::computeBounding ( )
virtual
bool NIVissimBoundedClusterObject::crosses ( const AbstractPoly &  poly,
SUMOReal  offset = 0 
) const
inherited
SUMOReal NIVissimAbstractEdge::crossesAtPoint ( const Position &  p1,
const Position &  p2 
) const
inherited
bool NIVissimAbstractEdge::crossesEdge ( NIVissimAbstractEdge *  c) const
inherited
Position NIVissimAbstractEdge::crossesEdgeAtPoint ( NIVissimAbstractEdge *  c) const
inherited
void NIVissimConnection::dict_assignToEdges ( )
static
void NIVissimConnection::dict_buildNBEdgeConnections ( NBEdgeCont &  ec)
static

Definition at line 309 of file NIVissimConnection.cpp.

References myDict, and WRITE_WARNING.

Referenced by NIImporter_Vissim::postLoadBuild().

bool NIVissimConnection::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 NIVissimConnection::dictionary ( int  id,
NIVissimConnection *  o 
)
static

Definition at line 120 of file NIVissimConnection.cpp.

References myDict.

NIVissimConnection * NIVissimConnection::dictionary ( int  id)
static

Definition at line 132 of file NIVissimConnection.cpp.

References myDict.

const Boundary & NIVissimBoundedClusterObject::getBoundary ( ) const
inherited
const Boundary & NIVissimConnection::getBoundingBox ( ) const
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.

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

Definition at line 358 of file NIVissimConnection.cpp.

References myMaxID.

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

Definition at line 160 of file NIVissimConnection.cpp.

References myDict.

Referenced by buildNodeClusters().

bool NIVissimAbstractEdge::hasNodeCluster ( ) const
inherited

Definition at line 168 of file NIVissimAbstractEdge.cpp.

References NIVissimAbstractEdge::myNode.

void NIVissimBoundedClusterObject::inCluster ( int  id)
inherited
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().

void NIVissimConnection::setNodeCluster ( int  nodeid)
virtual
void NIVissimAbstractEdge::splitAndAssignToNodes ( )
staticinherited
void NIVissimAbstractEdge::splitAssigning ( )
inherited

Field Documentation

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

Definition at line 126 of file NIVissimConnection.h.

NIVissimClosedLanesVector NIVissimConnection::myClosedLanes
private

Definition at line 127 of file NIVissimConnection.h.

Referenced by ~NIVissimConnection().

int NIVissimBoundedClusterObject::myClusterID
protectedinherited
NIVissimConnection::DictType NIVissimConnection::myDict
staticprivate
Direction NIVissimConnection::myDirection
private

Definition at line 123 of file NIVissimConnection.h.

std::vector<int> NIVissimAbstractEdge::myDisturbances
protectedinherited
SUMOReal NIVissimConnection::myDXEinordnen
private

Definition at line 124 of file NIVissimConnection.h.

SUMOReal NIVissimConnection::myDXNothalt
private

Definition at line 124 of file NIVissimConnection.h.

int NIVissimConnection::myMaxID
staticprivate

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.

int NIVissimAbstractEdge::myNode
protectedinherited
NIVissimExtendedEdgePoint NIVissimConnection::myToDef
private
SUMOReal NIVissimConnection::myZuschlag1
private

Definition at line 125 of file NIVissimConnection.h.

SUMOReal NIVissimConnection::myZuschlag2
private

Definition at line 125 of file NIVissimConnection.h.


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