44 std::vector<std::string>
46 std::vector<std::string> ids;
51 std::vector<std::string>
54 std::vector<std::string> ids;
55 for (ConstMSEdgeVector::const_iterator i = r->
getEdges().begin(); i != r->
getEdges().end(); ++i) {
56 ids.push_back((*i)->getID());
82 Route::add(
const std::string& routeID,
const std::vector<std::string>& edgeIDs) {
84 for (std::vector<std::string>::const_iterator ei = edgeIDs.begin(); ei != edgeIDs.end(); ++ei) {
89 edges.push_back(edge);
91 const std::vector<SUMOVehicleParameter::Stop> stops;
const ConstMSEdgeVector & getEdges() const
static const MSRoute * getRoute(const std::string &id)
static void add(const std::string &routeID, const std::vector< std::string > &edgeIDs)
static bool dictionary(const std::string &id, MSEdge *edge)
Inserts edge into the static dictionary Returns true if the key id isn't already in the dictionary...
std::vector< const MSEdge * > ConstMSEdgeVector
static void insertIDs(std::vector< std::string > &into)
A road/street connecting two junctions.
void setParameter(const std::string &key, const std::string &value)
Sets a parameter.
static std::string getParameter(const std::string &routeID, const std::string ¶m)
static void setParameter(const std::string &routeID, const std::string &key, const std::string &value)
const std::string getParameter(const std::string &key, const std::string &defaultValue="") const
Returns the value for a given key.
static std::vector< std::string > getEdges(const std::string &routeID)
static std::vector< std::string > getIDList()
static bool dictionary(const std::string &id, const MSRoute *route)
Adds a route to the dictionary.