21 #ifndef MSEdgeWeightsStorage_h
22 #define MSEdgeWeightsStorage_h
MSEdgeWeightsStorage()
Constructor.
bool retrieveExistingTravelTime(const MSEdge *const e, const SUMOVehicle *const v, SUMOReal t, SUMOReal &value) const
Returns a travel time for an edge and time if stored.
std::map< MSEdge *, ValueTimeLine< SUMOReal > > myEfforts
A map of edge->time->effort.
bool retrieveExistingEffort(const MSEdge *const e, const SUMOVehicle *const v, SUMOReal t, SUMOReal &value) const
Returns an effort for an edge and time if stored.
A storage for edge travel times and efforts.
void addEffort(const MSEdge *const e, SUMOReal begin, SUMOReal end, SUMOReal value)
Adds an effort information for an edge and a time span.
void addTravelTime(const MSEdge *const e, SUMOReal begin, SUMOReal end, SUMOReal value)
Adds a travel time information for an edge and a time span.
A road/street connecting two junctions.
void removeEffort(const MSEdge *const e)
Removes the effort information for an edge.
Representation of a vehicle.
void removeTravelTime(const MSEdge *const e)
Removes the travel time information for an edge.
~MSEdgeWeightsStorage()
Destructor.
bool knowsEffort(const MSEdge *const e) const
Returns the information whether any effort is known for the given edge.
MSEdgeWeightsStorage & operator=(const MSEdgeWeightsStorage &)
Invalidated assignment operator.
bool knowsTravelTime(const MSEdge *const e) const
Returns the information whether any travel time is known for the given edge.
std::map< MSEdge *, ValueTimeLine< SUMOReal > > myTravelTimes
A map of edge->time->travel time.