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

#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

Detailed Description

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.

Member Typedef Documentation

definition of the loader vector

Definition at line 61 of file MSRouteLoaderControl.h.

Constructor & Destructor Documentation

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 ( )

destructor

Definition at line 61 of file MSRouteLoaderControl.cpp.

References myRouteLoaders.

Member Function Documentation

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().

Field Documentation

bool MSRouteLoaderControl::myAllLoaded
private

Definition at line 86 of file MSRouteLoaderControl.h.

Referenced by loadNext(), and MSRouteLoaderControl().

SUMOTime MSRouteLoaderControl::myInAdvanceStepNo
private

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().

LoaderVector MSRouteLoaderControl::myRouteLoaders
private

the list of route loaders

Definition at line 82 of file MSRouteLoaderControl.h.

Referenced by loadNext(), MSRouteLoaderControl(), and ~MSRouteLoaderControl().


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