47 std::map<const MSEdge*, ValueTimeLine<double> >::const_iterator i =
myTravelTimes.find(e);
62 std::map<const MSEdge*, ValueTimeLine<double> >::const_iterator i =
myEfforts.find(e);
77 double begin,
double end,
79 std::map<const MSEdge*, ValueTimeLine<double> >::iterator i =
myTravelTimes.find(e);
84 (*i).second.add(begin, end, value);
90 double begin,
double end,
92 std::map<const MSEdge*, ValueTimeLine<double> >::iterator i =
myEfforts.find(e);
97 (*i).second.add(begin, end, value);
103 std::map<const MSEdge*, ValueTimeLine<double> >::iterator i =
myTravelTimes.find(e);
112 std::map<const MSEdge*, ValueTimeLine<double> >::iterator i =
myEfforts.find(e);
MSEdgeWeightsStorage()
Constructor.
bool knowsEffort(const MSEdge *const e) const
Returns the information whether any effort is known for the given edge.
bool describesTime(double time) const
Returns whether a value for the given time is known.
bool knowsTravelTime(const MSEdge *const e) const
Returns the information whether any travel time is known for the given edge.
bool retrieveExistingEffort(const MSEdge *const e, const double t, double &value) const
Returns an effort for an edge and time if stored.
A road/street connecting two junctions.
void removeEffort(const MSEdge *const e)
Removes the effort information for an edge.
T getValue(double time) const
Returns the value for the given time.
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 removeTravelTime(const MSEdge *const e)
Removes the travel time information for an edge.
std::map< const MSEdge *, ValueTimeLine< double > > myEfforts
A map of edge->time->effort.
bool retrieveExistingTravelTime(const MSEdge *const e, const double t, double &value) const
Returns a travel time for an edge and time if stored.
~MSEdgeWeightsStorage()
Destructor.
std::map< const MSEdge *, ValueTimeLine< double > > myTravelTimes
A map of edge->time->travel time.
void addEffort(const MSEdge *const e, double begin, double end, double value)
Adds an effort information for an edge and a time span.