Eclipse 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-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 /****************************************************************************/
16 // -------------------
17 /****************************************************************************/
18 #ifndef NIVissimNodeParticipatingEdge_h
19 #define NIVissimNodeParticipatingEdge_h
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
27 
28 #include <string>
29 #include <utils/geom/Position.h>
30 
31 // ===========================================================================
32 // class definitions
33 // ===========================================================================
38 public:
40  double frompos, double topos);
42  int getID() const;
43  bool positionLiesWithin(double pos) const;
44  double getFromPos() const;
45  double getToPos() const;
46 private:
47  int myEdgeID;
48  double myFromPos, myToPos;
49 };
50 
51 
52 #endif
53 
54 /****************************************************************************/
55 
NIVissimNodeParticipatingEdge(int edgeid, double frompos, double topos)