/****************************************************************************/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 StopEdge.h14/// @author Michael Behrisch15/// @date Mon, 03 March 201416///17// The StopEdge is a special intermodal edge representing bus and train stops18/****************************************************************************/19#pragma once20#include <config.h>2122#include "IntermodalEdge.h"232425// ===========================================================================26// class definitions27// ===========================================================================28/// @brief the stop edge type representing bus and train stops29template<class E, class L, class N, class V>30class StopEdge : public IntermodalEdge<E, L, N, V> {31public:32StopEdge(const std::string id, int numericalID, const E* edge, const double startPos, const double endPos) :33IntermodalEdge<E, L, N, V>(id, numericalID, edge, "!stop", 0), myStartPos(startPos), myEndPos(endPos) { }3435bool includeInRoute(bool /* allEdges */) const {36return true;37}3839double getStartPos() const {40return myStartPos;41}4243double getEndPos() const {44return myEndPos;45}4647private:48/// @brief start position49const double myStartPos;5051/// @brief end position52const double myEndPos;5354};555657