/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2001-2025 German Aerospace Center (DLR) and others.3// This program and the accompanying materials are made available under the4// terms of the Eclipse Public License 2.0 which is available at5// https://www.eclipse.org/legal/epl-2.0/6// This Source Code may also be made available under the following Secondary7// Licenses when the conditions for such availability set forth in the Eclipse8// Public License 2.0 are satisfied: GNU General Public License, version 29// or later which is available at10// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html11// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later12/****************************************************************************/13/// @file MSJunctionControl.cpp14/// @author Christian Roessel15/// @author Daniel Krajzewicz16/// @author Michael Behrisch17/// @date Tue, 06 Mar 200118///19// Container for junctions; performs operations on all stored junctions20/****************************************************************************/21#include <config.h>2223#include <algorithm>24#include "MSInternalJunction.h"25#include "MSJunctionControl.h"26#include "MSLink.h"272829// ===========================================================================30// member method definitions31// ===========================================================================32MSJunctionControl::MSJunctionControl() {33}343536MSJunctionControl::~MSJunctionControl() {37}383940void41MSJunctionControl::postloadInitContainer() {42// initialize normal junctions before internal junctions43// (to allow calling getIndex() during initialization of internal junction links)44for (const auto& i : *this) {45if (i.second->getType() != SumoXMLNodeType::INTERNAL) {46i.second->postloadInit();47}48}49for (const auto& i : *this) {50if (i.second->getType() == SumoXMLNodeType::INTERNAL) {51i.second->postloadInit();52}53}54MSLink::recheckSetRequestInformation();55}565758/****************************************************************************/596061