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.org/sumo
3 // Copyright (C) 2012-2020 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 <config.h>
22 
23 #include <vector>
24 #include <libsumo/TraCIDefs.h>
25 
26 
27 // ===========================================================================
28 // class declarations
29 // ===========================================================================
30 #ifndef LIBTRACI
31 class MSLaneSpeedTrigger;
32 namespace libsumo {
33 class VariableWrapper;
34 }
35 #endif
36 
37 
38 // ===========================================================================
39 // class definitions
40 // ===========================================================================
45 namespace LIBSUMO_NAMESPACE {
47 public:
48  static std::vector<std::string> getLanes(const std::string& vssID);
49 
50  //static std::vector<double> getTimes(const std::string& vssID);
51  //static std::vector<double> getSpeeds(const std::string& vssID);
52  //static double getSpeed(const std::string& vssID);
53 
54  //static void setSpeed(const std::string& vssID, double speed, double begTime, double endTime);
55 
58 
59 #ifndef LIBTRACI
60  static std::shared_ptr<VariableWrapper> makeWrapper();
61 
62  static bool handleVariable(const std::string& objID, const int variable, VariableWrapper* wrapper);
63 
64 private:
65  static MSLaneSpeedTrigger* getVariableSpeedSign(const std::string& vssID);
66 
67 private:
70 #endif
71 
73  VariableSpeedSign() = delete;
74 };
75 
76 
77 }
#define LIBSUMO_ID_PARAMETER_API
Definition: TraCIDefs.h:97
#define LIBSUMO_SUBSCRIPTION_API
Definition: TraCIDefs.h:44
static ContextSubscriptionResults myContextSubscriptionResults
static SubscriptionResults mySubscriptionResults
LIBSUMO_ID_PARAMETER_API static LIBSUMO_SUBSCRIPTION_API std::shared_ptr< VariableWrapper > makeWrapper()
VariableSpeedSign()=delete
invalidated standard constructor
static bool handleVariable(const std::string &objID, const int variable, VariableWrapper *wrapper)
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, TraCIResults > SubscriptionResults
{object->{variable->value}}
Definition: TraCIDefs.h:250
std::map< std::string, SubscriptionResults > ContextSubscriptionResults
Definition: TraCIDefs.h:251