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-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
20 // logic, e.g. for exits.
21 /****************************************************************************/
22 #ifndef MSNoLogicJunction_h
23 #define MSNoLogicJunction_h
24 
25 
26 // ===========================================================================
27 // included modules
28 // ===========================================================================
29 #ifdef _MSC_VER
30 #include <windows_config.h>
31 #else
32 #include <config.h>
33 #endif
34 
35 #include <string>
36 #include <vector>
37 #include <bitset>
38 #include "MSJunction.h"
39 
40 // ===========================================================================
41 // class declarations
42 // ===========================================================================
43 class MSLane;
44 
45 
46 // ===========================================================================
47 // class definitions
48 // ===========================================================================
55 class MSNoLogicJunction : public MSJunction {
56 public:
58  virtual ~MSNoLogicJunction();
59 
67  MSNoLogicJunction(const std::string& id, SumoXMLNodeType type, const Position& position,
68  const PositionVector& shape,
69  std::vector<MSLane*> incoming,
70  std::vector<MSLane*> internal);
71 
73  void postloadInit();
74 
77  virtual const std::vector<MSLane*> getInternalLanes() const;
78 
79 private:
81  std::vector<MSLane*> myIncomingLanes;
82 
84  std::vector<MSLane*> myInternalLanes;
85 
86 private:
89 
92 
93 };
94 
95 
96 #endif
97 
98 /****************************************************************************/
99 
virtual const std::vector< MSLane * > getInternalLanes() const
Returns all internal lanes on the junction.
std::vector< MSLane * > myIncomingLanes
The base class for an intersection.
Definition: MSJunction.h:64
virtual ~MSNoLogicJunction()
Destructor.
MSNoLogicJunction(const std::string &id, SumoXMLNodeType type, const Position &position, const PositionVector &shape, std::vector< MSLane *> incoming, std::vector< MSLane *> internal)
Constructor.
MSNoLogicJunction & operator=(const MSNoLogicJunction &)
Invalidated assignment operator.
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:45
A list of positions.
std::vector< MSLane * > myInternalLanes
SumoXMLNodeType
Numbers representing special SUMO-XML-attribute values for representing node- (junction-) types used ...
Representation of a lane in the micro simulation.
Definition: MSLane.h:77