Eclipse SUMO - Simulation of Urban MObility
MSNoLogicJunction.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 // logic, e.g. for exits.
22 /****************************************************************************/
23 #pragma once
24 #include <config.h>
25 
26 #include <string>
27 #include <vector>
28 #include <bitset>
29 #include "MSJunction.h"
30 
31 // ===========================================================================
32 // class declarations
33 // ===========================================================================
34 class MSLane;
35 
36 
37 // ===========================================================================
38 // class definitions
39 // ===========================================================================
46 class MSNoLogicJunction : public MSJunction {
47 public:
49  virtual ~MSNoLogicJunction();
50 
58  MSNoLogicJunction(const std::string& id, SumoXMLNodeType type, const Position& position,
59  const PositionVector& shape,
60  const std::string& name,
61  std::vector<MSLane*> incoming,
62  std::vector<MSLane*> internal);
63 
65  void postloadInit();
66 
69  virtual const std::vector<MSLane*> getInternalLanes() const;
70 
71 private:
73  std::vector<MSLane*> myIncomingLanes;
74 
76  std::vector<MSLane*> myInternalLanes;
77 
78 private:
81 
84 
85 };
SumoXMLNodeType
Numbers representing special SUMO-XML-attribute values for representing node- (junction-) types used ...
The base class for an intersection.
Definition: MSJunction.h:58
Representation of a lane in the micro simulation.
Definition: MSLane.h:84
virtual const std::vector< MSLane * > getInternalLanes() const
Returns all internal lanes on the junction.
std::vector< MSLane * > myIncomingLanes
std::vector< MSLane * > myInternalLanes
MSNoLogicJunction(const std::string &id, SumoXMLNodeType type, const Position &position, const PositionVector &shape, const std::string &name, std::vector< MSLane * > incoming, std::vector< MSLane * > internal)
Constructor.
MSNoLogicJunction & operator=(const MSNoLogicJunction &)
Invalidated assignment operator.
virtual ~MSNoLogicJunction()
Destructor.
MSNoLogicJunction(const MSNoLogicJunction &)
Invalidated copy constructor.
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:37
A list of positions.