Eclipse SUMO - Simulation of Urban MObility
ROLoader::EdgeFloatTimeLineRetriever_EdgeTravelTime Class Reference

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

#include <ROLoader.h>

Inheritance diagram for ROLoader::EdgeFloatTimeLineRetriever_EdgeTravelTime:
Collaboration diagram for ROLoader::EdgeFloatTimeLineRetriever_EdgeTravelTime:

Public Member Functions

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

Private Attributes

RONetmyNet
 The network edges shall be obtained from. More...
 

Detailed Description

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

See also
SAXWeightsHandler::EdgeFloatTimeLineRetriever

Definition at line 145 of file ROLoader.h.

Constructor & Destructor Documentation

◆ EdgeFloatTimeLineRetriever_EdgeTravelTime()

ROLoader::EdgeFloatTimeLineRetriever_EdgeTravelTime::EdgeFloatTimeLineRetriever_EdgeTravelTime ( RONet net)
inline

Constructor.

Definition at line 148 of file ROLoader.h.

◆ ~EdgeFloatTimeLineRetriever_EdgeTravelTime()

ROLoader::EdgeFloatTimeLineRetriever_EdgeTravelTime::~EdgeFloatTimeLineRetriever_EdgeTravelTime ( )
inline

Destructor.

Definition at line 151 of file ROLoader.h.

Member Function Documentation

◆ addEdgeWeight()

void ROLoader::EdgeFloatTimeLineRetriever_EdgeTravelTime::addEdgeWeight ( const std::string &  id,
double  val,
double  beg,
double  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 60 of file ROLoader.cpp.

References ROEdge::addTravelTime(), RONet::getEdge(), OptionsCont::getOptions(), myNet, WRITE_ERROR, and WRITE_WARNING.

Field Documentation

◆ myNet

RONet& ROLoader::EdgeFloatTimeLineRetriever_EdgeTravelTime::myNet
private

The network edges shall be obtained from.

Definition at line 166 of file ROLoader.h.

Referenced by addEdgeWeight().


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