#include <ROLoader.h>

Definition at line 142 of file ROLoader.h.
Public Member Functions | |
| void | addEdgeWeight (const std::string &id, SUMOReal val, SUMOReal beg, SUMOReal end) const throw () |
| Adds an effort for a given edge and time period. | |
| EdgeFloatTimeLineRetriever_EdgeWeight (RONet &net) throw () | |
| Constructor. | |
| ~EdgeFloatTimeLineRetriever_EdgeWeight () throw () | |
| Destructor. | |
Private Attributes | |
| RONet & | myNet |
| The network edges shall be obtained from. | |
| ROLoader::EdgeFloatTimeLineRetriever_EdgeWeight::EdgeFloatTimeLineRetriever_EdgeWeight | ( | RONet & | net | ) | throw () [inline] |
| ROLoader::EdgeFloatTimeLineRetriever_EdgeWeight::~EdgeFloatTimeLineRetriever_EdgeWeight | ( | ) | throw () [inline] |
| void ROLoader::EdgeFloatTimeLineRetriever_EdgeWeight::addEdgeWeight | ( | const std::string & | id, | |
| SUMOReal | val, | |||
| SUMOReal | beg, | |||
| SUMOReal | end | |||
| ) | const throw () [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 83 of file ROLoader.cpp.
References ROEdge::addEffort(), MsgHandler::getErrorInstance(), and MsgHandler::inform().
00084 { 00085 ROEdge *e = myNet.getEdge(id); 00086 if (e!=0) { 00087 e->addEffort(val, beg, end); 00088 } else { 00089 if (id[0]!=':') { 00090 MsgHandler::getErrorInstance()->inform("Trying to set a weight for the unknown edge '" + id + "'."); 00091 } 00092 } 00093 }
1.5.6