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

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 57 of file MSRouteLoaderControl.h.

Member Typedef Documentation

definition of the loader vector

Definition at line 60 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 60 of file MSRouteLoaderControl.cpp.

References myRouteLoaders.

Member Function Documentation

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

Field Documentation

bool MSRouteLoaderControl::myAllLoaded
private

Definition at line 85 of file MSRouteLoaderControl.h.

Referenced by loadNext(), and MSRouteLoaderControl().

SUMOTime MSRouteLoaderControl::myInAdvanceStepNo
private

the number of routes to read in forward

Definition at line 78 of file MSRouteLoaderControl.h.

Referenced by loadNext(), and MSRouteLoaderControl().

SUMOTime MSRouteLoaderControl::myLastLoadTime
private

the last time step new routes were loaded

Definition at line 75 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 85 of file MSRouteLoaderControl.h.

Referenced by loadNext(), and MSRouteLoaderControl().

LoaderVector MSRouteLoaderControl::myRouteLoaders
private

the list of route loaders

Definition at line 81 of file MSRouteLoaderControl.h.

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


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