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
/****************************************************************************/
18
// An edge within the DFROUTER
19
/****************************************************************************/
20
21
22
// ===========================================================================
23
// included modules
24
// ===========================================================================
25
#include <
config.h
>
26
27
#include <algorithm>
28
#include <
utils/common/MsgHandler.h
>
29
#include "
RODFEdge.h
"
30
31
32
// ===========================================================================
33
// method definitions
34
// ===========================================================================
35
RODFEdge::RODFEdge
(
const
std::string&
id
,
RONode
* from,
RONode
* to,
int
index,
const
int
priority)
36
:
ROEdge
(id, from, to, index, priority) {}
37
38
39
RODFEdge::~RODFEdge
() {}
40
41
42
void
43
RODFEdge::setFlows
(
const
std::vector<FlowDef>& flows) {
44
myFlows
= flows;
45
}
46
47
48
const
std::vector<FlowDef>&
49
RODFEdge::getFlows
()
const
{
50
return
myFlows
;
51
}
52
53
54
/****************************************************************************/
55
RODFEdge::~RODFEdge
~RODFEdge()
Destructor.
Definition:
RODFEdge.cpp:39
MsgHandler.h
RODFEdge::getFlows
const std::vector< FlowDef > & getFlows() const
Definition:
RODFEdge.cpp:49
RODFEdge.h
RODFEdge::setFlows
void setFlows(const std::vector< FlowDef > &flows)
Definition:
RODFEdge.cpp:43
RODFEdge::myFlows
std::vector< FlowDef > myFlows
Definition:
RODFEdge.h:69
RODFEdge::RODFEdge
RODFEdge(const std::string &id, RONode *from, RONode *to, int index, const int priority)
Constructor.
Definition:
RODFEdge.cpp:35
ROEdge
A basic edge for routing applications.
Definition:
ROEdge.h:73
config.h
RONode
Base class for nodes used by the router.
Definition:
RONode.h:46
src
dfrouter
RODFEdge.cpp
Generated on Wed Jan 15 2020 15:04:13 for Eclipse SUMO - Simulation of Urban MObility by
1.8.16