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-2016 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 // ===========================================================================
59 #ifdef HAVE_INTERNAL_LANES
60 class MSInternalJunction : public MSLogicJunction {
61 public:
69  MSInternalJunction(const std::string& id, SumoXMLNodeType type, const Position& position,
70  const PositionVector& shape,
71  std::vector<MSLane*> incoming, std::vector<MSLane*> internal);
72 
74  virtual ~MSInternalJunction();
75 
76 
77  void postloadInit();
78 
79  const std::vector<MSLink*>& getFoeLinks(const MSLink* const srcLink) const {
80  UNUSED_PARAMETER(srcLink);
81  return myInternalLinkFoes;
82  }
83 
84  const std::vector<MSLane*>& getFoeInternalLanes(const MSLink* const srcLink) const {
85  UNUSED_PARAMETER(srcLink);
86  return myInternalLaneFoes;
87  }
88 
89 private:
90 
91  std::vector<MSLink*> myInternalLinkFoes;
92  std::vector<MSLane*> myInternalLaneFoes;
93 
96 
98  MSInternalJunction& operator=(const MSInternalJunction&);
99 
100 };
101 
102 
103 #endif
104 #endif
105 
106 /****************************************************************************/
107 
#define UNUSED_PARAMETER(x)
Definition: StdDefs.h:39
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 ...
Representation of a lane in the micro simulation.
Definition: MSLane.h:79