MSVehicleContainer::DepartFinder Class Reference


Detailed Description

Searches for the VehicleDepartureVector with the wished depart.

Definition at line 116 of file MSVehicleContainer.h.


Public Member Functions

 DepartFinder (SUMOTime time)
 constructor
bool operator() (const VehicleDepartureVector &e) const
 comparison operator

Private Attributes

SUMOTime myTime
 the searched departure time

Constructor & Destructor Documentation

MSVehicleContainer::DepartFinder::DepartFinder ( SUMOTime  time  )  [explicit]

constructor

Definition at line 57 of file MSVehicleContainer.cpp.

00058         : myTime(time) {}


Member Function Documentation

bool MSVehicleContainer::DepartFinder::operator() ( const VehicleDepartureVector e  )  const

comparison operator

Definition at line 63 of file MSVehicleContainer.cpp.

References DELTA_T, and myTime.

00063                                         {
00064     return myTime+DELTA_T > e.first && myTime<=e.first;
00065 }


Field Documentation

the searched departure time

Definition at line 126 of file MSVehicleContainer.h.

Referenced by operator()().


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

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