Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
RODFEdge.h
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2006-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/****************************************************************************/
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// ===========================================================================
36class ROLane;
37
38
39// ===========================================================================
40// class definitions
41// ===========================================================================
45class RODFEdge : public ROEdge {
46public:
54 RODFEdge(const std::string& id, RONode* from, RONode* to, int index, const int priority);
55
56
58 ~RODFEdge();
59
60 void setFlows(const std::vector<FlowDef>& flows);
61
62 const std::vector<FlowDef>& getFlows() const;
63
64
65private:
66 std::vector<FlowDef> myFlows;
67
68private:
70 RODFEdge(const RODFEdge& src);
71
74
75};
RODFEdge & operator=(const RODFEdge &src)
Invalidated assignment operator.
~RODFEdge()
Destructor.
Definition RODFEdge.cpp:37
void setFlows(const std::vector< FlowDef > &flows)
Definition RODFEdge.cpp:41
RODFEdge(const RODFEdge &src)
Invalidated copy constructor.
std::vector< FlowDef > myFlows
Definition RODFEdge.h:66
const std::vector< FlowDef > & getFlows() const
Definition RODFEdge.cpp:47
A basic edge for routing applications.
Definition ROEdge.h:70
A single lane the router may use.
Definition ROLane.h:48
Base class for nodes used by the router.
Definition RONode.h:43