72 unsigned int references,
const RGBColor*
const c,
73 const std::vector<SUMOVehicleParameter::Stop>& stops);
85 unsigned size()
const;
108 bool containsAnyOf(
const std::vector<MSEdge*>& edgelist)
const;
142 const std::vector<SUMOVehicleParameter::Stop>&
getStops()
const;
189 static void insertIDs(std::vector<std::string>& into);
215 std::vector<SUMOVehicleParameter::Stop>
myStops;
219 typedef std::map<std::string, const MSRoute*>
RouteDict;
225 typedef std::map<std::string, RandomDistributor<const MSRoute*>*>
RouteDistDict;
std::map< std::string, const MSRoute * > RouteDict
Definition of the dictionary container.
int writeEdgeIDs(OutputDevice &os, const MSEdge *const from, const MSEdge *const upTo=0) const
Output the edge ids up to but not including the id of the given edge.
MSRoute & operator=(const MSRoute &s)
MSEdgeVector::const_iterator MSRouteIterator
const MSEdge * getLastEdge() const
returns the destination edge
const MSEdgeVector & getEdges() const
static RandomDistributor< const MSRoute * > * distDictionary(const std::string &id)
Returns the named route distribution.
SUMOReal getDistanceBetween(SUMOReal fromPos, SUMOReal toPos, const MSEdge *fromEdge, const MSEdge *toEdge) const
Compute the distance between 2 given edges on this route, including the length of internal lanes...
const std::vector< SUMOVehicleParameter::Stop > & getStops() const
Returns the stops.
static void releaseRoute(const MSRoute *route)
release the route (to be used as function pointer with RandomDistributor)
static void dict_saveState(OutputDevice &out)
Saves all known routes into the given stream.
static unsigned int getMaxRouteDistSize()
static void insertIDs(std::vector< std::string > &into)
A road/street connecting two junctions.
static void clear()
Clears the dictionary (delete all known routes, too)
std::map< std::string, RandomDistributor< const MSRoute * > * > RouteDistDict
Definition of the dictionary container.
std::vector< const MSEdge * > MSEdgeVector
bool containsAnyOf(const std::vector< MSEdge * > &edgelist) const
static RouteDistDict myDistDict
The dictionary container.
MSEdgeVector myEdges
The list of edges to pass.
bool contains(const MSEdge *const edge) const
virtual ~MSRoute()
Destructor.
SUMOReal getLength() const
An upper class for objects with additional parameters.
static void setMaxRouteDistSize(unsigned int size)
void addReference() const
increments the reference counter for the route
std::vector< SUMOVehicleParameter::Stop > myStops
List of the stops on the parsed route.
Base class for objects which have an id.
MSRouteIterator end() const
Returns the end of the list of edges to pass.
MSRoute(const std::string &id, const MSEdgeVector &edges, unsigned int references, const RGBColor *const c, const std::vector< SUMOVehicleParameter::Stop > &stops)
Constructor.
unsigned size() const
Returns the number of edges to pass.
const MSEdge * operator[](unsigned index) const
Static storage of an output device and its base (abstract) implementation.
const RGBColor & getColor() const
Returns the color.
unsigned int myReferenceCounter
Information by how many vehicles the route is used.
void release() const
deletes the route if there are no further references to it
static unsigned int MaxRouteDistSize
the maximum size for each routeDistribution
static RouteDict myDict
The dictionary container.
const RGBColor *const myColor
The color.
MSRouteIterator begin() const
Returns the begin of the list of edges to pass.
static bool dictionary(const std::string &id, const MSRoute *route)
Adds a route to the dictionary.