SUMO - Simulation of Urban MObility
MEInductLoop.h
Go to the documentation of this file.
1 /****************************************************************************/
7 // An induction loop for mesoscopic simulation
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
10 // Copyright (C) 2001-2016 DLR (http://www.dlr.de/) and contributors
11 /****************************************************************************/
12 //
13 // This file is part of SUMO.
14 // SUMO is free software: you can redistribute it and/or modify
15 // it under the terms of the GNU General Public License as published by
16 // the Free Software Foundation, either version 3 of the License, or
17 // (at your option) any later version.
18 //
19 /****************************************************************************/
20 #ifndef MEInductLoop_h
21 #define MEInductLoop_h
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 <string>
34 #include <deque>
35 #include <map>
36 #include <functional>
40 #include <utils/common/Named.h>
41 
42 
43 // ===========================================================================
44 // class declarations
45 // ===========================================================================
46 class MESegment;
47 
48 // ===========================================================================
49 // class definitions
50 // ===========================================================================
56 public:
57  MEInductLoop(const std::string& id,
58  MESegment* s,
59  SUMOReal positionInMeters);
60 
61 
62  ~MEInductLoop();
63 
76  dev.writeXMLHeader("detector");
77  }
78 
79 
92  void writeXMLOutput(OutputDevice& dev,
93  SUMOTime startTime, SUMOTime stopTime);
95 
96 protected:
99 
102 
105 
106 private:
107 
109  MEInductLoop();
110 
112  MEInductLoop(const MEInductLoop&);
113 
116 };
117 
118 #endif
119 
120 /****************************************************************************/
121 
MEInductLoop()
Hidden default constructor.
long long int SUMOTime
Definition: SUMOTime.h:43
const SUMOReal myPosition
position from the start of the edge / lane
Definition: MEInductLoop.h:101
void writeXMLOutput(OutputDevice &dev, SUMOTime startTime, SUMOTime stopTime)
Data structure for mean (aggregated) edge/lane values.
void writeXMLDetectorProlog(OutputDevice &dev) const
Opens the XML-output using "detector" as root element.
Definition: MEInductLoop.h:75
bool writeXMLHeader(const std::string &rootElement, const std::string &attrs="", const std::string &comment="")
Writes an XML header with optional configuration.
MEInductLoop & operator=(const MEInductLoop &)
Hidden assignment operator.
A single mesoscopic segment (cell)
Definition: MESegment.h:57
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:71
#define SUMOReal
Definition: config.h:213
MSMeanData_Net::MSLaneMeanDataValues myMeanData
data collector for the loop
Definition: MEInductLoop.h:104
An induction loop for mesoscopic simulation.
Definition: MEInductLoop.h:55
MESegment *const mySegment
mesoscopic edge segment the loop lies on
Definition: MEInductLoop.h:98
Base of value-generating classes (detectors)