|
SUMO - Simulation of Urban MObility
|
The abstract base class for loading routes or route definitions. More...
#include <ROAbstractRouteDefLoader.h>
Public Member Functions | |
| ROAbstractRouteDefLoader (RONet &net, SUMOTime begin, SUMOTime end) | |
| Constructor. | |
| virtual | ~ROAbstractRouteDefLoader () |
| Destructor. | |
Methods to be implemented | |
| virtual bool | readRoutesAtLeastUntil (SUMOTime time, bool skipping)=0 |
| Adds routes from the file until the given time is reached. | |
| virtual SUMOTime | getLastReadTimeStep () const =0 |
| Returns the time the current (last read) route starts at. | |
| virtual bool | ended () const =0 |
| Returns the information whether no routes are available from this loader anymore. | |
Protected Attributes | |
| SUMOTime | myBegin |
| The time for which the first route shall be loaded. | |
| SUMOTime | myEnd |
| The time for which the first route shall be loaded. | |
| RONet & | myNet |
| The network to add routes to. | |
Private Member Functions | |
| ROAbstractRouteDefLoader & | operator= (const ROAbstractRouteDefLoader &src) |
| Invalidated assignment operator. | |
| ROAbstractRouteDefLoader (const ROAbstractRouteDefLoader &src) | |
| Invalidated copy constructor. | |
The abstract base class for loading routes or route definitions.
XML-reading loaders are not derived directly, but use the derived ROTypedXMLRoutesLoader class as their upper class.
Definition at line 57 of file ROAbstractRouteDefLoader.h.
Constructor.
| [in] | net | The network to add loaded route definitions to |
| [in] | begin | Vehicles departing before this time shall not be loaded |
| [in] | end | Vehicles departing after this time shall not be loaded |
Definition at line 49 of file ROAbstractRouteDefLoader.cpp.
| ROAbstractRouteDefLoader::~ROAbstractRouteDefLoader | ( | ) | [virtual] |
Destructor.
Definition at line 54 of file ROAbstractRouteDefLoader.cpp.
| ROAbstractRouteDefLoader::ROAbstractRouteDefLoader | ( | const ROAbstractRouteDefLoader & | src | ) | [private] |
Invalidated copy constructor.
| virtual bool ROAbstractRouteDefLoader::ended | ( | ) | const [pure virtual] |
Returns the information whether no routes are available from this loader anymore.
Implemented in ROTypedXMLRoutesLoader.
| virtual SUMOTime ROAbstractRouteDefLoader::getLastReadTimeStep | ( | ) | const [pure virtual] |
Returns the time the current (last read) route starts at.
Implemented in RORDLoader_SUMOBase, and RORDLoader_TripDefs.
Referenced by ROTypedXMLRoutesLoader::readRoutesAtLeastUntil().
| ROAbstractRouteDefLoader& ROAbstractRouteDefLoader::operator= | ( | const ROAbstractRouteDefLoader & | src | ) | [private] |
Invalidated assignment operator.
| virtual bool ROAbstractRouteDefLoader::readRoutesAtLeastUntil | ( | SUMOTime | time, |
| bool | skipping | ||
| ) | [pure virtual] |
Adds routes from the file until the given time is reached.
If any error occurs that may not be handled (false input, f.e.), a ProcessError which contains the error message should be thrown.
| [in] | time | The time until which route definitions shall be loaded |
| [in] | skipping | Whether routes shall not be added |
| ProcessError | If a major error occured |
Implemented in RORDGenerator_ODAmounts, and ROTypedXMLRoutesLoader.
SUMOTime ROAbstractRouteDefLoader::myBegin [protected] |
The time for which the first route shall be loaded.
Definition at line 109 of file ROAbstractRouteDefLoader.h.
Referenced by RORDLoader_SUMOBase::closeVehicle(), RORDGenerator_ODAmounts::myEndFlowAmountDef(), RORDGenerator_ODAmounts::readRoutesAtLeastUntil(), and RORDGenerator_ODAmounts::RORDGenerator_ODAmounts().
SUMOTime ROAbstractRouteDefLoader::myEnd [protected] |
The time for which the first route shall be loaded.
Definition at line 112 of file ROAbstractRouteDefLoader.h.
Referenced by RORDGenerator_ODAmounts::buildForTimeStep(), RORDLoader_SUMOBase::closeVehicle(), and RORDLoader_TripDefs::myEndElement().
RONet& ROAbstractRouteDefLoader::myNet [protected] |
The network to add routes to.
Definition at line 106 of file ROAbstractRouteDefLoader.h.
Referenced by RORDGenerator_ODAmounts::buildForTimeStep(), RORDLoader_SUMOBase::closeVehicle(), RORDLoader_TripDefs::getEdge(), RORDLoader_SUMOBase::myCharacters(), RORDLoader_TripDefs::myEndElement(), RORDLoader_SUMOBase::myEndElement(), and RORDGenerator_ODAmounts::myEndFlowAmountDef().