![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <SUMORouteLoaderControl.h>
Public Member Functions | |
| void | add (SUMORouteLoader *loader) |
| add another loader | |
| SUMORouteLoader * | getFirstLoader () const |
| return a route loader | |
| SUMOTime | getFirstLoadTime () const |
| returns the timestamp of the first loaded vehicle or flow | |
| bool | haveAllLoaded () const |
| returns whether loading is completed | |
| void | loadNext (SUMOTime step) |
| loads the next routes up to and including the given time step | |
| SUMORouteLoaderControl (SUMOTime inAdvanceStepNo) | |
| constructor | |
| ~SUMORouteLoaderControl () | |
| destructor | |
Private Member Functions | |
| SUMORouteLoaderControl & | operator= (const SUMORouteLoaderControl &src) |
| Invalidated assignment operator. | |
| SUMORouteLoaderControl (const SUMORouteLoaderControl &src) | |
| Invalidated copy constructor. | |
Private Attributes | |
| bool | myAllLoaded |
| SUMOTime | myCurrentLoadTime |
| the time step up to which vehicles were loaded | |
| SUMOTime | myFirstLoadTime |
| the first time step for which vehicles were loaded | |
| const SUMOTime | myInAdvanceStepNo |
| the number of routes to read in forward | |
| bool | myLoadAll |
| information whether all routes shall be loaded and whether they were loaded | |
| std::vector< SUMORouteLoader * > | myRouteLoaders |
| the list of route loaders | |
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 46 of file SUMORouteLoaderControl.h.
| SUMORouteLoaderControl::SUMORouteLoaderControl | ( | SUMOTime | inAdvanceStepNo | ) |
constructor
Definition at line 33 of file SUMORouteLoaderControl.cpp.
References myAllLoaded, myCurrentLoadTime, myFirstLoadTime, myInAdvanceStepNo, myLoadAll, myRouteLoaders, and SUMOTime_MAX.
Referenced by operator=(), and SUMORouteLoaderControl().
| SUMORouteLoaderControl::~SUMORouteLoaderControl | ( | ) |
|
private |
Invalidated copy constructor.
References SUMORouteLoaderControl().
| void SUMORouteLoaderControl::add | ( | SUMORouteLoader * | loader | ) |
add another loader
Definition at line 52 of file SUMORouteLoaderControl.cpp.
References myRouteLoaders.
Referenced by NLBuilder::buildRouteLoaderControl().
| SUMORouteLoader * SUMORouteLoaderControl::getFirstLoader | ( | ) | const |
return a route loader
Definition at line 86 of file SUMORouteLoaderControl.cpp.
References myRouteLoaders.
|
inline |
returns the timestamp of the first loaded vehicle or flow
Definition at line 61 of file SUMORouteLoaderControl.h.
References myFirstLoadTime.
|
inline |
returns whether loading is completed
Definition at line 66 of file SUMORouteLoaderControl.h.
References myAllLoaded.
| void SUMORouteLoaderControl::loadNext | ( | SUMOTime | step | ) |
loads the next routes up to and including the given time step
Definition at line 58 of file SUMORouteLoaderControl.cpp.
References MAX2(), MIN2(), myAllLoaded, myCurrentLoadTime, myFirstLoadTime, myInAdvanceStepNo, myLoadAll, myRouteLoaders, and SUMOTime_MAX.
|
private |
Invalidated assignment operator.
References SUMORouteLoaderControl().
|
private |
Definition at line 87 of file SUMORouteLoaderControl.h.
Referenced by haveAllLoaded(), loadNext(), and SUMORouteLoaderControl().
|
private |
the time step up to which vehicles were loaded
Definition at line 78 of file SUMORouteLoaderControl.h.
Referenced by loadNext(), and SUMORouteLoaderControl().
|
private |
the first time step for which vehicles were loaded
Definition at line 75 of file SUMORouteLoaderControl.h.
Referenced by getFirstLoadTime(), loadNext(), and SUMORouteLoaderControl().
|
private |
the number of routes to read in forward
Definition at line 81 of file SUMORouteLoaderControl.h.
Referenced by loadNext(), and SUMORouteLoaderControl().
|
private |
information whether all routes shall be loaded and whether they were loaded
Definition at line 87 of file SUMORouteLoaderControl.h.
Referenced by loadNext(), and SUMORouteLoaderControl().
|
private |
the list of route loaders
Definition at line 84 of file SUMORouteLoaderControl.h.
Referenced by add(), getFirstLoader(), loadNext(), SUMORouteLoaderControl(), and ~SUMORouteLoaderControl().