Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
libtraci/LaneArea.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
26#include <libsumo/LaneArea.h>
27#include "Connection.h"
28#include "Domain.h"
29
30
31namespace libtraci {
32
33typedef Domain<libsumo::CMD_GET_LANEAREA_VARIABLE, libsumo::CMD_SET_LANEAREA_VARIABLE> Dom;
34
35
36// ===========================================================================
37// static member definitions
38// ===========================================================================
39std::vector<std::string>
40LaneArea::getIDList() {
42}
43
44
45int
46LaneArea::getIDCount() {
48}
49
50
51int
52LaneArea::getJamLengthVehicle(const std::string& detID) {
54}
55
56
57double
58LaneArea::getJamLengthMeters(const std::string& detID) {
60}
61
62
63double
64LaneArea::getLastStepMeanSpeed(const std::string& detID) {
66}
67
68
69std::vector<std::string>
70LaneArea::getLastStepVehicleIDs(const std::string& detID) {
72}
73
74
75double
76LaneArea::getLastStepOccupancy(const std::string& detID) {
78}
79
80
81double
82LaneArea::getPosition(const std::string& detID) {
84}
85
86
87std::string
88LaneArea::getLaneID(const std::string& detID) {
90}
91
92
93double
94LaneArea::getLength(const std::string& detID) {
96}
97
98
99int
100LaneArea::getLastStepVehicleNumber(const std::string& detID) {
102}
103
104
105int
106LaneArea::getLastStepHaltingNumber(const std::string& detID) {
108}
109
110double
111LaneArea::getIntervalOccupancy(const std::string& detID) {
113}
114
115double
116LaneArea::getIntervalMeanSpeed(const std::string& detID) {
118}
119
120double
121LaneArea::getIntervalMaxJamLengthInMeters(const std::string& detID) {
123}
124
125int
126LaneArea::getIntervalVehicleNumber(const std::string& detID) {
128}
129
130double
131LaneArea::getLastIntervalOccupancy(const std::string& detID) {
133}
134
135double
136LaneArea::getLastIntervalMeanSpeed(const std::string& detID) {
138}
139
140double
141LaneArea::getLastIntervalMaxJamLengthInMeters(const std::string& detID) {
143}
144
145int
146LaneArea::getLastIntervalVehicleNumber(const std::string& detID) {
148}
149
150
151void
152LaneArea::overrideVehicleNumber(const std::string& detID, int vehNum) {
154}
155
158
159
160} // namespace libtraci
161
162/****************************************************************************/
#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< std::string > getStringVector(int var, const std::string &id, tcpip::Storage *add=nullptr)
Definition Domain.h:177
static std::string getString(int var, const std::string &id, tcpip::Storage *add=nullptr)
Definition Domain.h:172
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
static void setInt(int var, const std::string &id, int value)
Definition Domain.h:224
TRACI_CONST int LAST_STEP_VEHICLE_ID_LIST
TRACI_CONST int VAR_INTERVAL_NUMBER
TRACI_CONST int LAST_STEP_VEHICLE_NUMBER
TRACI_CONST int TRACI_ID_LIST
TRACI_CONST int VAR_LAST_INTERVAL_NUMBER
TRACI_CONST int VAR_LAST_INTERVAL_MAX_JAM_LENGTH_METERS
TRACI_CONST int VAR_INTERVAL_MAX_JAM_LENGTH_METERS
TRACI_CONST int VAR_POSITION
TRACI_CONST int LAST_STEP_MEAN_SPEED
TRACI_CONST int VAR_LAST_INTERVAL_OCCUPANCY
TRACI_CONST int JAM_LENGTH_METERS
TRACI_CONST int LAST_STEP_VEHICLE_HALTING_NUMBER
TRACI_CONST int VAR_LENGTH
TRACI_CONST int ID_COUNT
TRACI_CONST int VAR_LANE_ID
TRACI_CONST int LAST_STEP_OCCUPANCY
TRACI_CONST int VAR_INTERVAL_SPEED
TRACI_CONST int VAR_LAST_INTERVAL_SPEED
TRACI_CONST int VAR_INTERVAL_OCCUPANCY
TRACI_CONST int JAM_LENGTH_VEHICLE
TRACI_CONST int VAR_VIRTUAL_DETECTION
Domain< libsumo::CMD_GET_BUSSTOP_VARIABLE, libsumo::CMD_SET_BUSSTOP_VARIABLE > Dom