Eclipse SUMO - Simulation of Urban MObility
StopEdge.h
Go to the documentation of this file.
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 /****************************************************************************/
14 // The StopEdge is a special intermodal edge representing bus and train stops
15 /****************************************************************************/
16 #ifndef StopEdge_h
17 #define StopEdge_h
18 
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include <config.h>
24 
25 #include "IntermodalEdge.h"
26 
27 
28 // ===========================================================================
29 // class definitions
30 // ===========================================================================
32 template<class E, class L, class N, class V>
33 class StopEdge : public IntermodalEdge<E, L, N, V> {
34 public:
35  StopEdge(const std::string id, int numericalID, const E* edge) :
36  IntermodalEdge<E, L, N, V>(id, numericalID, edge, "!stop") { }
37 
38  bool includeInRoute(bool /* allEdges */) const {
39  return true;
40  }
41 };
42 
43 
44 #endif
45 
46 /****************************************************************************/
IntermodalEdge.h
IntermodalEdge
the base edge type that is given to the internal router (SUMOAbstractRouter)
Definition: IntermodalEdge.h:39
StopEdge::StopEdge
StopEdge(const std::string id, int numericalID, const E *edge)
Definition: StopEdge.h:35
StopEdge
the stop edge type representing bus and train stops
Definition: StopEdge.h:33
config.h
StopEdge::includeInRoute
bool includeInRoute(bool) const
Definition: StopEdge.h:38