SUMO - Simulation of Urban MObility
TraCI_LaneArea.h
Go to the documentation of this file.
1 /****************************************************************************/
7 // C++ TraCI client API implementation
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
10 // Copyright (C) 2017-2017 DLR (http://www.dlr.de/) and contributors
11 /****************************************************************************/
12 //
13 // This file is part of SUMO.
14 // SUMO is free software: you can redistribute it and/or modify
15 // it under the terms of the GNU General Public License as published by
16 // the Free Software Foundation, either version 3 of the License, or
17 // (at your option) any later version.
18 //
19 /****************************************************************************/
20 #ifndef TraCI_LaneArea_h
21 #define TraCI_LaneArea_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #include <vector>
34 
35 
36 // ===========================================================================
37 // class declarations
38 // ===========================================================================
39 class MSE2Collector;
40 
41 
42 // ===========================================================================
43 // class definitions
44 // ===========================================================================
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 
69 
71  TraCI_LaneArea(const TraCI_LaneArea& src);
72 
75 
76 };
77 
78 
79 #endif
80 
81 /****************************************************************************/
82 
An areal detector corresponding to a sequence of consecutive lanes.
Definition: MSE2Collector.h:87
static double getLastStepMeanSpeed(const std::string &detID)
static double getJamLengthMeters(const std::string &detID)
static int getLastStepHaltingNumber(const std::string &detID)
static int getJamLengthVehicle(const std::string &detID)
static int getIDCount()
TraCI_LaneArea()
invalidated standard constructor
static int getLastStepVehicleNumber(const std::string &detID)
static std::string getLaneID(const std::string &detID)
static double getPosition(const std::string &detID)
static double getLength(const std::string &detID)
C++ TraCI client API implementation.
static std::vector< std::string > getIDList()
static double getLastStepOccupancy(const std::string &detID)
static MSE2Collector * getDetector(const std::string &detID)
static std::vector< std::string > getLastStepVehicleIDs(const std::string &detID)
TraCI_LaneArea & operator=(const TraCI_LaneArea &src)
invalidated assignment operator