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 /****************************************************************************/
17 // logic, e.g. for exits.
18 /****************************************************************************/
19 #ifndef MSNoLogicJunction_h
20 #define MSNoLogicJunction_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #include <config.h>
27 
28 #include <string>
29 #include <vector>
30 #include <bitset>
31 #include "MSJunction.h"
32 
33 // ===========================================================================
34 // class declarations
35 // ===========================================================================
36 class MSLane;
37 
38 
39 // ===========================================================================
40 // class definitions
41 // ===========================================================================
48 class MSNoLogicJunction : public MSJunction {
49 public:
51  virtual ~MSNoLogicJunction();
52 
60  MSNoLogicJunction(const std::string& id, SumoXMLNodeType type, const Position& position,
61  const PositionVector& shape,
62  std::vector<MSLane*> incoming,
63  std::vector<MSLane*> internal);
64 
66  void postloadInit();
67 
70  virtual const std::vector<MSLane*> getInternalLanes() const;
71 
72 private:
74  std::vector<MSLane*> myIncomingLanes;
75 
77  std::vector<MSLane*> myInternalLanes;
78 
79 private:
82 
85 
86 };
87 
88 
89 #endif
90 
91 /****************************************************************************/
92 
MSNoLogicJunction::myIncomingLanes
std::vector< MSLane * > myIncomingLanes
Definition: MSNoLogicJunction.h:74
MSNoLogicJunction
Definition: MSNoLogicJunction.h:48
MSLane
Representation of a lane in the micro simulation.
Definition: MSLane.h:82
MSJunction
The base class for an intersection.
Definition: MSJunction.h:60
MSNoLogicJunction::~MSNoLogicJunction
virtual ~MSNoLogicJunction()
Destructor.
Definition: MSNoLogicJunction.cpp:50
MSNoLogicJunction::operator=
MSNoLogicJunction & operator=(const MSNoLogicJunction &)
Invalidated assignment operator.
PositionVector
A list of positions.
Definition: PositionVector.h:45
MSNoLogicJunction::postloadInit
void postloadInit()
Definition: MSNoLogicJunction.cpp:54
MSJunction.h
SumoXMLNodeType
SumoXMLNodeType
Numbers representing special SUMO-XML-attribute values for representing node- (junction-) types used ...
Definition: SUMOXMLDefinitions.h:1054
Position
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:38
MSNoLogicJunction::myInternalLanes
std::vector< MSLane * > myInternalLanes
Definition: MSNoLogicJunction.h:77
config.h
MSNoLogicJunction::getInternalLanes
virtual const std::vector< MSLane * > getInternalLanes() const
Returns all internal lanes on the junction.
Definition: MSNoLogicJunction.cpp:67
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:39