SUMO - Simulation of Urban MObility
|
#include <MSRouteLoaderControl.h>
Public Types | |
typedef std::vector < MSRouteLoader * > | LoaderVector |
definition of the loader vector More... | |
Public Member Functions | |
void | loadNext (SUMOTime step) |
loads the next routes More... | |
MSRouteLoaderControl (MSNet &net, SUMOTime inAdvanceStepNo, LoaderVector loader) | |
constructor More... | |
~MSRouteLoaderControl () | |
destructor More... | |
Private Attributes | |
bool | myAllLoaded |
SUMOTime | myInAdvanceStepNo |
the number of routes to read in forward More... | |
SUMOTime | myLastLoadTime |
the last time step new routes were loaded More... | |
bool | myLoadAll |
LoaderVector | myRouteLoaders |
the list of route loaders More... | |
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 57 of file MSRouteLoaderControl.h.
typedef std::vector<MSRouteLoader*> MSRouteLoaderControl::LoaderVector |
definition of the loader vector
Definition at line 60 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.
MSRouteLoaderControl::~MSRouteLoaderControl | ( | ) |
void MSRouteLoaderControl::loadNext | ( | SUMOTime | step | ) |
loads the next routes
Definition at line 69 of file MSRouteLoaderControl.cpp.
References myAllLoaded, myInAdvanceStepNo, myLoadAll, myRouteLoaders, and SUMOTime_MAX.
Referenced by MSNet::simulationStep().
|
private |
Definition at line 85 of file MSRouteLoaderControl.h.
Referenced by loadNext(), and MSRouteLoaderControl().
|
private |
the number of routes to read in forward
Definition at line 78 of file MSRouteLoaderControl.h.
Referenced by loadNext(), and MSRouteLoaderControl().
|
private |
the last time step new routes were loaded
Definition at line 75 of file MSRouteLoaderControl.h.
Referenced by MSRouteLoaderControl().
|
private |
information whether all routes shall be loaded and whether they were loaded
Definition at line 85 of file MSRouteLoaderControl.h.
Referenced by loadNext(), and MSRouteLoaderControl().
|
private |
the list of route loaders
Definition at line 81 of file MSRouteLoaderControl.h.
Referenced by loadNext(), MSRouteLoaderControl(), and ~MSRouteLoaderControl().