![]() |
SUMO - Simulation of Urban MObility
|
Obtains edge efforts from a weights handler and stores them within the edges. More...
#include <NLBuilder.h>
Public Member Functions | |
void | addEdgeWeight (const std::string &id, double val, double beg, double end) const |
Adds a travel time for a given edge and time period. More... | |
EdgeFloatTimeLineRetriever_EdgeTravelTime (MSNet &net) | |
Constructor. More... | |
~EdgeFloatTimeLineRetriever_EdgeTravelTime () | |
Destructor. More... | |
Private Attributes | |
MSNet & | myNet |
The network edges shall be obtained from. More... | |
Obtains edge efforts from a weights handler and stores them within the edges.
Obtains edge travel times from a weights handler and stores them within the edges.
Definition at line 180 of file NLBuilder.h.
|
inline |
Constructor.
Definition at line 183 of file NLBuilder.h.
|
inline |
Destructor.
Definition at line 186 of file NLBuilder.h.
References NLBuilder::EdgeFloatTimeLineRetriever_EdgeEffort::addEdgeWeight().
|
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 97 of file NLBuilder.cpp.
References MSEdgeWeightsStorage::addTravelTime(), MSEdge::dictionary(), MSNet::getWeightsStorage(), NLBuilder::EdgeFloatTimeLineRetriever_EdgeEffort::myNet, and WRITE_ERROR.
|
private |
The network edges shall be obtained from.
Definition at line 201 of file NLBuilder.h.