NLBuilder::EdgeFloatTimeLineRetriever_EdgeEffort Class Reference

#include <NLBuilder.h>

Inheritance diagram for NLBuilder::EdgeFloatTimeLineRetriever_EdgeEffort:

SAXWeightsHandler::EdgeFloatTimeLineRetriever

Detailed Description

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

MSNetmyNet
 The network edges shall be obtained from.

Constructor & Destructor Documentation

NLBuilder::EdgeFloatTimeLineRetriever_EdgeEffort::EdgeFloatTimeLineRetriever_EdgeEffort ( MSNet net  )  throw () [inline]

Constructor.

Definition at line 147 of file NLBuilder.h.

00147 : myNet(net) {}

NLBuilder::EdgeFloatTimeLineRetriever_EdgeEffort::~EdgeFloatTimeLineRetriever_EdgeEffort (  )  throw () [inline]

Destructor.

Definition at line 150 of file NLBuilder.h.

00150 { }


Member Function Documentation

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.

Parameters:
[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
See also:
SAXWeightsHandler::EdgeFloatTimeLineRetriever::addEdgeWeight

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 }


Field Documentation

The network edges shall be obtained from.

Definition at line 165 of file NLBuilder.h.


The documentation for this class was generated from the following files:

Generated on Wed May 5 00:06:56 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6