SUMO - Simulation of Urban MObility
TraCI_MultiEntryExit.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 TraCI_MultiEntryExit_h
20 #define TraCI_MultiEntryExit_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 // ===========================================================================
38 class MSE2Collector;
39 
40 
41 // ===========================================================================
42 // class definitions
43 // ===========================================================================
49 public:
50  static std::vector<std::string> getIDList();
51  static int getIDCount();
52  static int getLastStepVehicleNumber(const std::string& detID);
53  static double getLastStepMeanSpeed(const std::string& detID);
54  static std::vector<std::string> getLastStepVehicleIDs(const std::string& detID);
55  static int getLastStepHaltingNumber(const std::string& detID);
56 
57 private:
58  static MSE3Collector* getDetector(const std::string& detID);
59 
62 
65 
68 
69 };
70 
71 
72 #endif
73 
74 /****************************************************************************/
75 
C++ TraCI client API implementation.
TraCI_MultiEntryExit & operator=(const TraCI_MultiEntryExit &src)
invalidated assignment operator
static std::vector< std::string > getIDList()
An areal detector corresponding to a sequence of consecutive lanes.
Definition: MSE2Collector.h:86
static MSE3Collector * getDetector(const std::string &detID)
static std::vector< std::string > getLastStepVehicleIDs(const std::string &detID)
static int getLastStepVehicleNumber(const std::string &detID)
static int getLastStepHaltingNumber(const std::string &detID)
static int getIDCount()
TraCI_MultiEntryExit()
invalidated standard constructor
A detector of vehicles passing an area between entry/exit points.
Definition: MSE3Collector.h:64
static double getLastStepMeanSpeed(const std::string &detID)