#include <NLBuilder.h>

Definition at line 144 of file NLBuilder.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_EdgeEffort (MSNet &net) throw () | |
| Constructor. | |
| ~EdgeFloatTimeLineRetriever_EdgeEffort () throw () | |
| Destructor. | |
Private Attributes | |
| MSNet & | myNet |
| The network edges shall be obtained from. | |
| NLBuilder::EdgeFloatTimeLineRetriever_EdgeEffort::EdgeFloatTimeLineRetriever_EdgeEffort | ( | MSNet & | net | ) | throw () [inline] |
| NLBuilder::EdgeFloatTimeLineRetriever_EdgeEffort::~EdgeFloatTimeLineRetriever_EdgeEffort | ( | ) | throw () [inline] |
| void NLBuilder::EdgeFloatTimeLineRetriever_EdgeEffort::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 effort |
| [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 76 of file NLBuilder.cpp.
References MSEdge::dictionary(), MsgHandler::getErrorInstance(), and MsgHandler::inform().
00077 { 00078 MSEdge *edge = MSEdge::dictionary(id); 00079 if (edge!=0) { 00080 myNet.getWeightsStorage().addEffort(edge, begTime, endTime, value); 00081 } else { 00082 MsgHandler::getErrorInstance()->inform("Trying to set the effort for the unknown edge '" + id + "'."); 00083 } 00084 }
1.5.6