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. | |
EdgeFloatTimeLineRetriever_EdgeWeight (RONet &net) | |
Constructor. | |
~EdgeFloatTimeLineRetriever_EdgeWeight () | |
Destructor. | |
Private Attributes | |
RONet & | myNet |
The network edges shall be obtained from. |
Obtains edge weights from a weights handler and stores them within the edges.
Definition at line 149 of file ROLoader.h.
ROLoader::EdgeFloatTimeLineRetriever_EdgeWeight::EdgeFloatTimeLineRetriever_EdgeWeight | ( | RONet & | net | ) | [inline] |
Constructor.
Definition at line 152 of file ROLoader.h.
ROLoader::EdgeFloatTimeLineRetriever_EdgeWeight::~EdgeFloatTimeLineRetriever_EdgeWeight | ( | ) | [inline] |
Destructor.
Definition at line 155 of file ROLoader.h.
void ROLoader::EdgeFloatTimeLineRetriever_EdgeWeight::addEdgeWeight | ( | const std::string & | id, |
SUMOReal | val, | ||
SUMOReal | beg, | ||
SUMOReal | end | ||
) | const [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 92 of file ROLoader.cpp.
References ROEdge::addEffort(), and WRITE_ERROR.
The network edges shall be obtained from.
Definition at line 170 of file ROLoader.h.