/****************************************************************************/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 Calibrator.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 MSCalibrator;29#endif303132// ===========================================================================33// class definitions34// ===========================================================================35/**36* @class Calibrator37* @brief C++ TraCI client API implementation38*/3940namespace LIBSUMO_NAMESPACE {41class Calibrator {42public:43static std::string getEdgeID(const std::string& calibratorID);44static std::string getLaneID(const std::string& calibratorID);45static double getVehsPerHour(const std::string& calibratorID);46static double getSpeed(const std::string& calibratorID);47static std::string getTypeID(const std::string& calibratorID);48static double getBegin(const std::string& calibratorID);49static double getEnd(const std::string& calibratorID);50static std::string getRouteID(const std::string& calibratorID);51static std::string getRouteProbeID(const std::string& calibratorID);52static std::vector<std::string> getVTypes(const std::string& calibratorID);53static int getPassed(const std::string& calibratorID);54static int getInserted(const std::string& calibratorID);55static int getRemoved(const std::string& calibratorID);5657LIBSUMO_ID_PARAMETER_API58LIBSUMO_SUBSCRIPTION_API5960static void setFlow(const std::string& calibratorID, double begin, double end, double vehsPerHour, double speed, const std::string& typeID,61const std::string& routeID,62const std::string& departLane = "first",63const std::string& departSpeed = "max");6465#ifndef LIBTRACI66#ifndef SWIG67static std::shared_ptr<VariableWrapper> makeWrapper();6869static bool handleVariable(const std::string& objID, const int variable, VariableWrapper* wrapper, tcpip::Storage* paramData);7071static MSCalibrator* getCalibrator(const std::string& id);7273private:74static SubscriptionResults mySubscriptionResults;75static ContextSubscriptionResults myContextSubscriptionResults;76#endif77#endif7879/// @brief invalidated standard constructor80Calibrator() = delete;81};8283}848586