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