SUMO - Simulation of Urban MObility
MSInternalJunction.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 /****************************************************************************/
19 // junction.
20 /****************************************************************************/
21 #ifndef MSInternalJunction_h
22 #define MSInternalJunction_h
23 
24 
25 // ===========================================================================
26 // included modules
27 // ===========================================================================
28 #ifdef _MSC_VER
29 #include <windows_config.h>
30 #else
31 #include <config.h>
32 #endif
33 
34 #include <utils/common/StdDefs.h>
35 #include "MSLogicJunction.h"
36 #include <bitset>
37 #include <vector>
38 #include <string>
39 
40 
41 // ===========================================================================
42 // class declarations
43 // ===========================================================================
44 class MSLane;
45 class MSJunctionLogic;
46 class MSLink;
47 
48 
49 // ===========================================================================
50 // class definitions
51 // ===========================================================================
59 public:
67  MSInternalJunction(const std::string& id, SumoXMLNodeType type, const Position& position,
68  const PositionVector& shape,
69  std::vector<MSLane*> incoming, std::vector<MSLane*> internal);
70 
72  virtual ~MSInternalJunction();
73 
74 
75  void postloadInit();
76 
77  const std::vector<MSLink*>& getFoeLinks(const MSLink* const srcLink) const {
78  UNUSED_PARAMETER(srcLink);
79  return myInternalLinkFoes;
80  }
81 
82  const std::vector<MSLane*>& getFoeInternalLanes(const MSLink* const srcLink) const {
83  UNUSED_PARAMETER(srcLink);
84  return myInternalLaneFoes;
85  }
86 
87 private:
88 
89  std::vector<MSLink*> myInternalLinkFoes;
90  std::vector<MSLane*> myInternalLaneFoes;
91 
94 
97 
98 };
99 
100 
101 #endif
102 
103 /****************************************************************************/
104 
MSInternalJunction(const std::string &id, SumoXMLNodeType type, const Position &position, const PositionVector &shape, std::vector< MSLane *> incoming, std::vector< MSLane *> internal)
Constructor.
#define UNUSED_PARAMETER(x)
Definition: StdDefs.h:39
virtual ~MSInternalJunction()
Destructor.
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:45
A list of positions.
SumoXMLNodeType
Numbers representing special SUMO-XML-attribute values for representing node- (junction-) types used ...
std::vector< MSLane * > myInternalLaneFoes
std::vector< MSLink * > myInternalLinkFoes
MSInternalJunction & operator=(const MSInternalJunction &)
Invalidated assignment operator.
void postloadInit()
initialises the junction after the whole net has been loaded
Representation of a lane in the micro simulation.
Definition: MSLane.h:77
const std::vector< MSLink * > & getFoeLinks(const MSLink *const srcLink) const
const std::vector< MSLane * > & getFoeInternalLanes(const MSLink *const srcLink) const