Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/src/netimport/vissim/tempstructs/NIVissimExtendedEdgePoint.h
169684 views
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3
// Copyright (C) 2001-2025 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
/****************************************************************************/
14
/// @file NIVissimExtendedEdgePoint.h
15
/// @author Daniel Krajzewicz
16
/// @author Michael Behrisch
17
/// @date Sept 2002
18
///
19
// -------------------
20
/****************************************************************************/
21
#pragma once
22
#include <config.h>
23
24
#include <vector>
25
26
27
// ===========================================================================
28
// class declarations
29
// ===========================================================================
30
class NBEdge;
31
class Position;
32
33
34
// ===========================================================================
35
// class definitions
36
// ===========================================================================
37
/**
38
*
39
*/
40
class NIVissimExtendedEdgePoint {
41
public:
42
/** @brief Constructor
43
* @param[in] edgeid The id of the Vissim-edge
44
* @param[in] lanes Lanes on which this point lies
45
* @param[in] position The position of this point at the edge
46
* @param[in] assignedVehicles Vehicle (type) indices which should be regarded by this point
47
*/
48
NIVissimExtendedEdgePoint(int edgeid, const std::vector<int>& lanes,
49
double position, const std::vector<int>& assignedVehicles);
50
~NIVissimExtendedEdgePoint();
51
int getEdgeID() const;
52
double getPosition() const;
53
Position getGeomPosition() const;
54
const std::vector<int>& getLanes() const;
55
56
57
/** @brief Resets lane numbers if all lanes shall be used
58
*
59
* If myLanes contains a -1, the content of myLanes is replaced
60
* by indices of all lanes of the given edge.
61
*
62
* @param[in] The built edge
63
*/
64
void recheckLanes(const NBEdge* const edge);
65
66
private:
67
int myEdgeID;
68
std::vector<int> myLanes;
69
double myPosition;
70
std::vector<int> myAssignedVehicles;
71
};
72
73