Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GUIEdgeControlBuilder.h
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2001-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/****************************************************************************/
21// Derivation of NLEdgeControlBuilder which builds gui-edges
22/****************************************************************************/
23#pragma once
24#include <config.h>
25
26#include <string>
27#include <vector>
30#include <guisim/GUIEdge.h>
31
32
33// ===========================================================================
34// class declarations
35// ===========================================================================
36class MSJunction;
37
38
39// ===========================================================================
40// class definitions
41// ===========================================================================
51public:
57
58
61
62
74 MSLane* addLane(const std::string& id,
75 double maxSpeed, double friction, double length,
76 const PositionVector& shape, double width,
77 SVCPermissions permissions,
78 SVCPermissions changeLeft, SVCPermissions changeRight,
79 int index, bool isRampAccel,
80 const std::string& type,
81 const PositionVector& outlineShape) override;
82
83
84
93 MSEdge* buildEdge(const std::string& id, const SumoXMLEdgeFunc function,
94 const std::string& streetName, const std::string& edgeType, const int priority, const double distance) override;
95
96
97private:
100
103
104};
long long int SVCPermissions
bitset where each bit declares whether a certain SVC may use this edge/lane
SumoXMLEdgeFunc
Numbers representing special SUMO-XML-attribute values for representing edge functions used in netbui...
Derivation of NLEdgeControlBuilder which builds gui-edges.
MSLane * addLane(const std::string &id, double maxSpeed, double friction, double length, const PositionVector &shape, double width, SVCPermissions permissions, SVCPermissions changeLeft, SVCPermissions changeRight, int index, bool isRampAccel, const std::string &type, const PositionVector &outlineShape) override
Builds and adds a lane.
GUIEdgeControlBuilder & operator=(const GUIEdgeControlBuilder &s)
invalidated assignment operator
MSEdge * buildEdge(const std::string &id, const SumoXMLEdgeFunc function, const std::string &streetName, const std::string &edgeType, const int priority, const double distance) override
Builds an edge instance (GUIEdge in this case)
GUIEdgeControlBuilder(const GUIEdgeControlBuilder &s)
invalidated copy constructor
A road/street connecting two junctions.
Definition MSEdge.h:77
The base class for an intersection.
Definition MSJunction.h:58
Representation of a lane in the micro simulation.
Definition MSLane.h:84
Interface for building edges.
A list of positions.