40 std::map<const MSEdge*, ValueTimeLine<double> >::const_iterator i =
myTravelTimes.find(e);
55 std::map<const MSEdge*, ValueTimeLine<double> >::const_iterator i =
myEfforts.find(e);
70 double begin,
double end,
72 std::map<const MSEdge*, ValueTimeLine<double> >::iterator i =
myTravelTimes.find(e);
77 (*i).second.add(begin, end, value);
83 double begin,
double end,
85 std::map<const MSEdge*, ValueTimeLine<double> >::iterator i =
myEfforts.find(e);
90 (*i).second.add(begin, end, value);
96 std::map<const MSEdge*, ValueTimeLine<double> >::iterator i =
myTravelTimes.find(e);
105 std::map<const MSEdge*, ValueTimeLine<double> >::iterator i =
myEfforts.find(e);
A road/street connecting two junctions.
bool retrieveExistingTravelTime(const MSEdge *const e, const double t, double &value) const
Returns a travel time for an edge and time if stored.
std::map< const MSEdge *, ValueTimeLine< double > > myTravelTimes
A map of edge->time->travel time.
bool knowsTravelTime(const MSEdge *const e) const
Returns the information whether any travel time is known for the given edge.
void addTravelTime(const MSEdge *const e, double begin, double end, double value)
Adds a travel time information for an edge and a time span.
void removeEffort(const MSEdge *const e)
Removes the effort information for an edge.
bool knowsEffort(const MSEdge *const e) const
Returns the information whether any effort is known for the given edge.
MSEdgeWeightsStorage()
Constructor.
void addEffort(const MSEdge *const e, double begin, double end, double value)
Adds an effort information for an edge and a time span.
~MSEdgeWeightsStorage()
Destructor.
std::map< const MSEdge *, ValueTimeLine< double > > myEfforts
A map of edge->time->effort.
bool retrieveExistingEffort(const MSEdge *const e, const double t, double &value) const
Returns an effort for an edge and time if stored.
void removeTravelTime(const MSEdge *const e)
Removes the travel time information for an edge.
bool describesTime(double time) const
Returns whether a value for the given time is known.
T getValue(double time) const
Returns the value for the given time.