Path: blob/main/src/traci-server/TraCIServerAPI_ChargingStation.h
169666 views
/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2001-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 TraCIServerAPI_ChargingStation.h14/// @author Jakob Erdmann15/// @date 16.03.202016///17// APIs for getting/setting busstop values via TraCI18/****************************************************************************/19#pragma once20#include <config.h>2122#include "TraCIServer.h"23#include <foreign/tcpip/storage.h>242526// ===========================================================================27// class definitions28// ===========================================================================29/**30* @class TraCIServerAPI_ChargingStation31* @brief APIs for getting/setting busstop values via TraCI32*/33class TraCIServerAPI_ChargingStation {34public:35/** @brief Processes a get value command (Command 0xa6: Get ChargingStation Variable)36*37* @param[in] server The TraCI-server-instance which schedules this request38* @param[in] inputStorage The storage to read the command from39* @param[out] outputStorage The storage to write the result to40*/41static bool processGet(TraCIServer& server, tcpip::Storage& inputStorage,42tcpip::Storage& outputStorage);434445/** @brief Processes a set value command (Command 0xc6: Change ChargingStation State)46*47* @param[in] server The TraCI-server-instance which schedules this request48* @param[in] inputStorage The storage to read the command from49* @param[out] outputStorage The storage to write the result to50*/51static bool processSet(TraCIServer& server, tcpip::Storage& inputStorage,52tcpip::Storage& outputStorage);535455private:56/// @brief invalidated copy constructor57TraCIServerAPI_ChargingStation(const TraCIServerAPI_ChargingStation& s);5859/// @brief invalidated assignment operator60TraCIServerAPI_ChargingStation& operator=(const TraCIServerAPI_ChargingStation& s);616263};646566