SUMO - Simulation of Urban MObility
TraCI_InductionLoop.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_InductionLoop_h
21 #define TraCI_InductionLoop_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 MSInductLoop;
40 class TraCIVehicleData;
41 
42 
43 // ===========================================================================
44 // class definitions
45 // ===========================================================================
51 public:
52  static std::vector<std::string> getIDList();
53  static int getIDCount();
54  static double getPosition(const std::string& detID);
55  static std::string getLaneID(const std::string& detID);
56  static int getLastStepVehicleNumber(const std::string& detID);
57  static double getLastStepMeanSpeed(const std::string& detID);
58  static std::vector<std::string> getLastStepVehicleIDs(const std::string& detID);
59  static double getLastStepOccupancy(const std::string& detID);
60  static double getLastStepMeanLength(const std::string& detID);
61  static double getTimeSinceDetection(const std::string& detID);
62  static std::vector<TraCIVehicleData> getVehicleData(const std::string& detID);
63 
64 private:
65  static MSInductLoop* getDetector(const std::string& detID);
66 
69 
72 
75 
76 };
77 
78 
79 #endif
80 
81 /****************************************************************************/
82 
static double getLastStepMeanSpeed(const std::string &detID)
static MSInductLoop * getDetector(const std::string &detID)
static double getLastStepMeanLength(const std::string &detID)
static std::vector< std::string > getIDList()
static std::vector< std::string > getLastStepVehicleIDs(const std::string &detID)
C++ TraCI client API implementation.
static int getLastStepVehicleNumber(const std::string &detID)
static std::string getLaneID(const std::string &detID)
TraCI_InductionLoop()
invalidated standard constructor
TraCI_InductionLoop & operator=(const TraCI_InductionLoop &src)
invalidated assignment operator
static double getLastStepOccupancy(const std::string &detID)
static double getTimeSinceDetection(const std::string &detID)
static double getPosition(const std::string &detID)
static std::vector< TraCIVehicleData > getVehicleData(const std::string &detID)
An unextended detector measuring at a fixed position on a fixed lane.
Definition: MSInductLoop.h:71