SUMO - Simulation of Urban MObility
|
Obtains edge travel times from a weights handler and stores them within the edges. More...
#include <ROLoader.h>
Public Member Functions | |
void | addEdgeWeight (const std::string &id, SUMOReal val, SUMOReal beg, SUMOReal end) const |
Adds a travel time for a given edge and time period. | |
EdgeFloatTimeLineRetriever_EdgeTravelTime (RONet &net) | |
Constructor. | |
~EdgeFloatTimeLineRetriever_EdgeTravelTime () | |
Destructor. | |
Private Attributes | |
RONet & | myNet |
The network edges shall be obtained from. |
Obtains edge travel times from a weights handler and stores them within the edges.
Definition at line 180 of file ROLoader.h.
ROLoader::EdgeFloatTimeLineRetriever_EdgeTravelTime::EdgeFloatTimeLineRetriever_EdgeTravelTime | ( | RONet & | net | ) | [inline] |
Constructor.
Definition at line 183 of file ROLoader.h.
ROLoader::EdgeFloatTimeLineRetriever_EdgeTravelTime::~EdgeFloatTimeLineRetriever_EdgeTravelTime | ( | ) | [inline] |
Destructor.
Definition at line 186 of file ROLoader.h.
void ROLoader::EdgeFloatTimeLineRetriever_EdgeTravelTime::addEdgeWeight | ( | const std::string & | id, |
SUMOReal | val, | ||
SUMOReal | beg, | ||
SUMOReal | end | ||
) | const [virtual] |
Adds a travel time for a given edge and time period.
[in] | id | The id of the object to add a weight for |
[in] | val | The travel time |
[in] | beg | The begin of the interval the weight is valid for |
[in] | end | The end of the interval the weight is valid for |
Implements SAXWeightsHandler::EdgeFloatTimeLineRetriever.
Definition at line 75 of file ROLoader.cpp.
References ROEdge::addTravelTime(), RONet::getEdge(), myNet, and WRITE_ERROR.
The network edges shall be obtained from.
Definition at line 201 of file ROLoader.h.
Referenced by addEdgeWeight().