#include <ROAbstractRouteDefLoader.h>

XML-reading loaders are not derived directly, but use the derived ROTypedXMLRoutesLoader class as their upper class.
Definition at line 55 of file ROAbstractRouteDefLoader.h.
Public Member Functions | |
| ROAbstractRouteDefLoader (RONet &net, SUMOTime begin, SUMOTime end) throw () | |
| Constructor. | |
| virtual | ~ROAbstractRouteDefLoader () throw () |
| Destructor. | |
Methods to be implemented | |
| virtual bool | ended () const =0 throw () |
| Returns the information whether no routes are available from this loader anymore. | |
| virtual SUMOTime | getLastReadTimeStep () const =0 throw () |
| Returns the time the current (last read) route starts at. | |
| virtual bool | readRoutesAtLeastUntil (SUMOTime time, bool skipping)=0 throw (ProcessError) |
| Adds routes from the file until the given time is reached. | |
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. | |
| ROAbstractRouteDefLoader::ROAbstractRouteDefLoader | ( | RONet & | net, | |
| SUMOTime | begin, | |||
| SUMOTime | end | |||
| ) | throw () |
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 47 of file ROAbstractRouteDefLoader.cpp.
| ROAbstractRouteDefLoader::~ROAbstractRouteDefLoader | ( | ) | throw () [virtual] |
| ROAbstractRouteDefLoader::ROAbstractRouteDefLoader | ( | const ROAbstractRouteDefLoader & | src | ) | [private] |
Invalidated copy constructor.
| virtual bool ROAbstractRouteDefLoader::ended | ( | ) | const throw () [pure virtual] |
Returns the information whether no routes are available from this loader anymore.
Implemented in ROTypedXMLRoutesLoader.
| virtual SUMOTime ROAbstractRouteDefLoader::getLastReadTimeStep | ( | ) | const throw () [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 | |||
| ) | throw (ProcessError) [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 107 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 110 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 104 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().
1.5.6