Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
NIVissimExtendedEdgePoint Class Reference

#include <NIVissimExtendedEdgePoint.h>

Public Member Functions

int getEdgeID () const
Position getGeomPosition () const
const std::vector< int > & getLanes () const
double getPosition () const
 NIVissimExtendedEdgePoint (int edgeid, const std::vector< int > &lanes, double position, const std::vector< int > &assignedVehicles)
 Constructor.
void recheckLanes (const NBEdge *const edge)
 Resets lane numbers if all lanes shall be used.
 ~NIVissimExtendedEdgePoint ()

Private Attributes

std::vector< int > myAssignedVehicles
int myEdgeID
std::vector< int > myLanes
double myPosition

Detailed Description

Definition at line 40 of file NIVissimExtendedEdgePoint.h.

Constructor & Destructor Documentation

◆ NIVissimExtendedEdgePoint()

NIVissimExtendedEdgePoint::NIVissimExtendedEdgePoint ( int edgeid,
const std::vector< int > & lanes,
double position,
const std::vector< int > & assignedVehicles )

Constructor.

Parameters
[in]edgeidThe id of the Vissim-edge
[in]lanesLanes on which this point lies
[in]positionThe position of this point at the edge
[in]assignedVehiclesVehicle (type) indices which should be regarded by this point

Definition at line 32 of file NIVissimExtendedEdgePoint.cpp.

References myAssignedVehicles, myEdgeID, myLanes, and myPosition.

◆ ~NIVissimExtendedEdgePoint()

NIVissimExtendedEdgePoint::~NIVissimExtendedEdgePoint ( )

Definition at line 39 of file NIVissimExtendedEdgePoint.cpp.

Member Function Documentation

◆ getEdgeID()

int NIVissimExtendedEdgePoint::getEdgeID ( ) const

Definition at line 43 of file NIVissimExtendedEdgePoint.cpp.

References myEdgeID.

Referenced by NIVissimDisturbance::dict_SetDisturbances(), and NIVissimNodeDef_Edges::lying_within_match::operator()().

Here is the caller graph for this function:

◆ getGeomPosition()

Position NIVissimExtendedEdgePoint::getGeomPosition ( ) const

◆ getLanes()

const std::vector< int > & NIVissimExtendedEdgePoint::getLanes ( ) const

Definition at line 62 of file NIVissimExtendedEdgePoint.cpp.

References myLanes.

◆ getPosition()

double NIVissimExtendedEdgePoint::getPosition ( ) const

Definition at line 49 of file NIVissimExtendedEdgePoint.cpp.

References myPosition.

Referenced by NIVissimNodeDef_Edges::lying_within_match::operator()().

Here is the caller graph for this function:

◆ recheckLanes()

void NIVissimExtendedEdgePoint::recheckLanes ( const NBEdge *const edge)

Resets lane numbers if all lanes shall be used.

If myLanes contains a -1, the content of myLanes is replaced by indices of all lanes of the given edge.

Parameters
[in]Thebuilt edge

Definition at line 68 of file NIVissimExtendedEdgePoint.cpp.

References NBEdge::getNumLanes(), and myLanes.

Field Documentation

◆ myAssignedVehicles

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

Definition at line 70 of file NIVissimExtendedEdgePoint.h.

Referenced by NIVissimExtendedEdgePoint().

◆ myEdgeID

int NIVissimExtendedEdgePoint::myEdgeID
private

◆ myLanes

std::vector<int> NIVissimExtendedEdgePoint::myLanes
private

Definition at line 68 of file NIVissimExtendedEdgePoint.h.

Referenced by getLanes(), NIVissimExtendedEdgePoint(), and recheckLanes().

◆ myPosition

double NIVissimExtendedEdgePoint::myPosition
private

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