Path: blob/main/src/traci-server/TraCIServerAPI_Junction.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_Junction.h14/// @author Daniel Krajzewicz15/// @author Michael Behrisch16/// @date 07.05.200917///18// APIs for getting/setting junction values via TraCI19/****************************************************************************/20#pragma once21#include <config.h>2223#include <foreign/tcpip/storage.h>242526// ===========================================================================27// class declarations28// ===========================================================================29class TraCIServer;30class Position;31class NamedRTree;323334// ===========================================================================35// class definitions36// ===========================================================================37/**38* @class TraCIServerAPI_Junction39* @brief APIs for getting/setting junction values via TraCI40*/41class TraCIServerAPI_Junction {42public:43/** @brief Processes a get value command (Command 0xa9: Get Junction Variable)44*45* @param[in] server The TraCI-server-instance which schedules this request46* @param[in] inputStorage The storage to read the command from47* @param[out] outputStorage The storage to write the result to48*/49static bool processGet(TraCIServer& server, tcpip::Storage& inputStorage,50tcpip::Storage& outputStorage);5152/** @brief Processes a set value command (Command 0xc9: Set Junction Variable)53*54* @param[in] server The TraCI-server-instance which schedules this request55* @param[in] inputStorage The storage to read the command from56* @param[out] outputStorage The storage to write the result to57*/58static bool processSet(TraCIServer& server, tcpip::Storage& inputStorage,59tcpip::Storage& outputStorage);6061private:62/// @brief invalidated copy constructor63TraCIServerAPI_Junction(const TraCIServerAPI_Junction& s);6465/// @brief invalidated assignment operator66TraCIServerAPI_Junction& operator=(const TraCIServerAPI_Junction& s);67};686970