SUMO - Simulation of Urban MObility
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 Junction_h
22 #define 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 <libsumo/TraCIDefs.h>
36 
37 
38 // ===========================================================================
39 // class declarations
40 // ===========================================================================
41 class MSJunction;
42 
43 
44 // ===========================================================================
45 // class definitions
46 // ===========================================================================
51 namespace libsumo {
52 class Junction {
53 public:
54 
55 
56  static std::vector<std::string> getIDList();
57  static int getIDCount();
58  static TraCIPosition getPosition(const std::string& junctionID);
59  static TraCIPositionVector getShape(const std::string& junctionID);
60 
61 
62  static std::string getType(const std::string& poiID);
63  static TraCIColor getColor(const std::string& poiID);
64 
65 
66  static void subscribe(const std::string& objID, SUMOTime beginTime, SUMOTime endTime, const std::vector<int>& vars);
67  static void subscribeContext(const std::string& objID, SUMOTime beginTime, SUMOTime endTime, int domain, double range, const std::vector<int>& vars);
68  static MSJunction* getJunction(const std::string& id);
69 
73  static NamedRTree* getTree();
74 
75 private:
77  Junction();
78 
80  Junction(const Junction& src);
81 
83  Junction& operator=(const Junction& src);
84 };
85 }
86 
87 
88 #endif
89 
90 /****************************************************************************/
static int getIDCount()
Definition: Junction.cpp:54
static TraCIColor getColor(const std::string &poiID)
Junction & operator=(const Junction &src)
invalidated assignment operator
static std::string getType(const std::string &poiID)
The base class for an intersection.
Definition: MSJunction.h:64
A RT-tree for efficient storing of SUMO&#39;s Named objects.
Definition: NamedRTree.h:71
static NamedRTree * getTree()
Returns a tree filled with junction instances.
Definition: Junction.cpp:78
static TraCIPosition getPosition(const std::string &junctionID)
Definition: Junction.cpp:59
static MSJunction * getJunction(const std::string &id)
Definition: Junction.cpp:69
static TraCIPositionVector getShape(const std::string &junctionID)
Definition: Junction.cpp:64
Junction()
invalidated standard constructor
Definition: Edge.cpp:31
static void subscribe(const std::string &objID, SUMOTime beginTime, SUMOTime endTime, const std::vector< int > &vars)
long long int SUMOTime
Definition: TraCIDefs.h:51
A 3D-position.
Definition: TraCIDefs.h:71
static std::vector< std::string > getIDList()
Definition: Junction.cpp:47
A list of positions.
static void subscribeContext(const std::string &objID, SUMOTime beginTime, SUMOTime endTime, int domain, double range, const std::vector< int > &vars)