#include <NIVissimNodeParticipatingEdge.h>
Definition at line 42 of file NIVissimNodeParticipatingEdge.h.
Public Member Functions | |
| SUMOReal | getFromPos () const |
| int | getID () const |
| SUMOReal | getToPos () const |
| NIVissimNodeParticipatingEdge (int edgeid, SUMOReal frompos, SUMOReal topos) | |
| bool | positionLiesWithin (SUMOReal pos) const |
| ~NIVissimNodeParticipatingEdge () | |
Private Attributes | |
| int | myEdgeID |
| SUMOReal | myFromPos |
| SUMOReal | myToPos |
| NIVissimNodeParticipatingEdge::NIVissimNodeParticipatingEdge | ( | int | edgeid, | |
| SUMOReal | frompos, | |||
| SUMOReal | topos | |||
| ) |
| NIVissimNodeParticipatingEdge::~NIVissimNodeParticipatingEdge | ( | ) |
| SUMOReal NIVissimNodeParticipatingEdge::getFromPos | ( | ) | const |
Definition at line 63 of file NIVissimNodeParticipatingEdge.cpp.
References myFromPos.
Referenced by NIVissimNodeDef_Edges::getEdgePosition(), and NIVissimNodeDef_Edges::searchAndSetConnections().
00063 { 00064 return myFromPos; 00065 }
| int NIVissimNodeParticipatingEdge::getID | ( | ) | const |
Definition at line 49 of file NIVissimNodeParticipatingEdge.cpp.
References myEdgeID.
Referenced by NIVissimNodeDef_Edges::getEdgePosition(), NIVissimNodeDef_Edges::lying_within_match::operator()(), NIVissimNodeDef_Edges::id_matches::operator()(), and NIVissimNodeDef_Edges::searchAndSetConnections().
00049 { 00050 return myEdgeID; 00051 }
| SUMOReal NIVissimNodeParticipatingEdge::getToPos | ( | ) | const |
Definition at line 69 of file NIVissimNodeParticipatingEdge.cpp.
References myToPos.
Referenced by NIVissimNodeDef_Edges::getEdgePosition(), and NIVissimNodeDef_Edges::searchAndSetConnections().
00069 { 00070 return myToPos; 00071 }
| bool NIVissimNodeParticipatingEdge::positionLiesWithin | ( | SUMOReal | pos | ) | const |
Definition at line 55 of file NIVissimNodeParticipatingEdge.cpp.
References myFromPos, and myToPos.
Referenced by NIVissimNodeDef_Edges::lying_within_match::operator()().
00055 { 00056 return 00057 (myFromPos<myToPos && myFromPos>=pos && myToPos<=pos) 00058 || 00059 (myFromPos>myToPos && myFromPos<=pos && myToPos>=pos); 00060 }
int NIVissimNodeParticipatingEdge::myEdgeID [private] |
SUMOReal NIVissimNodeParticipatingEdge::myFromPos [private] |
Definition at line 53 of file NIVissimNodeParticipatingEdge.h.
Referenced by getFromPos(), and positionLiesWithin().
SUMOReal NIVissimNodeParticipatingEdge::myToPos [private] |
Definition at line 53 of file NIVissimNodeParticipatingEdge.h.
Referenced by getToPos(), and positionLiesWithin().
1.5.6