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 /****************************************************************************/
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 // ===========================================================================
33 template<class E, class L, class N, class V>
34 class StopEdge : public IntermodalEdge<E, L, N, V> {
35 public:
36  StopEdge(const std::string id, int numericalID, const E* edge) :
37  IntermodalEdge<E, L, N, V>(id, numericalID, edge, "!stop") { }
38 
39  bool includeInRoute(bool /* allEdges */) const {
40  return true;
41  }
42 };
43 
44 
45 #endif
46 
47 /****************************************************************************/
IntermodalEdge.h
FareToken::L
IntermodalEdge
the base edge type that is given to the internal router (SUMOAbstractRouter)
Definition: IntermodalEdge.h:40
StopEdge::StopEdge
StopEdge(const std::string id, int numericalID, const E *edge)
Definition: StopEdge.h:36
StopEdge
the stop edge type representing bus and train stops
Definition: StopEdge.h:34
config.h
StopEdge::includeInRoute
bool includeInRoute(bool) const
Definition: StopEdge.h:39