Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
MSInternalJunction.h
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2001-2024 German Aerospace Center (DLR) and others.
4// This program and the accompanying materials are made available under the
5// terms of the Eclipse Public License 2.0 which is available at
6// https://www.eclipse.org/legal/epl-2.0/
7// This Source Code may also be made available under the following Secondary
8// Licenses when the conditions for such availability set forth in the Eclipse
9// Public License 2.0 are satisfied: GNU General Public License, version 2
10// or later which is available at
11// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13/****************************************************************************/
20// junction.
21/****************************************************************************/
22#pragma once
23#include <config.h>
24
26#include "MSLogicJunction.h"
27#include <bitset>
28#include <vector>
29#include <string>
30
31
32// ===========================================================================
33// class declarations
34// ===========================================================================
35class MSLane;
36class MSJunctionLogic;
37class MSLink;
38
39
40// ===========================================================================
41// class definitions
42// ===========================================================================
50public:
58 MSInternalJunction(const std::string& id, SumoXMLNodeType type, const Position& position,
59 const PositionVector& shape,
60 std::vector<MSLane*> incoming, std::vector<MSLane*> internal);
61
63 virtual ~MSInternalJunction();
64
65
66 void postloadInit();
67
68 const std::vector<MSLink*>& getFoeLinks(const MSLink* const srcLink) const {
69 UNUSED_PARAMETER(srcLink);
70 return myInternalLinkFoes;
71 }
72
73 const std::vector<MSLane*>& getFoeInternalLanes(const MSLink* const srcLink) const {
74 UNUSED_PARAMETER(srcLink);
75 return myInternalLaneFoes;
76 }
77
78private:
79
80 bool indirectBicycleTurn(const MSLane* specialLane, const MSLink* thisLink, const MSLane* foeFirstPart, const MSLink* foeLink) const;
81
82 std::vector<MSLink*> myInternalLinkFoes;
83 std::vector<MSLane*> myInternalLaneFoes;
84
87
90
91};
SumoXMLNodeType
Numbers representing special SUMO-XML-attribute values for representing node- (junction-) types used ...
#define UNUSED_PARAMETER(x)
Definition StdDefs.h:30
void postloadInit()
initialises the junction after the whole net has been loaded
const std::vector< MSLink * > & getFoeLinks(const MSLink *const srcLink) const
MSInternalJunction(const MSInternalJunction &)
Invalidated copy constructor.
virtual ~MSInternalJunction()
Destructor.
bool indirectBicycleTurn(const MSLane *specialLane, const MSLink *thisLink, const MSLane *foeFirstPart, const MSLink *foeLink) const
std::vector< MSLane * > myInternalLaneFoes
std::vector< MSLink * > myInternalLinkFoes
MSInternalJunction & operator=(const MSInternalJunction &)
Invalidated assignment operator.
const std::vector< MSLane * > & getFoeInternalLanes(const MSLink *const srcLink) const
Representation of a lane in the micro simulation.
Definition MSLane.h:84
A point in 2D or 3D with translation and scaling methods.
Definition Position.h:37
A list of positions.