SUMO - Simulation of Urban MObility
NIVissimExtendedEdgePoint.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 NIVissimExtendedEdgePoint_h
21 #define NIVissimExtendedEdgePoint_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 #include <vector>
34 
35 
36 // ===========================================================================
37 // class declarations
38 // ===========================================================================
39 class NBEdge;
40 class Position;
41 
42 
43 // ===========================================================================
44 // class definitions
45 // ===========================================================================
50 public:
57  NIVissimExtendedEdgePoint(int edgeid, const std::vector<int>& lanes,
58  double position, const std::vector<int>& assignedVehicles);
60  int getEdgeID() const;
61  double getPosition() const;
62  Position getGeomPosition() const;
63  const std::vector<int>& getLanes() const;
64 
65 
73  void recheckLanes(const NBEdge* const edge);
74 
75 private:
76  int myEdgeID;
77  std::vector<int> myLanes;
78  double myPosition;
79  std::vector<int> myAssignedVehicles;
80 };
81 
82 
83 #endif
84 
85 /****************************************************************************/
86 
void recheckLanes(const NBEdge *const edge)
Resets lane numbers if all lanes shall be used.
The representation of a single edge during network building.
Definition: NBEdge.h:70
NIVissimExtendedEdgePoint(int edgeid, const std::vector< int > &lanes, double position, const std::vector< int > &assignedVehicles)
Constructor.
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:45
const std::vector< int > & getLanes() const