NBOwnTLDef::edge_by_incoming_priority_sorter Class Reference

#include <NBOwnTLDef.h>


Detailed Description

Sorts edges by their priority within the node they end at.

Definition at line 188 of file NBOwnTLDef.h.


Public Member Functions

int operator() (const NBEdge *const e1, const NBEdge *const e2) const
 comparing operator

Member Function Documentation

int NBOwnTLDef::edge_by_incoming_priority_sorter::operator() ( const NBEdge *const   e1,
const NBEdge *const   e2 
) const [inline]

comparing operator

Parameters:
[in] e1 an edge
[in] e2 an edge

Definition at line 194 of file NBOwnTLDef.h.

References NBEdge::getID(), NBEdge::getJunctionPriority(), and NBEdge::getToNode().

00194                                                                                {
00195             if (e1->getJunctionPriority(e1->getToNode())!=e2->getJunctionPriority(e2->getToNode())) {
00196                 return e1->getJunctionPriority(e1->getToNode())> e2->getJunctionPriority(e2->getToNode());
00197             }
00198             return e1->getID() > e2->getID();
00199         }


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

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