1 /****************************************************************************/ 2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo 3 // Copyright (C) 2001-2019 German Aerospace Center (DLR) and others. 4 // This program and the accompanying materials 5 // are made available under the terms of the Eclipse Public License v2.0 6 // which accompanies this distribution, and is available at 7 // http://www.eclipse.org/legal/epl-v20.html 8 // SPDX-License-Identifier: EPL-2.0 9 /****************************************************************************/ 10 /// @file StopEdge.h 11 /// @author Michael Behrisch 12 /// @date Mon, 03 March 2014 13 /// @version $Id$ 14 /// 15 // The StopEdge is a special intermodal edge representing bus and train stops 16 /****************************************************************************/ 17 #ifndef StopEdge_h 18 #define StopEdge_h 19 20 21 // =========================================================================== 22 // included modules 23 // =========================================================================== 24 #include <config.h> 25 26 #include "IntermodalEdge.h" 27 28 29 // =========================================================================== 30 // class definitions 31 // =========================================================================== 32 /// @brief the stop edge type representing bus and train stops 33 template<class E, class L, class N, class V> 34 class StopEdge : public IntermodalEdge<E, L, N, V> { 35 public: StopEdge(const std::string id,int numericalID,const E * edge)36 StopEdge(const std::string id, int numericalID, const E* edge) : 37 IntermodalEdge<E, L, N, V>(id, numericalID, edge, "!stop") { } 38 includeInRoute(bool)39 bool includeInRoute(bool /* allEdges */) const { 40 return true; 41 } 42 }; 43 44 45 #endif 46 47 /****************************************************************************/ 48