SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NLBuilder::EdgeFloatTimeLineRetriever_EdgeEffort Class Reference

#include <NLBuilder.h>

Inheritance diagram for NLBuilder::EdgeFloatTimeLineRetriever_EdgeEffort:
SAXWeightsHandler::EdgeFloatTimeLineRetriever

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_EdgeEffort (MSNet &net)
 Constructor.
 ~EdgeFloatTimeLineRetriever_EdgeEffort ()
 Destructor.

Private Attributes

MSNetmyNet
 The network edges shall be obtained from.

Detailed Description

Definition at line 144 of file NLBuilder.h.

Constructor & Destructor Documentation

NLBuilder::EdgeFloatTimeLineRetriever_EdgeEffort::EdgeFloatTimeLineRetriever_EdgeEffort ( MSNet net)
inline

Constructor.

Definition at line 147 of file NLBuilder.h.

NLBuilder::EdgeFloatTimeLineRetriever_EdgeEffort::~EdgeFloatTimeLineRetriever_EdgeEffort ( )
inline

Destructor.

Definition at line 150 of file NLBuilder.h.

Member Function Documentation

void NLBuilder::EdgeFloatTimeLineRetriever_EdgeEffort::addEdgeWeight ( const std::string &  id,
SUMOReal  val,
SUMOReal  beg,
SUMOReal  end 
) const
virtual

Adds an effort for a given edge and time period.

Parameters
[in]idThe id of the object to add a weight for
[in]valThe effort
[in]begThe begin of the interval the weight is valid for
[in]endThe end of the interval the weight is valid for
See Also
SAXWeightsHandler::EdgeFloatTimeLineRetriever::addEdgeWeight

Implements SAXWeightsHandler::EdgeFloatTimeLineRetriever.

Definition at line 80 of file NLBuilder.cpp.

References MSEdgeWeightsStorage::addEffort(), MSEdge::dictionary(), MSNet::getWeightsStorage(), myNet, and WRITE_ERROR.

Field Documentation

MSNet& NLBuilder::EdgeFloatTimeLineRetriever_EdgeEffort::myNet
private

The network edges shall be obtained from.

Definition at line 165 of file NLBuilder.h.

Referenced by addEdgeWeight().


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