#include <NIVissimExtendedEdgePoint.h>
Definition at line 48 of file NIVissimExtendedEdgePoint.h.
Public Member Functions | |
| int | getEdgeID () const |
| Position2D | getGeomPosition () const |
| const IntVector & | getLanes () const |
| SUMOReal | getPosition () const |
| NIVissimExtendedEdgePoint (int edgeid, const IntVector &lanes, SUMOReal position, const IntVector &assignedVehicles) throw () | |
| Constructor. | |
| void | recheckLanes (const NBEdge *const edge) throw () |
| Resets lane numbers if all lanes shall be used. | |
| ~NIVissimExtendedEdgePoint () | |
Private Attributes | |
| IntVector | myAssignedVehicles |
| int | myEdgeID |
| IntVector | myLanes |
| SUMOReal | myPosition |
| NIVissimExtendedEdgePoint::NIVissimExtendedEdgePoint | ( | int | edgeid, | |
| const IntVector & | lanes, | |||
| SUMOReal | position, | |||
| const IntVector & | assignedVehicles | |||
| ) | throw () |
Constructor.
| [in] | edgeid | The id of the Vissim-edge |
| [in] | lanes | Lanes on which this point lies |
| [in] | position | The position of this point at the edge |
| [in] | assignedVehicles | Vehicle (type) indices which should be regarded by this point |
Definition at line 43 of file NIVissimExtendedEdgePoint.cpp.
00046 : myEdgeID(edgeid), myLanes(lanes), myPosition(position), 00047 myAssignedVehicles(assignedVehicles) {}
| NIVissimExtendedEdgePoint::~NIVissimExtendedEdgePoint | ( | ) |
| int NIVissimExtendedEdgePoint::getEdgeID | ( | ) | const |
Definition at line 54 of file NIVissimExtendedEdgePoint.cpp.
References myEdgeID.
Referenced by NIVissimDisturbance::addToNode(), NIVissimDisturbance::computeBounding(), NIVissimDisturbance::dict_SetDisturbances(), NIVissimDisturbance::getConnection(), NIVissimDisturbance::getDisturbanceID(), NIVissimDisturbance::getEdgeID(), NIVissimConnection::getFromEdgeID(), NIVissimConnection::getToEdgeID(), and NIVissimNodeDef_Edges::lying_within_match::operator()().
00054 { 00055 return myEdgeID; 00056 }
| Position2D NIVissimExtendedEdgePoint::getGeomPosition | ( | ) | const |
Definition at line 66 of file NIVissimExtendedEdgePoint.cpp.
References NIVissimAbstractEdge::dictionary(), myEdgeID, and myPosition.
Referenced by NIVissimConnection::buildGeom(), NIVissimDisturbance::computeBounding(), NIVissimConnection::computeBounding(), NIVissimConnection::getFromGeomPosition(), and NIVissimConnection::getToGeomPosition().
00066 { 00067 return 00068 NIVissimAbstractEdge::dictionary(myEdgeID)->getGeomPosition(myPosition); 00069 }
| const IntVector & NIVissimExtendedEdgePoint::getLanes | ( | ) | const |
Definition at line 73 of file NIVissimExtendedEdgePoint.cpp.
References myLanes.
Referenced by NIVissimConnection::getFromLanes(), and NIVissimConnection::getToLanes().
00073 { 00074 return myLanes; 00075 }
| SUMOReal NIVissimExtendedEdgePoint::getPosition | ( | ) | const |
Definition at line 60 of file NIVissimExtendedEdgePoint.cpp.
References myPosition.
Referenced by NIVissimDisturbance::addToNode(), NIVissimConnection::getFromPosition(), NIVissimConnection::getToPosition(), and NIVissimNodeDef_Edges::lying_within_match::operator()().
00060 { 00061 return myPosition; 00062 }
| void NIVissimExtendedEdgePoint::recheckLanes | ( | const NBEdge *const | edge | ) | throw () |
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.
| [in] | The | built edge |
Definition at line 79 of file NIVissimExtendedEdgePoint.cpp.
References myLanes.
Referenced by NIVissimConnection::recheckLanes().
00079 { 00080 // check whether an "all" indicator is there 00081 bool hadAll = false; 00082 for (IntVector::const_iterator i=myLanes.begin(); !hadAll&&i!=myLanes.end(); ++i) { 00083 if ((*i)==-1) { 00084 hadAll = true; 00085 } 00086 } 00087 // no -> return 00088 if (!hadAll) { 00089 return; 00090 } 00091 // patch lane indices 00092 myLanes.clear(); 00093 for (int i=0; i<(int) edge->getNoLanes(); ++i) { 00094 myLanes.push_back(i); 00095 } 00096 }
Definition at line 78 of file NIVissimExtendedEdgePoint.h.
int NIVissimExtendedEdgePoint::myEdgeID [private] |
Definition at line 75 of file NIVissimExtendedEdgePoint.h.
Referenced by getEdgeID(), and getGeomPosition().
IntVector NIVissimExtendedEdgePoint::myLanes [private] |
Definition at line 76 of file NIVissimExtendedEdgePoint.h.
Referenced by getLanes(), and recheckLanes().
SUMOReal NIVissimExtendedEdgePoint::myPosition [private] |
Definition at line 77 of file NIVissimExtendedEdgePoint.h.
Referenced by getGeomPosition(), and getPosition().
1.5.6