SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SUMORouteLoaderControl Class Reference

#include <SUMORouteLoaderControl.h>

Public Member Functions

void add (SUMORouteLoader *loader)
 add another loader
SUMOTime getFirstLoadTime () const
 returns the timestamp of the first loaded vehicle or flow
void loadNext (SUMOTime step)
 loads the next routes
 SUMORouteLoaderControl (SUMOTime inAdvanceStepNo)
 constructor
 ~SUMORouteLoaderControl ()
 destructor

Private Attributes

bool myAllLoaded
SUMOTime myFirstLoadTime
 the first time step for which vehicles were loaded
SUMOTime myInAdvanceStepNo
 the number of routes to read in forward
bool myLoadAll
std::vector< SUMORouteLoader * > myRouteLoaders
 the list of route loaders

Detailed Description

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 56 of file SUMORouteLoaderControl.h.

Constructor & Destructor Documentation

SUMORouteLoaderControl::SUMORouteLoaderControl ( SUMOTime  inAdvanceStepNo)

constructor

Definition at line 45 of file SUMORouteLoaderControl.cpp.

SUMORouteLoaderControl::~SUMORouteLoaderControl ( )

destructor

Definition at line 54 of file SUMORouteLoaderControl.cpp.

References myRouteLoaders.

Member Function Documentation

void SUMORouteLoaderControl::add ( SUMORouteLoader loader)

add another loader

Definition at line 63 of file SUMORouteLoaderControl.cpp.

References myRouteLoaders.

Referenced by NLBuilder::buildRouteLoaderControl(), and ROLoader::openTypedRoutes().

SUMOTime SUMORouteLoaderControl::getFirstLoadTime ( ) const
inline

returns the timestamp of the first loaded vehicle or flow

Definition at line 71 of file SUMORouteLoaderControl.h.

References myFirstLoadTime.

Referenced by ROLoader::openRoutes(), and ROLoader::processRoutes().

void SUMORouteLoaderControl::loadNext ( SUMOTime  step)

Field Documentation

bool SUMORouteLoaderControl::myAllLoaded
private

Definition at line 87 of file SUMORouteLoaderControl.h.

Referenced by loadNext().

SUMOTime SUMORouteLoaderControl::myFirstLoadTime
private

the first time step for which vehicles were loaded

Definition at line 77 of file SUMORouteLoaderControl.h.

Referenced by getFirstLoadTime(), and loadNext().

SUMOTime SUMORouteLoaderControl::myInAdvanceStepNo
private

the number of routes to read in forward

Definition at line 80 of file SUMORouteLoaderControl.h.

Referenced by loadNext().

bool SUMORouteLoaderControl::myLoadAll
private

information whether all routes shall be loaded and whether they were loaded

Definition at line 87 of file SUMORouteLoaderControl.h.

Referenced by loadNext().

std::vector<SUMORouteLoader*> SUMORouteLoaderControl::myRouteLoaders
private

the list of route loaders

Definition at line 83 of file SUMORouteLoaderControl.h.

Referenced by add(), loadNext(), and ~SUMORouteLoaderControl().


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