SUMO - Simulation of Urban MObility
|
#include <MSRouteLoaderControl.h>
Public Types | |
typedef std::vector < MSRouteLoader * > | LoaderVector |
definition of the loader vector | |
Public Member Functions | |
void | loadNext (SUMOTime step) |
loads the next routes | |
MSRouteLoaderControl (MSNet &net, SUMOTime inAdvanceStepNo, LoaderVector loader) | |
constructor | |
~MSRouteLoaderControl () | |
destructor | |
Private Attributes | |
bool | myAllLoaded |
SUMOTime | myInAdvanceStepNo |
the number of routes to read in forward | |
SUMOTime | myLastLoadTime |
the last time step new routes were loaded | |
bool | myLoadAll |
LoaderVector | myRouteLoaders |
the list of route loaders |
MSRouteLoaderControl This controls is initialised with the list of route loaders and uses them to load routes step wise. The parameter myInAdvanceStepNo holds the number of time steps to read the routes in forward. If it is 0 (default), all routes will be read at once.
Definition at line 58 of file MSRouteLoaderControl.h.
typedef std::vector<MSRouteLoader*> MSRouteLoaderControl::LoaderVector |
definition of the loader vector
Definition at line 61 of file MSRouteLoaderControl.h.
MSRouteLoaderControl::MSRouteLoaderControl | ( | MSNet & | net, |
SUMOTime | inAdvanceStepNo, | ||
LoaderVector | loader | ||
) |
constructor
Definition at line 44 of file MSRouteLoaderControl.cpp.
References myAllLoaded, myInAdvanceStepNo, myLastLoadTime, myLoadAll, and myRouteLoaders.
void MSRouteLoaderControl::loadNext | ( | SUMOTime | step | ) |
loads the next routes
Definition at line 70 of file MSRouteLoaderControl.cpp.
References myAllLoaded, myInAdvanceStepNo, myLoadAll, myRouteLoaders, and SUMOTime_MAX.
Referenced by MSNet::simulationStep().
bool MSRouteLoaderControl::myAllLoaded [private] |
Definition at line 86 of file MSRouteLoaderControl.h.
Referenced by loadNext(), and MSRouteLoaderControl().
the number of routes to read in forward
Definition at line 79 of file MSRouteLoaderControl.h.
Referenced by loadNext(), and MSRouteLoaderControl().
SUMOTime MSRouteLoaderControl::myLastLoadTime [private] |
the last time step new routes were loaded
Definition at line 76 of file MSRouteLoaderControl.h.
Referenced by MSRouteLoaderControl().
bool MSRouteLoaderControl::myLoadAll [private] |
information whether all routes shall be loaded and whether they were loaded
Definition at line 86 of file MSRouteLoaderControl.h.
Referenced by loadNext(), and MSRouteLoaderControl().
the list of route loaders
Definition at line 82 of file MSRouteLoaderControl.h.
Referenced by loadNext(), MSRouteLoaderControl(), and ~MSRouteLoaderControl().