SUMO - Simulation of Urban MObility
RODFEdge.cpp
Go to the documentation of this file.
1 /****************************************************************************/
10 // An edge within the DFROUTER
11 /****************************************************************************/
12 // SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
13 // Copyright (C) 2006-2014 DLR (http://www.dlr.de/) and contributors
14 /****************************************************************************/
15 //
16 // This file is part of SUMO.
17 // SUMO is free software: you can redistribute it and/or modify
18 // it under the terms of the GNU General Public License as published by
19 // the Free Software Foundation, either version 3 of the License, or
20 // (at your option) any later version.
21 //
22 /****************************************************************************/
23 
24 
25 // ===========================================================================
26 // included modules
27 // ===========================================================================
28 #ifdef _MSC_VER
29 #include <windows_config.h>
30 #else
31 #include <config.h>
32 #endif
33 
34 #include <algorithm>
36 #include "RODFEdge.h"
37 
38 #ifdef CHECK_MEMORY_LEAKS
39 #include <foreign/nvwa/debug_new.h>
40 #endif // CHECK_MEMORY_LEAKS
41 
42 
43 // ===========================================================================
44 // method definitions
45 // ===========================================================================
46 RODFEdge::RODFEdge(const std::string& id, RONode* from, RONode* to, unsigned int index, const int priority)
47  : ROEdge(id, from, to, index, priority) {}
48 
49 
51 
52 
53 void
54 RODFEdge::setFlows(const std::vector<FlowDef>& flows) {
55  myFlows = flows;
56 }
57 
58 
59 const std::vector<FlowDef>&
61  return myFlows;
62 }
63 
64 
65 /****************************************************************************/
66 
~RODFEdge()
Destructor.
Definition: RODFEdge.cpp:50
const std::vector< FlowDef > & getFlows() const
Definition: RODFEdge.cpp:60
std::vector< FlowDef > myFlows
Definition: RODFEdge.h:76
RODFEdge(const std::string &id, RONode *from, RONode *to, unsigned int index, const int priority)
Constructor.
Definition: RODFEdge.cpp:46
A basic edge for routing applications.
Definition: ROEdge.h:69
void setFlows(const std::vector< FlowDef > &flows)
Definition: RODFEdge.cpp:54
Base class for nodes used by the router.
Definition: RONode.h:51