Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
libtraci/MultiEntryExit.cpp
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2012-2024 German Aerospace Center (DLR) and others.
4// This program and the accompanying materials are made available under the
5// terms of the Eclipse Public License 2.0 which is available at
6// https://www.eclipse.org/legal/epl-2.0/
7// This Source Code may also be made available under the following Secondary
8// Licenses when the conditions for such availability set forth in the Eclipse
9// Public License 2.0 are satisfied: GNU General Public License, version 2
10// or later which is available at
11// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13/****************************************************************************/
21// C++ TraCI client API implementation
22/****************************************************************************/
23#include <config.h>
24
25#define LIBTRACI 1
27#include "Connection.h"
28#include "Domain.h"
29
30
31namespace libtraci {
32
33typedef Domain<libsumo::CMD_GET_MULTIENTRYEXIT_VARIABLE, libsumo::CMD_SET_MULTIENTRYEXIT_VARIABLE> Dom;
34
35
36// ===========================================================================
37// static member definitions
38// ===========================================================================
39std::vector<std::string>
40MultiEntryExit::getIDList() {
42}
43
44
45int
46MultiEntryExit::getIDCount() {
48}
49
50
51std::vector<std::string>
52MultiEntryExit::getEntryLanes(const std::string& detID) {
54}
55
56
57std::vector<std::string>
58MultiEntryExit::getExitLanes(const std::string& detID) {
60}
61
62
63std::vector<double>
64MultiEntryExit::getEntryPositions(const std::string& detID) {
66}
67
68
69std::vector<double>
70MultiEntryExit::getExitPositions(const std::string& detID) {
72}
73
74
75int
76MultiEntryExit::getLastStepVehicleNumber(const std::string& detID) {
78}
79
80
81double
82MultiEntryExit::getLastStepMeanSpeed(const std::string& detID) {
84}
85
86
87std::vector<std::string>
88MultiEntryExit::getLastStepVehicleIDs(const std::string& detID) {
90}
91
92
93int
94MultiEntryExit::getLastStepHaltingNumber(const std::string& detID) {
96}
97
98
99double
100MultiEntryExit::getLastIntervalMeanTravelTime(const std::string& detID) {
102}
103
104
105double
106MultiEntryExit::getLastIntervalMeanHaltsPerVehicle(const std::string& detID) {
108}
109
110
111double
112MultiEntryExit::getLastIntervalMeanTimeLoss(const std::string& detID) {
114}
115
116
117int
118MultiEntryExit::getLastIntervalVehicleSum(const std::string& detID) {
120}
121
122
125
126
127} // namespace libtraci
128
129/****************************************************************************/
#define LIBTRACI_SUBSCRIPTION_IMPLEMENTATION(CLASS, DOMAIN)
Definition Domain.h:38
#define LIBTRACI_PARAMETER_IMPLEMENTATION(CLASS, DOMAIN)
Definition Domain.h:77
C++ TraCI client API implementation.
static std::vector< double > getDoubleVector(int var, const std::string &id, tcpip::Storage *add=nullptr)
Definition Domain.h:182
static std::vector< std::string > getStringVector(int var, const std::string &id, tcpip::Storage *add=nullptr)
Definition Domain.h:177
static int getInt(int var, const std::string &id, tcpip::Storage *add=nullptr)
Definition Domain.h:125
static double getDouble(int var, const std::string &id, tcpip::Storage *add=nullptr)
Definition Domain.h:130
TRACI_CONST int VAR_LAST_INTERVAL_TRAVELTIME
TRACI_CONST int LAST_STEP_VEHICLE_ID_LIST
TRACI_CONST int VAR_EXIT_POSITIONS
TRACI_CONST int LAST_STEP_VEHICLE_NUMBER
TRACI_CONST int TRACI_ID_LIST
TRACI_CONST int VAR_LANES
TRACI_CONST int VAR_TIMELOSS
TRACI_CONST int VAR_POSITION
TRACI_CONST int LAST_STEP_MEAN_SPEED
TRACI_CONST int LAST_STEP_VEHICLE_HALTING_NUMBER
TRACI_CONST int ID_COUNT
TRACI_CONST int VAR_EXIT_LANES
TRACI_CONST int VAR_LAST_INTERVAL_VEHICLE_NUMBER
TRACI_CONST int VAR_LAST_INTERVAL_MEAN_HALTING_NUMBER
Domain< libsumo::CMD_GET_BUSSTOP_VARIABLE, libsumo::CMD_SET_BUSSTOP_VARIABLE > Dom