SUMO - Simulation of Urban MObility
TraCI_Junction.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2012-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
19 // C++ TraCI client API implementation
20 /****************************************************************************/
21 #ifndef TraCI_Junction_h
22 #define TraCI_Junction_h
23 
24 
25 // ===========================================================================
26 // included modules
27 // ===========================================================================
28 #ifdef _MSC_VER
29 #include <windows_config.h>
30 #else
31 #include <config.h>
32 #endif
33 
34 #include <vector>
35 #include <traci-server/TraCIDefs.h>
36 
37 
38 // ===========================================================================
39 // class declarations
40 // ===========================================================================
41 class MSJunction;
42 
43 
44 // ===========================================================================
45 // class definitions
46 // ===========================================================================
52 public:
53 
54 
55  static std::vector<std::string> getIDList();
56  static int getIDCount();
57  static TraCIPosition getPosition(const std::string& junctionID);
58  static TraCIPositionVector getShape(const std::string& junctionID);
59 
60 
61  static std::string getType(const std::string& poiID);
62  static TraCIColor getColor(const std::string& poiID);
63 
64 
65  static void subscribe(const std::string& objID, SUMOTime beginTime, SUMOTime endTime, const std::vector<int>& vars);
66  static void subscribeContext(const std::string& objID, SUMOTime beginTime, SUMOTime endTime, int domain, double range, const std::vector<int>& vars);
67  static MSJunction* getJunction(const std::string& id);
68 
69 private:
72 
74  TraCI_Junction(const TraCI_Junction& src);
75 
78 };
79 
80 
81 #endif
82 
83 /****************************************************************************/
84 
static TraCIColor getColor(const std::string &poiID)
The base class for an intersection.
Definition: MSJunction.h:64
static int getIDCount()
A 3D-position.
Definition: TraCIDefs.h:70
static std::vector< std::string > getIDList()
static void subscribeContext(const std::string &objID, SUMOTime beginTime, SUMOTime endTime, int domain, double range, const std::vector< int > &vars)
TraCI_Junction & operator=(const TraCI_Junction &src)
invalidated assignment operator
static void subscribe(const std::string &objID, SUMOTime beginTime, SUMOTime endTime, const std::vector< int > &vars)
static std::string getType(const std::string &poiID)
TraCI_Junction()
invalidated standard constructor
A color.
Definition: TraCIDefs.h:77
C++ TraCI client API implementation.
long long int SUMOTime
Definition: TraCIDefs.h:51
static TraCIPositionVector getShape(const std::string &junctionID)
static TraCIPosition getPosition(const std::string &junctionID)
A list of positions.
static MSJunction * getJunction(const std::string &id)