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

Obtains edge efforts from a weights handler and stores them within the edges. More...

#include <NLBuilder.h>

Inheritance diagram for NLBuilder::EdgeFloatTimeLineRetriever_EdgeTravelTime:
SAXWeightsHandler::EdgeFloatTimeLineRetriever

Public Member Functions

void addEdgeWeight (const std::string &id, SUMOReal val, SUMOReal beg, SUMOReal end) const
 Adds a travel time for a given edge and time period.
 EdgeFloatTimeLineRetriever_EdgeTravelTime (MSNet &net)
 Constructor.
 ~EdgeFloatTimeLineRetriever_EdgeTravelTime ()
 Destructor.

Private Attributes

MSNetmyNet
 The network edges shall be obtained from.

Detailed Description

Obtains edge efforts from a weights handler and stores them within the edges.

Obtains edge travel times from a weights handler and stores them within the edges.

See also:
SAXWeightsHandler::EdgeFloatTimeLineRetriever

Definition at line 175 of file NLBuilder.h.


Constructor & Destructor Documentation

NLBuilder::EdgeFloatTimeLineRetriever_EdgeTravelTime::EdgeFloatTimeLineRetriever_EdgeTravelTime ( MSNet net)
inline

Constructor.

Definition at line 178 of file NLBuilder.h.

NLBuilder::EdgeFloatTimeLineRetriever_EdgeTravelTime::~EdgeFloatTimeLineRetriever_EdgeTravelTime ( )
inline

Destructor.

Definition at line 181 of file NLBuilder.h.


Member Function Documentation

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

Adds a travel time for a given edge and time period.

Parameters:
[in]idThe id of the object to add a weight for
[in]valThe travel time
[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 93 of file NLBuilder.cpp.

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


Field Documentation

MSNet& NLBuilder::EdgeFloatTimeLineRetriever_EdgeTravelTime::myNet
private

The network edges shall be obtained from.

Definition at line 196 of file NLBuilder.h.


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