SUMO - Simulation of Urban MObility
TraCI_Route.h
Go to the documentation of this file.
1 /****************************************************************************/
9 // C++ TraCI client API implementation
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
12 // Copyright (C) 2012-2017 DLR (http://www.dlr.de/) and contributors
13 /****************************************************************************/
14 //
15 // This file is part of SUMO.
16 // SUMO is free software: you can redistribute it and/or modify
17 // it under the terms of the GNU General Public License as published by
18 // the Free Software Foundation, either version 3 of the License, or
19 // (at your option) any later version.
20 //
21 /****************************************************************************/
22 #ifndef TraCI_Route_h
23 #define TraCI_Route_h
24 
25 
26 // ===========================================================================
27 // included modules
28 // ===========================================================================
29 #ifdef _MSC_VER
30 #include <windows_config.h>
31 #else
32 #include <config.h>
33 #endif
34 
35 #include <vector>
36 #include <traci-server/TraCIDefs.h>
37 
38 
39 // ===========================================================================
40 // class declarations
41 // ===========================================================================
42 class MSRoute;
43 
44 // ===========================================================================
45 // class definitions
46 // ===========================================================================
51 class TraCI_Route {
52 public:
53 
54  static std::vector<std::string> getIDList();
55  static int getIDCount();
56  static std::vector<std::string> getEdges(const std::string& routeID);
57  static std::string getParameter(const std::string& routeID, const std::string& param);
58 
59  static void add(const std::string& routeID, const std::vector<std::string>& edgeIDs);
60  static void setParameter(const std::string& routeID, const std::string& key, const std::string& value); // not needed so far
61 
62  static void subscribe(const std::string& objID, SUMOTime beginTime, SUMOTime endTime, const std::vector<int>& vars);
63  static void subscribeContext(const std::string& objID, SUMOTime beginTime, SUMOTime endTime, int domain, double range, const std::vector<int>& vars);
64 
65  static const MSRoute* getRoute(const std::string& id);
66 
67 private:
69  TraCI_Route();
70 
72  TraCI_Route(const TraCI_Route& src);
73 
75  TraCI_Route& operator=(const TraCI_Route& src);
76 };
77 
78 
79 #endif
80 
81 /****************************************************************************/
82 
static void setParameter(const std::string &routeID, const std::string &key, const std::string &value)
Definition: TraCI_Route.cpp:75
static void subscribeContext(const std::string &objID, SUMOTime beginTime, SUMOTime endTime, int domain, double range, const std::vector< int > &vars)
static const MSRoute * getRoute(const std::string &id)
Definition: TraCI_Route.cpp:99
static std::vector< std::string > getIDList()
Definition: TraCI_Route.cpp:45
TraCI_Route & operator=(const TraCI_Route &src)
invalidated assignment operator
static int getIDCount()
Definition: TraCI_Route.cpp:63
static void add(const std::string &routeID, const std::vector< std::string > &edgeIDs)
Definition: TraCI_Route.cpp:82
static std::vector< std::string > getEdges(const std::string &routeID)
Definition: TraCI_Route.cpp:52
TraCI_Route()
invalidated standard constructor
C++ TraCI client API implementation.
Definition: TraCI_Route.h:51
long long int SUMOTime
Definition: TraCIDefs.h:52
static std::string getParameter(const std::string &routeID, const std::string &param)
Definition: TraCI_Route.cpp:69
static void subscribe(const std::string &objID, SUMOTime beginTime, SUMOTime endTime, const std::vector< int > &vars)