SUMO - Simulation of Urban MObility
NIVissimNodeParticipatingEdge.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-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
18 // -------------------
19 /****************************************************************************/
20 #ifndef NIVissimNodeParticipatingEdge_h
21 #define NIVissimNodeParticipatingEdge_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 
34 #include <string>
35 #include <utils/geom/Position.h>
36 
37 // ===========================================================================
38 // class definitions
39 // ===========================================================================
44 public:
46  double frompos, double topos);
48  int getID() const;
49  bool positionLiesWithin(double pos) const;
50  double getFromPos() const;
51  double getToPos() const;
52 private:
53  int myEdgeID;
54  double myFromPos, myToPos;
55 };
56 
57 
58 #endif
59 
60 /****************************************************************************/
61 
NIVissimNodeParticipatingEdge(int edgeid, double frompos, double topos)