Eclipse SUMO - Simulation of Urban MObility
MSLogicJunction.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 // with one ore more logics.
19 /****************************************************************************/
20 #ifndef MSLogicJunction_h
21 #define MSLogicJunction_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #include <config.h>
28 
29 #include "MSJunction.h"
30 #include <utils/common/SUMOTime.h>
31 #include <utils/common/StdDefs.h>
32 #include <bitset>
33 #include <vector>
34 
35 
36 // ===========================================================================
37 // class declarations
38 // ===========================================================================
39 class MSLane;
40 
41 
42 // ===========================================================================
43 // class definitions
44 // ===========================================================================
51 class MSLogicJunction : public MSJunction {
52 public:
53 
54 
56  virtual ~MSLogicJunction();
57 
59  typedef std::bitset<SUMO_MAX_CONNECTIONS> LinkBits;
60 
62  virtual void postloadInit();
63 
66  const std::vector<MSLane*> getInternalLanes() const;
67 
68 protected:
77  MSLogicJunction(const std::string& id,
78  SumoXMLNodeType type,
79  const Position& position,
80  const PositionVector& shape,
81  std::vector<MSLane*> incoming,
82  std::vector<MSLane*> internal
83  );
84 
85 protected:
87  std::vector<MSLane*> myIncomingLanes;
88 
90  std::vector<MSLane*> myInternalLanes;
91 
92 private:
95 
98 
99 };
100 
101 
102 #endif
103 
104 /****************************************************************************/
105 
The base class for an intersection.
Definition: MSJunction.h:61
std::vector< MSLane * > myIncomingLanes
list of incoming lanes
MSLogicJunction & operator=(const MSLogicJunction &)
Invalidated assignment operator.
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:39
A list of positions.
virtual ~MSLogicJunction()
Destructor.
const std::vector< MSLane * > getInternalLanes() const
Returns all internal lanes on the junction.
virtual void postloadInit()
initialises the junction after the whole net has been loaded
std::vector< MSLane * > myInternalLanes
list of internal lanes
SumoXMLNodeType
Numbers representing special SUMO-XML-attribute values for representing node- (junction-) types used ...
MSLogicJunction(const std::string &id, SumoXMLNodeType type, const Position &position, const PositionVector &shape, std::vector< MSLane *> incoming, std::vector< MSLane *> internal)
Constructor.
std::bitset< SUMO_MAX_CONNECTIONS > LinkBits
Container for link response and foes.
Representation of a lane in the micro simulation.
Definition: MSLane.h:83