SUMO - Simulation of Urban MObility
|
Obtains edge weights 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 an effort for a given edge and time period. More... | |
EdgeFloatTimeLineRetriever_EdgeWeight (RONet &net) | |
Constructor. More... | |
~EdgeFloatTimeLineRetriever_EdgeWeight () | |
Destructor. More... | |
Private Attributes | |
RONet & | myNet |
The network edges shall be obtained from. More... | |
Obtains edge weights from a weights handler and stores them within the edges.
Definition at line 121 of file ROLoader.h.
|
inline |
Constructor.
Definition at line 124 of file ROLoader.h.
|
inline |
Destructor.
Definition at line 127 of file ROLoader.h.
|
virtual |
Adds an effort for a given edge and time period.
[in] | id | The id of the object to add a weight for |
[in] | val | The weight |
[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 91 of file ROLoader.cpp.
References ROEdge::addEffort(), OptionsCont::getOptions(), WRITE_ERROR, and WRITE_WARNING.
|
private |
The network edges shall be obtained from.
Definition at line 142 of file ROLoader.h.