SUMO - Simulation of Urban MObility
MSNoLogicJunction.h
Go to the documentation of this file.
1 /****************************************************************************/
10 // logic, e.g. for exits.
11 /****************************************************************************/
12 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
13 // Copyright (C) 2001-2017 DLR (http://www.dlr.de/) and contributors
14 /****************************************************************************/
15 //
16 // This file is part of SUMO.
17 // SUMO is free software: you can redistribute it and/or modify
18 // it under the terms of the GNU General Public License as published by
19 // the Free Software Foundation, either version 3 of the License, or
20 // (at your option) any later version.
21 //
22 /****************************************************************************/
23 #ifndef MSNoLogicJunction_h
24 #define MSNoLogicJunction_h
25 
26 
27 // ===========================================================================
28 // included modules
29 // ===========================================================================
30 #ifdef _MSC_VER
31 #include <windows_config.h>
32 #else
33 #include <config.h>
34 #endif
35 
36 #include <string>
37 #include <vector>
38 #include <bitset>
39 #include "MSJunction.h"
40 
41 // ===========================================================================
42 // class declarations
43 // ===========================================================================
44 class MSLane;
45 
46 
47 // ===========================================================================
48 // class definitions
49 // ===========================================================================
56 class MSNoLogicJunction : public MSJunction {
57 public:
59  virtual ~MSNoLogicJunction();
60 
68  MSNoLogicJunction(const std::string& id, SumoXMLNodeType type, const Position& position,
69  const PositionVector& shape,
70  std::vector<MSLane*> incoming,
71  std::vector<MSLane*> internal);
72 
74  void postloadInit();
75 
78  virtual const std::vector<MSLane*>& getInternalLanes() const {
79  return myInternalLanes;
80  }
81 
82 private:
84  std::vector<MSLane*> myIncomingLanes;
85 
87  std::vector<MSLane*> myInternalLanes;
88 
89 private:
92 
95 
96 };
97 
98 
99 #endif
100 
101 /****************************************************************************/
102 
std::vector< MSLane * > myIncomingLanes
The base class for an intersection.
Definition: MSJunction.h:64
virtual ~MSNoLogicJunction()
Destructor.
virtual const std::vector< MSLane * > & getInternalLanes() const
Returns all internal lanes on the junction.
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:46
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:79