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-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
20 // An edge within the DFROUTER
21 /****************************************************************************/
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #include <algorithm>
35 #include "RODFEdge.h"
36 
37 
38 // ===========================================================================
39 // method definitions
40 // ===========================================================================
41 RODFEdge::RODFEdge(const std::string& id, RONode* from, RONode* to, int index, const int priority)
42  : ROEdge(id, from, to, index, priority) {}
43 
44 
46 
47 
48 void
49 RODFEdge::setFlows(const std::vector<FlowDef>& flows) {
50  myFlows = flows;
51 }
52 
53 
54 const std::vector<FlowDef>&
56  return myFlows;
57 }
58 
59 
60 /****************************************************************************/
61 
~RODFEdge()
Destructor.
Definition: RODFEdge.cpp:45
std::vector< FlowDef > myFlows
Definition: RODFEdge.h:75
RODFEdge(const std::string &id, RONode *from, RONode *to, int index, const int priority)
Constructor.
Definition: RODFEdge.cpp:41
const std::vector< FlowDef > & getFlows() const
Definition: RODFEdge.cpp:55
A basic edge for routing applications.
Definition: ROEdge.h:77
void setFlows(const std::vector< FlowDef > &flows)
Definition: RODFEdge.cpp:49
Base class for nodes used by the router.
Definition: RONode.h:52