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 Boundary & getBoundary () const
const Boundary & getBoundingBox () const
const IntVector & getDisturbances () const
int getFromEdgeID () const
Position getFromGeomPosition () const
const IntVector & getFromLanes () const
SUMOReal getFromPosition () const
const PositionVector & getGeometry () const
Position getGeomPosition (SUMOReal pos) const
int getID () const
int getToEdgeID () const
Position getToGeomPosition () const
const IntVector & 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 IntVector &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, 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 IntVector &assignedVehicles, const NIVissimClosedLanesVector &clv)
static bool dictionary (int id, NIVissimConnection *o)
static bool dictionary (int id, NIVissimAbstractEdge *e)
static NIVissimConnection * dictionary (int id)
static IntVector getForEdge (int edgeid, bool omitNodeAssigned=true)
static int getMaxID ()
static IntVector getWithin (const AbstractPoly &poly)
static IntVector getWithin (const AbstractPoly &p, SUMOReal offset=0.0)
static void splitAndAssignToNodes ()

Protected Types

typedef std::set
< NIVissimBoundedClusterObject * > 
ContType

Protected Attributes

Boundary * myBoundary
int myClusterID
IntVector myDisturbances
PositionVector myGeom
int myID
int myNode

Private Types

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

Private Attributes

IntVector 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 54 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 130 of file NIVissimConnection.h.


Member Enumeration Documentation

Enumerator:
NIVC_DIR_RIGHT 
NIVC_DIR_LEFT 
NIVC_DIR_ALL 

Definition at line 58 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 IntVector &  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 196 of file NIVissimAbstractEdge.cpp.

References NIVissimAbstractEdge::myDisturbances.

void NIVissimConnection::buildNodeClusters ( ) [static]
void NIVissimAbstractEdge::clearDict ( ) [static, inherited]
void NIVissimBoundedClusterObject::closeLoading ( ) [static, inherited]
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]

Definition at line 348 of file NIVissimConnection.cpp.

References dictionary(), getFromEdgeID(), getToEdgeID(), and myDict.

Referenced by NIImporter_Vissim::postLoadBuild().

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

NIVissimConnection * NIVissimConnection::dictionary ( int  id) [static]

Reimplemented from NIVissimAbstractEdge.

Definition at line 132 of file NIVissimConnection.cpp.

References myDict.

bool NIVissimConnection::dictionary ( int  id,
NIVissimConnection *  o 
) [static]

Definition at line 120 of file NIVissimConnection.cpp.

References myDict.

bool NIVissimAbstractEdge::dictionary ( int  id,
NIVissimAbstractEdge *  e 
) [static, inherited]
const Boundary & NIVissimBoundedClusterObject::getBoundary ( ) const [inherited]
const Boundary & NIVissimConnection::getBoundingBox ( ) const
const IntVector & NIVissimAbstractEdge::getDisturbances ( ) const [inherited]
IntVector NIVissimConnection::getForEdge ( int  edgeid,
bool  omitNodeAssigned = true 
) [static]

Definition at line 182 of file NIVissimConnection.cpp.

References myDict.

const IntVector & NIVissimConnection::getFromLanes ( ) const
int NIVissimConnection::getMaxID ( ) [static]

Definition at line 358 of file NIVissimConnection.cpp.

References myMaxID.

SUMOReal NIVissimConnection::getToPosition ( ) const
IntVector NIVissimAbstractEdge::getWithin ( const AbstractPoly &  p,
SUMOReal  offset = 0.0 
) [static, inherited]
IntVector 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 170 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 ( ) [static, inherited]
void NIVissimAbstractEdge::splitAssigning ( ) [inherited]

Field Documentation

Definition at line 124 of file NIVissimConnection.h.

Definition at line 125 of file NIVissimConnection.h.

SUMOReal NIVissimConnection::myDXNothalt [private]

Definition at line 125 of file NIVissimConnection.h.

int NIVissimConnection::myMaxID [static, private]

Definition at line 132 of file NIVissimConnection.h.

Referenced by dictionary(), and getMaxID().

std::string NIVissimConnection::myName [private]

Definition at line 122 of file NIVissimConnection.h.

SUMOReal NIVissimConnection::myZuschlag1 [private]

Definition at line 126 of file NIVissimConnection.h.

SUMOReal NIVissimConnection::myZuschlag2 [private]

Definition at line 126 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