/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2012-2025 German Aerospace Center (DLR) and others.3// This program and the accompanying materials are made available under the4// terms of the Eclipse Public License 2.0 which is available at5// https://www.eclipse.org/legal/epl-2.0/6// This Source Code may also be made available under the following Secondary7// Licenses when the conditions for such availability set forth in the Eclipse8// Public License 2.0 are satisfied: GNU General Public License, version 29// or later which is available at10// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html11// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later12/****************************************************************************/13/// @file RouteProbe.h14/// @author Jakob Erdmann15/// @date 16.03.202016///17// C++ TraCI client API implementation18/****************************************************************************/19#pragma once20#include <vector>21#include <libsumo/TraCIDefs.h>222324// ===========================================================================25// class declarations26// ===========================================================================27#ifndef LIBTRACI28class MSRouteProbe;29#endif303132// ===========================================================================33// class definitions34// ===========================================================================35/**36* @class RouteProbe37* @brief C++ TraCI client API implementation38*/39namespace LIBSUMO_NAMESPACE {40class RouteProbe {41public:42static std::string getEdgeID(const std::string& probeID);43//static double getFrequency(const std::string& meanDataID);4445static std::string sampleLastRouteID(const std::string& probeID);46static std::string sampleCurrentRouteID(const std::string& probeID);47//static std::vector<std::pair<std::string, doube> > getLastRoutes(const std::string& probeID);48//static std::vector<std::pair<std::string, doube> > getCurrentRoutes(const std::string& probeID);4950LIBSUMO_ID_PARAMETER_API51LIBSUMO_SUBSCRIPTION_API52#ifndef LIBTRACI53#ifndef SWIG54static std::shared_ptr<VariableWrapper> makeWrapper();5556static bool handleVariable(const std::string& objID, const int variable, VariableWrapper* wrapper, tcpip::Storage* paramData);5758private:59static MSRouteProbe* getRouteProbe(const std::string& id);6061private:62static SubscriptionResults mySubscriptionResults;63static ContextSubscriptionResults myContextSubscriptionResults;64#endif65#endif66/// @brief invalidated standard constructor67RouteProbe() = delete;68};697071}727374