Eclipse SUMO - Simulation of Urban MObility
GUIEdgeControlBuilder.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-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 /****************************************************************************/
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 // ===========================================================================
36 class MSJunction;
37 
38 
39 // ===========================================================================
40 // class definitions
41 // ===========================================================================
51 public:
57 
58 
61 
62 
74  virtual MSLane* addLane(const std::string& id,
75  double maxSpeed, double length,
76  const PositionVector& shape, double width,
77  SVCPermissions permissions,
78  int index, bool isRampAccel,
79  const std::string& type);
80 
81 
82 
91  MSEdge* buildEdge(const std::string& id, const SumoXMLEdgeFunc function,
92  const std::string& streetName, const std::string& edgeType, const int priority, const double distance);
93 
94 
95 private:
98 
101 
102 };
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.
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)
Builds an edge instance (GUIEdge in this case)
GUIEdgeControlBuilder(const GUIEdgeControlBuilder &s)
invalidated copy constructor
virtual MSLane * addLane(const std::string &id, double maxSpeed, double length, const PositionVector &shape, double width, SVCPermissions permissions, int index, bool isRampAccel, const std::string &type)
Builds and adds a lane.
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:82
Interface for building edges.
A list of positions.