Eclipse SUMO - Simulation of Urban MObility
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-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
15 // C++ TraCI client API implementation
16 /****************************************************************************/
17 #ifndef MultiEntryExit_h
18 #define MultiEntryExit_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include <vector>
27 #include <libsumo/TraCIDefs.h>
28 
29 
30 // ===========================================================================
31 // class declarations
32 // ===========================================================================
33 class MSE3Collector;
34 namespace libsumo {
35 class VariableWrapper;
36 }
37 
38 
39 // ===========================================================================
40 // class definitions
41 // ===========================================================================
46 namespace libsumo {
48 public:
49  static std::vector<std::string> getIDList();
50  static int getIDCount();
51  static int getLastStepVehicleNumber(const std::string& detID);
52  static double getLastStepMeanSpeed(const std::string& detID);
53  static std::vector<std::string> getLastStepVehicleIDs(const std::string& detID);
54  static int getLastStepHaltingNumber(const std::string& detID);
55 
57 
58  static std::shared_ptr<VariableWrapper> makeWrapper();
59 
60  static bool handleVariable(const std::string& objID, const int variable, VariableWrapper* wrapper);
61 
62 private:
63  static MSE3Collector* getDetector(const std::string& detID);
64 
65 private:
68 
70  MultiEntryExit() = delete;
71 
72 };
73 
74 
75 }
76 
77 
78 #endif
79 
80 /****************************************************************************/
std::map< std::string, TraCIResults > SubscriptionResults
{object->{variable->value}}
Definition: TraCIDefs.h:204
#define LIBSUMO_SUBSCRIPTION_API
Definition: TraCIDefs.h:42
static double getLastStepMeanSpeed(const std::string &detID)
static LIBSUMO_SUBSCRIPTION_API std::shared_ptr< VariableWrapper > makeWrapper()
MultiEntryExit()=delete
invalidated standard constructor
static int getLastStepVehicleNumber(const std::string &detID)
static int getLastStepHaltingNumber(const std::string &detID)
static MSE3Collector * getDetector(const std::string &detID)
std::map< std::string, SubscriptionResults > ContextSubscriptionResults
Definition: TraCIDefs.h:205
static ContextSubscriptionResults myContextSubscriptionResults
static int getIDCount()
static std::vector< std::string > getIDList()
Definition: Edge.cpp:30
static std::vector< std::string > getLastStepVehicleIDs(const std::string &detID)
A detector of vehicles passing an area between entry/exit points.
Definition: MSE3Collector.h:58
static SubscriptionResults mySubscriptionResults
static bool handleVariable(const std::string &objID, const int variable, VariableWrapper *wrapper)