SUMO - Simulation of Urban MObility
RODFEdge.h
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 /****************************************************************************/
19 // An edge within the DFROUTER
20 /****************************************************************************/
21 #ifndef RODFEdge_h
22 #define RODFEdge_h
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 <string>
35 #include <map>
36 #include <vector>
37 #include <router/ROEdge.h>
38 #include <utils/geom/Position.h>
39 #include "RODFDetectorFlow.h"
40 
41 
42 // ===========================================================================
43 // class declarations
44 // ===========================================================================
45 class ROLane;
46 
47 
48 // ===========================================================================
49 // class definitions
50 // ===========================================================================
54 class RODFEdge : public ROEdge {
55 public:
63  RODFEdge(const std::string& id, RONode* from, RONode* to, int index, const int priority);
64 
65 
67  ~RODFEdge();
68 
69  void setFlows(const std::vector<FlowDef>& flows);
70 
71  const std::vector<FlowDef>& getFlows() const;
72 
73 
74 private:
75  std::vector<FlowDef> myFlows;
76 
77 private:
79  RODFEdge(const RODFEdge& src);
80 
82  RODFEdge& operator=(const RODFEdge& src);
83 
84 };
85 
86 
87 #endif
88 
89 /****************************************************************************/
90 
~RODFEdge()
Destructor.
Definition: RODFEdge.cpp:45
A single lane the router may use.
Definition: ROLane.h:56
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
RODFEdge & operator=(const RODFEdge &src)
Invalidated assignment operator.
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