NIVissimNodeParticipatingEdge Class Reference

#include <NIVissimNodeParticipatingEdge.h>


Detailed Description

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

Constructor & Destructor Documentation

NIVissimNodeParticipatingEdge::NIVissimNodeParticipatingEdge ( int  edgeid,
SUMOReal  frompos,
SUMOReal  topos 
)

Definition at line 41 of file NIVissimNodeParticipatingEdge.cpp.

00043         : myEdgeID(edgeid), myFromPos(frompos), myToPos(topos) {}

NIVissimNodeParticipatingEdge::~NIVissimNodeParticipatingEdge (  ) 

Definition at line 45 of file NIVissimNodeParticipatingEdge.cpp.

00045 {}


Member Function Documentation

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

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 }


Field Documentation

Definition at line 52 of file NIVissimNodeParticipatingEdge.h.

Referenced by getID().

Definition at line 53 of file NIVissimNodeParticipatingEdge.h.

Referenced by getFromPos(), and positionLiesWithin().

Definition at line 53 of file NIVissimNodeParticipatingEdge.h.

Referenced by getToPos(), and positionLiesWithin().


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

Generated on Wed May 5 00:06:54 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6