#include <NLBuilder.h>

Obtains edge travel times from a weights handler and stores them within the edges.
Definition at line 175 of file NLBuilder.h.
Public Member Functions | |
| void | addEdgeWeight (const std::string &id, SUMOReal val, SUMOReal beg, SUMOReal end) const throw () |
| Adds a travel time for a given edge and time period. | |
| EdgeFloatTimeLineRetriever_EdgeTravelTime (MSNet &net) throw () | |
| Constructor. | |
| ~EdgeFloatTimeLineRetriever_EdgeTravelTime () throw () | |
| Destructor. | |
Private Attributes | |
| MSNet & | myNet |
| The network edges shall be obtained from. | |
| NLBuilder::EdgeFloatTimeLineRetriever_EdgeTravelTime::EdgeFloatTimeLineRetriever_EdgeTravelTime | ( | MSNet & | net | ) | throw () [inline] |
| NLBuilder::EdgeFloatTimeLineRetriever_EdgeTravelTime::~EdgeFloatTimeLineRetriever_EdgeTravelTime | ( | ) | throw () [inline] |
| void NLBuilder::EdgeFloatTimeLineRetriever_EdgeTravelTime::addEdgeWeight | ( | const std::string & | id, | |
| SUMOReal | val, | |||
| SUMOReal | beg, | |||
| SUMOReal | end | |||
| ) | const throw () [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 91 of file NLBuilder.cpp.
References MSEdge::dictionary(), MsgHandler::getErrorInstance(), and MsgHandler::inform().
00092 { 00093 MSEdge *edge = MSEdge::dictionary(id); 00094 if (edge!=0) { 00095 myNet.getWeightsStorage().addTravelTime(edge, begTime, endTime, value); 00096 } else { 00097 MsgHandler::getErrorInstance()->inform("Trying to set the travel time for the unknown edge '" + id + "'."); 00098 } 00099 }
1.5.6