SUMO - Simulation of Urban MObility
|
#include <SUMORouteLoaderControl.h>
Public Member Functions | |
void | add (SUMORouteLoader *loader) |
add another loader More... | |
SUMOTime | getFirstLoadTime () const |
returns the timestamp of the first loaded vehicle or flow More... | |
bool | haveAllLoaded () const |
returns whether loading is completed More... | |
void | loadNext (SUMOTime step) |
loads the next routes up to and including the given time step More... | |
SUMORouteLoaderControl (SUMOTime inAdvanceStepNo) | |
constructor More... | |
~SUMORouteLoaderControl () | |
destructor More... | |
Private Attributes | |
bool | myAllLoaded |
SUMOTime | myCurrentLoadTime |
the time step up to which vehicles were loaded More... | |
SUMOTime | myFirstLoadTime |
the first time step for which vehicles were loaded More... | |
SUMOTime | myInAdvanceStepNo |
the number of routes to read in forward More... | |
bool | myLoadAll |
std::vector< SUMORouteLoader * > | myRouteLoaders |
the list of route loaders More... | |
SUMORouteLoaderControl 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 SUMORouteLoaderControl.h.
SUMORouteLoaderControl::SUMORouteLoaderControl | ( | SUMOTime | inAdvanceStepNo | ) |
constructor
Definition at line 46 of file SUMORouteLoaderControl.cpp.
SUMORouteLoaderControl::~SUMORouteLoaderControl | ( | ) |
void SUMORouteLoaderControl::add | ( | SUMORouteLoader * | loader | ) |
add another loader
Definition at line 65 of file SUMORouteLoaderControl.cpp.
References myRouteLoaders.
Referenced by NLBuilder::buildRouteLoaderControl(), and ROLoader::openTypedRoutes().
|
inline |
returns the timestamp of the first loaded vehicle or flow
Definition at line 72 of file SUMORouteLoaderControl.h.
References myFirstLoadTime.
Referenced by ROLoader::openRoutes(), and ROLoader::processRoutes().
|
inline |
returns whether loading is completed
Definition at line 77 of file SUMORouteLoaderControl.h.
References myAllLoaded.
Referenced by ROLoader::processRoutes().
void SUMORouteLoaderControl::loadNext | ( | SUMOTime | step | ) |
loads the next routes up to and including the given time step
Definition at line 71 of file SUMORouteLoaderControl.cpp.
References MAX2(), MIN2(), myAllLoaded, myCurrentLoadTime, myFirstLoadTime, myInAdvanceStepNo, myLoadAll, myRouteLoaders, and SUMOTime_MAX.
Referenced by MSNet::loadRoutes(), ROLoader::openRoutes(), ROLoader::processAllRoutesWithBulkRouter(), and ROLoader::processRoutes().
|
private |
Definition at line 96 of file SUMORouteLoaderControl.h.
Referenced by haveAllLoaded(), and loadNext().
|
private |
the time step up to which vehicles were loaded
Definition at line 86 of file SUMORouteLoaderControl.h.
Referenced by loadNext().
|
private |
the first time step for which vehicles were loaded
Definition at line 83 of file SUMORouteLoaderControl.h.
Referenced by getFirstLoadTime(), and loadNext().
|
private |
the number of routes to read in forward
Definition at line 89 of file SUMORouteLoaderControl.h.
Referenced by loadNext().
|
private |
information whether all routes shall be loaded and whether they were loaded
Definition at line 96 of file SUMORouteLoaderControl.h.
Referenced by loadNext().
|
private |
the list of route loaders
Definition at line 92 of file SUMORouteLoaderControl.h.
Referenced by add(), loadNext(), and ~SUMORouteLoaderControl().