/****************************************************************************/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 ChargingStation.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 MSStoppingPlace;29#endif303132// ===========================================================================33// class definitions34// ===========================================================================35/**36* @class ChargingStation37* @brief C++ TraCI client API implementation38*/39namespace LIBSUMO_NAMESPACE {40class ChargingStation {41public:42static std::string getLaneID(const std::string& stopID);43static double getStartPos(const std::string& stopID);44static double getEndPos(const std::string& stopID);45static std::string getName(const std::string& stopID);46static int getVehicleCount(const std::string& stopID);47static std::vector<std::string> getVehicleIDs(const std::string& stopID);48static double getChargingPower(const std::string& stopID);49static double getEfficiency(const std::string& stopID);50static double getChargeDelay(const std::string& stopID);51static int getChargeInTransit(const std::string& stopID);5253LIBSUMO_ID_PARAMETER_API54LIBSUMO_SUBSCRIPTION_API5556static void setChargingPower(const std::string& stopID, double power);57static void setEfficiency(const std::string& stopID, double efficiency);58static void setChargeDelay(const std::string& stopID, double delay);59static void setChargeInTransit(const std::string& stopID, bool inTransit);6061#ifndef LIBTRACI62#ifndef SWIG63static std::shared_ptr<VariableWrapper> makeWrapper();6465static bool handleVariable(const std::string& objID, const int variable, VariableWrapper* wrapper, tcpip::Storage* paramData);6667private:68static MSStoppingPlace* getChargingStation(const std::string& id);6970private:71static SubscriptionResults mySubscriptionResults;72static ContextSubscriptionResults myContextSubscriptionResults;73#endif74#endif7576/// @brief invalidated standard constructor77ChargingStation() = delete;78};798081}828384