Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
NIVissimExtendedEdgePoint.h
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2001-2024 German Aerospace Center (DLR) and others.
4// This program and the accompanying materials are made available under the
5// terms of the Eclipse Public License 2.0 which is available at
6// https://www.eclipse.org/legal/epl-2.0/
7// This Source Code may also be made available under the following Secondary
8// Licenses when the conditions for such availability set forth in the Eclipse
9// Public License 2.0 are satisfied: GNU General Public License, version 2
10// or later which is available at
11// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13/****************************************************************************/
19// -------------------
20/****************************************************************************/
21#pragma once
22#include <config.h>
23
24#include <vector>
25
26
27// ===========================================================================
28// class declarations
29// ===========================================================================
30class NBEdge;
31class Position;
32
33
34// ===========================================================================
35// class definitions
36// ===========================================================================
41public:
48 NIVissimExtendedEdgePoint(int edgeid, const std::vector<int>& lanes,
49 double position, const std::vector<int>& assignedVehicles);
51 int getEdgeID() const;
52 double getPosition() const;
54 const std::vector<int>& getLanes() const;
55
56
64 void recheckLanes(const NBEdge* const edge);
65
66private:
68 std::vector<int> myLanes;
69 double myPosition;
70 std::vector<int> myAssignedVehicles;
71};
The representation of a single edge during network building.
Definition NBEdge.h:92
void recheckLanes(const NBEdge *const edge)
Resets lane numbers if all lanes shall be used.
const std::vector< int > & getLanes() const
A point in 2D or 3D with translation and scaling methods.
Definition Position.h:37