Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/src/dfrouter/RODFEdge.h
169666 views
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3
// Copyright (C) 2006-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 RODFEdge.h
15
/// @author Daniel Krajzewicz
16
/// @author Michael Behrisch
17
/// @author Yun-Pang Floetteroed
18
/// @date Thu, 16.03.2006
19
///
20
// An edge within the DFROUTER
21
/****************************************************************************/
22
#pragma once
23
#include <config.h>
24
25
#include <string>
26
#include <map>
27
#include <vector>
28
#include <router/ROEdge.h>
29
#include <utils/geom/Position.h>
30
#include "RODFDetectorFlow.h"
31
32
33
// ===========================================================================
34
// class declarations
35
// ===========================================================================
36
class ROLane;
37
38
39
// ===========================================================================
40
// class definitions
41
// ===========================================================================
42
/**
43
* @class RODFEdge
44
*/
45
class RODFEdge : public ROEdge {
46
public:
47
/** @brief Constructor
48
*
49
* @param[in] id The id of the edge
50
* @param[in] from The node the edge begins at
51
* @param[in] to The node the edge ends at
52
* @param[in] index The numeric id of the edge
53
*/
54
RODFEdge(const std::string& id, RONode* from, RONode* to, int index, const int priority, const std::string& type);
55
56
57
/// @brief Destructor
58
~RODFEdge();
59
60
void setFlows(const std::vector<FlowDef>& flows);
61
62
const std::vector<FlowDef>& getFlows() const;
63
64
65
private:
66
std::vector<FlowDef> myFlows;
67
68
private:
69
/// @brief Invalidated copy constructor
70
RODFEdge(const RODFEdge& src);
71
72
/// @brief Invalidated assignment operator
73
RODFEdge& operator=(const RODFEdge& src);
74
75
};
76
77