Eclipse SUMO - Simulation of Urban MObility
VariableSpeedSign.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3 // Copyright (C) 2012-2024 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials are made available under the
5 // terms of the Eclipse Public License 2.0 which is available at
6 // https://www.eclipse.org/legal/epl-2.0/
7 // This Source Code may also be made available under the following Secondary
8 // Licenses when the conditions for such availability set forth in the Eclipse
9 // Public License 2.0 are satisfied: GNU General Public License, version 2
10 // or later which is available at
11 // https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12 // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13 /****************************************************************************/
18 // C++ TraCI client API implementation
19 /****************************************************************************/
20 #pragma once
21 #include <vector>
22 #include <libsumo/TraCIDefs.h>
23 
24 
25 // ===========================================================================
26 // class declarations
27 // ===========================================================================
28 #ifndef LIBTRACI
29 class MSLaneSpeedTrigger;
30 #endif
31 
32 
33 // ===========================================================================
34 // class definitions
35 // ===========================================================================
40 namespace LIBSUMO_NAMESPACE {
42 public:
43  static std::vector<std::string> getLanes(const std::string& vssID);
44 
45  //static std::vector<double> getTimes(const std::string& vssID);
46  //static std::vector<double> getSpeeds(const std::string& vssID);
47  //static double getSpeed(const std::string& vssID);
48 
49  //static void setSpeed(const std::string& vssID, double speed, double begTime, double endTime);
50 
53 
54 #ifndef LIBTRACI
55 #ifndef SWIG
56  static std::shared_ptr<VariableWrapper> makeWrapper();
57 
58  static bool handleVariable(const std::string& objID, const int variable, VariableWrapper* wrapper, tcpip::Storage* paramData);
59 
60 private:
61  static MSLaneSpeedTrigger* getVariableSpeedSign(const std::string& vssID);
62 
63 private:
66 #endif
67 #endif
68 
70  VariableSpeedSign() = delete;
71 };
72 
73 
74 }
#define LIBSUMO_ID_PARAMETER_API
Definition: TraCIDefs.h:116
#define LIBSUMO_SUBSCRIPTION_API
Definition: TraCIDefs.h:62
static ContextSubscriptionResults myContextSubscriptionResults
static SubscriptionResults mySubscriptionResults
static bool handleVariable(const std::string &objID, const int variable, VariableWrapper *wrapper, tcpip::Storage *paramData)
LIBSUMO_ID_PARAMETER_API static LIBSUMO_SUBSCRIPTION_API std::shared_ptr< VariableWrapper > makeWrapper()
VariableSpeedSign()=delete
invalidated standard constructor
static std::vector< std::string > getLanes(const std::string &vssID)
static MSLaneSpeedTrigger * getVariableSpeedSign(const std::string &vssID)
Changes the speed allowed on a set of lanes.
std::map< std::string, libsumo::SubscriptionResults > ContextSubscriptionResults
Definition: TraCIDefs.h:338
std::map< std::string, libsumo::TraCIResults > SubscriptionResults
{object->{variable->value}}
Definition: TraCIDefs.h:337