MSLinkContHelper Class Reference

#include <MSLinkCont.h>


Detailed Description

Some helping functions for dealing with links.

Definition at line 57 of file MSLinkCont.h.


Static Public Member Functions

static MSLinkgetConnectingLink (const MSLane &from, const MSLane &to)
 Returns the link connecting both lanes Both lanes have to be non-internal; 0 may be returned if no connection exists.

Member Function Documentation

MSLink * MSLinkContHelper::getConnectingLink ( const MSLane from,
const MSLane to 
) [static]

Returns the link connecting both lanes Both lanes have to be non-internal; 0 may be returned if no connection exists.

Definition at line 59 of file MSLinkCont.cpp.

References MSLink::getLane(), and MSLane::getLinkCont().

Referenced by NLDetectorBuilder::buildE2Detector().

00059                                                                         {
00060     const MSLinkCont &lc = from.getLinkCont();
00061     for (MSLinkCont::const_iterator j=lc.begin(); j!=lc.end(); j++) {
00062         MSLink *link = *j;
00063         if (link->getLane()==&to) {
00064             return link;
00065         }
00066     }
00067     return 0;
00068 }


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

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