![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Finds a sequence of skips and stop alternatives to maximize priority of reached stops. More...
#include <MSStopOptimizer.h>
Data Structures | |
| struct | spnCompare |
| struct | StopPathNode |
| information used during skip/alternative optimization More... | |
Public Member Functions | |
| MSStopOptimizer (MSBaseVehicle *veh, SUMOAbstractRouter< MSEdge, SUMOVehicle > &router, SUMOTime t, SUMOTime maxDelay) | |
| Constructor. | |
| ConstMSEdgeVector | optimizeSkipped (const MSEdge *source, double sourcePos, std::vector< StopEdgeInfo > &stops, ConstMSEdgeVector edges) const |
| virtual | ~MSStopOptimizer () |
| Destructor. | |
Private Member Functions | |
| bool | reachableInTime (const MSEdge *from, double fromPos, const MSEdge *to, double toPos, SUMOTime arrival, ConstMSEdgeVector &into) const |
Private Attributes | |
| SUMOTime | myMaxDelay |
| SUMOAbstractRouter< MSEdge, SUMOVehicle > & | myRouter |
| SUMOTime | myT |
| MSBaseVehicle * | myVehicle |
Friends | |
| class | StopPathNode |
Finds a sequence of skips and stop alternatives to maximize priority of reached stops.
Definition at line 41 of file MSStopOptimizer.h.
|
inline |
Constructor.
| [in] | id | The id of the lane speed trigger |
| [in] | net | The net the lane speed trigger belongs to |
| [in] | destLanes | List of lanes affected by this speed trigger |
| [in] | file | Name of the file to read the speeds to set from |
Definition at line 53 of file MSStopOptimizer.h.
|
inlinevirtual |
Destructor.
Definition at line 61 of file MSStopOptimizer.h.
| ConstMSEdgeVector MSStopOptimizer::optimizeSkipped | ( | const MSEdge * | source, |
| double | sourcePos, | ||
| std::vector< StopEdgeInfo > & | stops, | ||
| ConstMSEdgeVector | edges | ||
| ) | const |
Definition at line 34 of file MSStopOptimizer.cpp.
References Named::getID(), MIN2(), myRouter, myT, myVehicle, MSBaseVehicle::StopEdgeInfo::priority, SUMOAbstractRouter< E, V >::recomputeCostsPos(), SIMSTEP, SIMTIME, MSBaseVehicle::StopEdgeInfo::skipped, and toString().
Referenced by MSBaseVehicle::reroute().
|
private |
Definition at line 211 of file MSStopOptimizer.cpp.
References SUMOAbstractRouter< E, V >::compute(), myMaxDelay, myRouter, myT, myVehicle, SUMOAbstractRouter< E, V >::recomputeCostsPos(), and TIME2STEPS.
Referenced by MSStopOptimizer::StopPathNode::getSuccessor().
|
friend |
Definition at line 43 of file MSStopOptimizer.h.
|
private |
Definition at line 71 of file MSStopOptimizer.h.
Referenced by reachableInTime().
|
private |
Definition at line 69 of file MSStopOptimizer.h.
Referenced by optimizeSkipped(), and reachableInTime().
|
private |
Definition at line 70 of file MSStopOptimizer.h.
Referenced by optimizeSkipped(), and reachableInTime().
|
private |
Definition at line 68 of file MSStopOptimizer.h.
Referenced by MSStopOptimizer::StopPathNode::getSuccessor(), optimizeSkipped(), and reachableInTime().