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-2018 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 // junction.
18 /****************************************************************************/
19 #ifndef MSInternalJunction_h
20 #define MSInternalJunction_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #include <config.h>
27 
28 #include <utils/common/StdDefs.h>
29 #include "MSLogicJunction.h"
30 #include <bitset>
31 #include <vector>
32 #include <string>
33 
34 
35 // ===========================================================================
36 // class declarations
37 // ===========================================================================
38 class MSLane;
39 class MSJunctionLogic;
40 class MSLink;
41 
42 
43 // ===========================================================================
44 // class definitions
45 // ===========================================================================
53 public:
61  MSInternalJunction(const std::string& id, SumoXMLNodeType type, const Position& position,
62  const PositionVector& shape,
63  std::vector<MSLane*> incoming, std::vector<MSLane*> internal);
64 
66  virtual ~MSInternalJunction();
67 
68 
69  void postloadInit();
70 
71  const std::vector<MSLink*>& getFoeLinks(const MSLink* const srcLink) const {
72  UNUSED_PARAMETER(srcLink);
73  return myInternalLinkFoes;
74  }
75 
76  const std::vector<MSLane*>& getFoeInternalLanes(const MSLink* const srcLink) const {
77  UNUSED_PARAMETER(srcLink);
78  return myInternalLaneFoes;
79  }
80 
81 private:
82 
83  bool indirectBicycleTurn(const MSLane* specialLane, const MSLink* thisLink, const MSLane* foeFirstPart, const MSLink* foeLink) const;
84 
85  std::vector<MSLink*> myInternalLinkFoes;
86  std::vector<MSLane*> myInternalLaneFoes;
87 
90 
93 
94 };
95 
96 
97 #endif
98 
99 /****************************************************************************/
100 
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:33
virtual ~MSInternalJunction()
Destructor.
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:39
A list of positions.
bool indirectBicycleTurn(const MSLane *specialLane, const MSLink *thisLink, const MSLane *foeFirstPart, const MSLink *foeLink) const
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:78
const std::vector< MSLink * > & getFoeLinks(const MSLink *const srcLink) const
const std::vector< MSLane * > & getFoeInternalLanes(const MSLink *const srcLink) const