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.org/sumo
3 // Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
18 // logic, e.g. for exits.
19 /****************************************************************************/
20 #ifndef MSNoLogicJunction_h
21 #define MSNoLogicJunction_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #include <config.h>
28 
29 #include <string>
30 #include <vector>
31 #include <bitset>
32 #include "MSJunction.h"
33 
34 // ===========================================================================
35 // class declarations
36 // ===========================================================================
37 class MSLane;
38 
39 
40 // ===========================================================================
41 // class definitions
42 // ===========================================================================
49 class MSNoLogicJunction : public MSJunction {
50 public:
52  virtual ~MSNoLogicJunction();
53 
61  MSNoLogicJunction(const std::string& id, SumoXMLNodeType type, const Position& position,
62  const PositionVector& shape,
63  std::vector<MSLane*> incoming,
64  std::vector<MSLane*> internal);
65 
67  void postloadInit();
68 
71  virtual const std::vector<MSLane*> getInternalLanes() const;
72 
73 private:
75  std::vector<MSLane*> myIncomingLanes;
76 
78  std::vector<MSLane*> myInternalLanes;
79 
80 private:
83 
86 
87 };
88 
89 
90 #endif
91 
92 /****************************************************************************/
93 
MSNoLogicJunction::myIncomingLanes
std::vector< MSLane * > myIncomingLanes
Definition: MSNoLogicJunction.h:75
MSNoLogicJunction
Definition: MSNoLogicJunction.h:49
MSLane
Representation of a lane in the micro simulation.
Definition: MSLane.h:83
MSJunction
The base class for an intersection.
Definition: MSJunction.h:61
MSNoLogicJunction::~MSNoLogicJunction
virtual ~MSNoLogicJunction()
Destructor.
Definition: MSNoLogicJunction.cpp:51
MSNoLogicJunction::operator=
MSNoLogicJunction & operator=(const MSNoLogicJunction &)
Invalidated assignment operator.
PositionVector
A list of positions.
Definition: PositionVector.h:46
MSNoLogicJunction::postloadInit
void postloadInit()
Definition: MSNoLogicJunction.cpp:55
MSJunction.h
SumoXMLNodeType
SumoXMLNodeType
Numbers representing special SUMO-XML-attribute values for representing node- (junction-) types used ...
Definition: SUMOXMLDefinitions.h:1049
Position
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:39
MSNoLogicJunction::myInternalLanes
std::vector< MSLane * > myInternalLanes
Definition: MSNoLogicJunction.h:78
config.h
MSNoLogicJunction::getInternalLanes
virtual const std::vector< MSLane * > getInternalLanes() const
Returns all internal lanes on the junction.
Definition: MSNoLogicJunction.cpp:68
MSNoLogicJunction::MSNoLogicJunction
MSNoLogicJunction(const std::string &id, SumoXMLNodeType type, const Position &position, const PositionVector &shape, std::vector< MSLane * > incoming, std::vector< MSLane * > internal)
Constructor.
Definition: MSNoLogicJunction.cpp:40