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:
[legend]
Collaboration diagram for ROLoader::EdgeFloatTimeLineRetriever_EdgeTravelTime:
[legend]

Public Member Functions

virtual void addEdgeRelWeight (const std::string &from, const std::string &to, double val, double beg, double end) const
 
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...
 
virtual void addTazRelWeight (const std::string intervalID, const std::string &from, const std::string &to, double val, double beg, double end)
 
 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 142 of file ROLoader.h.

Constructor & Destructor Documentation

◆ EdgeFloatTimeLineRetriever_EdgeTravelTime()

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

Constructor.

Definition at line 145 of file ROLoader.h.

◆ ~EdgeFloatTimeLineRetriever_EdgeTravelTime()

ROLoader::EdgeFloatTimeLineRetriever_EdgeTravelTime::~EdgeFloatTimeLineRetriever_EdgeTravelTime ( )
inline

Destructor.

Definition at line 148 of file ROLoader.h.

Member Function Documentation

◆ addEdgeRelWeight()

virtual void SAXWeightsHandler::EdgeFloatTimeLineRetriever::addEdgeRelWeight ( const std::string &  from,
const std::string &  to,
double  val,
double  beg,
double  end 
) const
inlinevirtualinherited

Reimplemented in GUINet::EdgeFloatTimeLineRetriever_GUI.

Definition at line 87 of file SAXWeightsHandler.h.

References UNUSED_PARAMETER.

◆ 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

Reimplemented from SAXWeightsHandler::EdgeFloatTimeLineRetriever.

Definition at line 54 of file ROLoader.cpp.

References ROEdge::addTravelTime(), RONet::getEdge(), OptionsCont::getOptions(), myNet, TL, WRITE_ERRORF, and WRITE_WARNINGF.

◆ addTazRelWeight()

virtual void SAXWeightsHandler::EdgeFloatTimeLineRetriever::addTazRelWeight ( const std::string  intervalID,
const std::string &  from,
const std::string &  to,
double  val,
double  beg,
double  end 
)
inlinevirtualinherited
Note
: note sure why the other functions are const

Reimplemented in ODMatrix.

Definition at line 97 of file SAXWeightsHandler.h.

References UNUSED_PARAMETER.

Field Documentation

◆ myNet

RONet& ROLoader::EdgeFloatTimeLineRetriever_EdgeTravelTime::myNet
private

The network edges shall be obtained from.

Definition at line 163 of file ROLoader.h.

Referenced by addEdgeWeight().


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