SUMO - Simulation of Urban MObility
MSInternalJunction.h
Go to the documentation of this file.
1 /****************************************************************************/
9 // junction.
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
12 // Copyright (C) 2001-2017 DLR (http://www.dlr.de/) and contributors
13 /****************************************************************************/
14 //
15 // This file is part of SUMO.
16 // SUMO is free software: you can redistribute it and/or modify
17 // it under the terms of the GNU General Public License as published by
18 // the Free Software Foundation, either version 3 of the License, or
19 // (at your option) any later version.
20 //
21 /****************************************************************************/
22 #ifndef MSInternalJunction_h
23 #define MSInternalJunction_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 <utils/common/StdDefs.h>
36 #include "MSLogicJunction.h"
37 #include <bitset>
38 #include <vector>
39 #include <string>
40 
41 
42 // ===========================================================================
43 // class declarations
44 // ===========================================================================
45 class MSLane;
46 class MSJunctionLogic;
47 class MSLink;
48 
49 
50 // ===========================================================================
51 // class definitions
52 // ===========================================================================
60 public:
68  MSInternalJunction(const std::string& id, SumoXMLNodeType type, const Position& position,
69  const PositionVector& shape,
70  std::vector<MSLane*> incoming, std::vector<MSLane*> internal);
71 
73  virtual ~MSInternalJunction();
74 
75 
76  void postloadInit();
77 
78  const std::vector<MSLink*>& getFoeLinks(const MSLink* const srcLink) const {
79  UNUSED_PARAMETER(srcLink);
80  return myInternalLinkFoes;
81  }
82 
83  const std::vector<MSLane*>& getFoeInternalLanes(const MSLink* const srcLink) const {
84  UNUSED_PARAMETER(srcLink);
85  return myInternalLaneFoes;
86  }
87 
88 private:
89 
90  std::vector<MSLink*> myInternalLinkFoes;
91  std::vector<MSLane*> myInternalLaneFoes;
92 
95 
98 
99 };
100 
101 
102 #endif
103 
104 /****************************************************************************/
105 
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:38
virtual ~MSInternalJunction()
Destructor.
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:46
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:79
const std::vector< MSLink * > & getFoeLinks(const MSLink *const srcLink) const
const std::vector< MSLane * > & getFoeInternalLanes(const MSLink *const srcLink) const