SUMO - Simulation of Urban MObility
LaneArea.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2017-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 /****************************************************************************/
17 // C++ TraCI client API implementation
18 /****************************************************************************/
19 #ifndef LaneArea_h
20 #define LaneArea_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #ifdef _MSC_VER
27 #include <windows_config.h>
28 #else
29 #include <config.h>
30 #endif
31 
32 #include <vector>
33 
34 
35 // ===========================================================================
36 // class declarations
37 // ===========================================================================
39 
40 
41 // ===========================================================================
42 // class definitions
43 // ===========================================================================
48 namespace libsumo {
49 class LaneArea {
50 public:
51  static std::vector<std::string> getIDList();
52  static int getIDCount();
53  static int getJamLengthVehicle(const std::string& detID);
54  static double getJamLengthMeters(const std::string& detID);
55  static double getLastStepMeanSpeed(const std::string& detID);
56  static std::vector<std::string> getLastStepVehicleIDs(const std::string& detID);
57  static double getLastStepOccupancy(const std::string& detID);
58  static double getPosition(const std::string& detID);
59  static std::string getLaneID(const std::string& detID);
60  static double getLength(const std::string& detID);
61  static int getLastStepVehicleNumber(const std::string& detID);
62  static int getLastStepHaltingNumber(const std::string& detID);
63 
64 private:
65  static MSE2Collector* getDetector(const std::string& detID);
66 
68  LaneArea();
69 
71  LaneArea(const LaneArea& src);
72 
74  LaneArea& operator=(const LaneArea& src);
75 
76 };
77 }
78 
79 
80 #endif
81 
82 /****************************************************************************/
static std::string getLaneID(const std::string &detID)
Definition: LaneArea.cpp:96
static double getPosition(const std::string &detID)
Definition: LaneArea.cpp:90
An areal detector corresponding to a sequence of consecutive lanes.
Definition: MSE2Collector.h:86
static int getLastStepVehicleNumber(const std::string &detID)
Definition: LaneArea.cpp:109
static double getJamLengthMeters(const std::string &detID)
Definition: LaneArea.cpp:66
static double getLength(const std::string &detID)
Definition: LaneArea.cpp:102
LaneArea()
invalidated standard constructor
static int getIDCount()
Definition: LaneArea.cpp:53
LaneArea & operator=(const LaneArea &src)
invalidated assignment operator
static double getLastStepMeanSpeed(const std::string &detID)
Definition: LaneArea.cpp:72
static int getJamLengthVehicle(const std::string &detID)
Definition: LaneArea.cpp:60
Definition: Edge.cpp:31
static std::vector< std::string > getIDList()
Definition: LaneArea.cpp:45
static int getLastStepHaltingNumber(const std::string &detID)
Definition: LaneArea.cpp:115
static double getLastStepOccupancy(const std::string &detID)
Definition: LaneArea.cpp:84
static std::vector< std::string > getLastStepVehicleIDs(const std::string &detID)
Definition: LaneArea.cpp:78
static MSE2Collector * getDetector(const std::string &detID)
Definition: LaneArea.cpp:121