Eclipse SUMO - Simulation of Urban MObility
RODFEdge.cpp
Go to the documentation of this file.
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3
// Copyright (C) 2006-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
/****************************************************************************/
17
// An edge within the DFROUTER
18
/****************************************************************************/
19
20
21
// ===========================================================================
22
// included modules
23
// ===========================================================================
24
#include <
config.h
>
25
26
#include <algorithm>
27
#include <
utils/common/MsgHandler.h
>
28
#include "
RODFEdge.h
"
29
30
31
// ===========================================================================
32
// method definitions
33
// ===========================================================================
34
RODFEdge::RODFEdge
(
const
std::string&
id
,
RONode
* from,
RONode
* to,
int
index,
const
int
priority)
35
:
ROEdge
(id, from, to, index, priority) {}
36
37
38
RODFEdge::~RODFEdge
() {}
39
40
41
void
42
RODFEdge::setFlows
(
const
std::vector<FlowDef>& flows) {
43
myFlows
= flows;
44
}
45
46
47
const
std::vector<FlowDef>&
48
RODFEdge::getFlows
()
const
{
49
return
myFlows
;
50
}
51
52
53
/****************************************************************************/
54
RODFEdge::~RODFEdge
~RODFEdge()
Destructor.
Definition:
RODFEdge.cpp:38
MsgHandler.h
RODFEdge::getFlows
const std::vector< FlowDef > & getFlows() const
Definition:
RODFEdge.cpp:48
RODFEdge.h
RODFEdge::setFlows
void setFlows(const std::vector< FlowDef > &flows)
Definition:
RODFEdge.cpp:42
RODFEdge::myFlows
std::vector< FlowDef > myFlows
Definition:
RODFEdge.h:68
RODFEdge::RODFEdge
RODFEdge(const std::string &id, RONode *from, RONode *to, int index, const int priority)
Constructor.
Definition:
RODFEdge.cpp:34
ROEdge
A basic edge for routing applications.
Definition:
ROEdge.h:72
config.h
RONode
Base class for nodes used by the router.
Definition:
RONode.h:45
src
dfrouter
RODFEdge.cpp
Generated on Sun Dec 13 2020 08:44:58 for Eclipse SUMO - Simulation of Urban MObility by
1.8.20