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>
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 
40 
41 
42 void
43 RODFEdge::setFlows(const std::vector<FlowDef>& flows) {
44  myFlows = flows;
45 }
46 
47 
48 const std::vector<FlowDef>&
50  return myFlows;
51 }
52 
53 
54 /****************************************************************************/
55 
~RODFEdge()
Destructor.
Definition: RODFEdge.cpp:39
std::vector< FlowDef > myFlows
Definition: RODFEdge.h:69
RODFEdge(const std::string &id, RONode *from, RONode *to, int index, const int priority)
Constructor.
Definition: RODFEdge.cpp:35
const std::vector< FlowDef > & getFlows() const
Definition: RODFEdge.cpp:49
A basic edge for routing applications.
Definition: ROEdge.h:73
void setFlows(const std::vector< FlowDef > &flows)
Definition: RODFEdge.cpp:43
Base class for nodes used by the router.
Definition: RONode.h:46