SUMO - Simulation of Urban MObility
TraCI_Junction.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_Junction_h
23 #define TraCI_Junction_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 PointOfInterest;
43 
44 
45 // ===========================================================================
46 // class definitions
47 // ===========================================================================
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 
70 private:
73 
75  TraCI_Junction(const TraCI_Junction& src);
76 
79 };
80 
81 
82 #endif
83 
84 /****************************************************************************/
85 
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:71
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
C++ TraCI client API implementation.
long long int SUMOTime
Definition: TraCIDefs.h:52
A point-of-interest.
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)