Eclipse 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-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 // -------------------
16 /****************************************************************************/
17 #ifndef NIVissimExtendedEdgePoint_h
18 #define NIVissimExtendedEdgePoint_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include <vector>
27 
28 
29 // ===========================================================================
30 // class declarations
31 // ===========================================================================
32 class NBEdge;
33 class Position;
34 
35 
36 // ===========================================================================
37 // class definitions
38 // ===========================================================================
43 public:
50  NIVissimExtendedEdgePoint(int edgeid, const std::vector<int>& lanes,
51  double position, const std::vector<int>& assignedVehicles);
53  int getEdgeID() const;
54  double getPosition() const;
55  Position getGeomPosition() const;
56  const std::vector<int>& getLanes() const;
57 
58 
66  void recheckLanes(const NBEdge* const edge);
67 
68 private:
69  int myEdgeID;
70  std::vector<int> myLanes;
71  double myPosition;
72  std::vector<int> myAssignedVehicles;
73 };
74 
75 
76 #endif
77 
78 /****************************************************************************/
79 
NIVissimExtendedEdgePoint::NIVissimExtendedEdgePoint
NIVissimExtendedEdgePoint(int edgeid, const std::vector< int > &lanes, double position, const std::vector< int > &assignedVehicles)
Constructor.
Definition: NIVissimExtendedEdgePoint.cpp:33
NIVissimExtendedEdgePoint::getLanes
const std::vector< int > & getLanes() const
Definition: NIVissimExtendedEdgePoint.cpp:63
NIVissimExtendedEdgePoint::myLanes
std::vector< int > myLanes
Definition: NIVissimExtendedEdgePoint.h:70
NIVissimExtendedEdgePoint::getEdgeID
int getEdgeID() const
Definition: NIVissimExtendedEdgePoint.cpp:44
NBEdge
The representation of a single edge during network building.
Definition: NBEdge.h:91
NIVissimExtendedEdgePoint
Definition: NIVissimExtendedEdgePoint.h:42
NIVissimExtendedEdgePoint::~NIVissimExtendedEdgePoint
~NIVissimExtendedEdgePoint()
Definition: NIVissimExtendedEdgePoint.cpp:40
NIVissimExtendedEdgePoint::myPosition
double myPosition
Definition: NIVissimExtendedEdgePoint.h:71
Position
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:38
NIVissimExtendedEdgePoint::recheckLanes
void recheckLanes(const NBEdge *const edge)
Resets lane numbers if all lanes shall be used.
Definition: NIVissimExtendedEdgePoint.cpp:69
NIVissimExtendedEdgePoint::myAssignedVehicles
std::vector< int > myAssignedVehicles
Definition: NIVissimExtendedEdgePoint.h:72
NIVissimExtendedEdgePoint::getGeomPosition
Position getGeomPosition() const
Definition: NIVissimExtendedEdgePoint.cpp:56
config.h
NIVissimExtendedEdgePoint::myEdgeID
int myEdgeID
Definition: NIVissimExtendedEdgePoint.h:69
NIVissimExtendedEdgePoint::getPosition
double getPosition() const
Definition: NIVissimExtendedEdgePoint.cpp:50