Eclipse SUMO - Simulation of Urban MObility
RODFDetFlowLoader.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-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 /****************************************************************************/
17 // A loader for detector flows
18 /****************************************************************************/
19 #ifndef RODFDetFlowLoader_h
20 #define RODFDetFlowLoader_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #include <config.h>
27 
28 #include <string>
29 #include <vector>
32 #include "RODFDetector.h"
33 #include "RODFDetectorFlow.h"
34 
35 
36 // ===========================================================================
37 // class definitions
38 // ===========================================================================
44 public:
54  SUMOTime startTime, SUMOTime endTime,
55  SUMOTime timeOffset, SUMOTime timeScale);
56 
57 
60 
61 
76  void read(const std::string& file);
77 
78 
79 private:
82 
85 
88 
91 
94 
97 
100 
103 
104 
105 private:
108 
111 
112 };
113 
114 
115 #endif
116 
117 /****************************************************************************/
118 
RODFDetectorFlows
A container for flows.
Definition: RODFDetectorFlow.h:68
RODFDetFlowLoader::myStartTime
const SUMOTime myStartTime
The first and the last time step to read.
Definition: RODFDetFlowLoader.h:90
RODFDetFlowLoader::operator=
RODFDetFlowLoader & operator=(const RODFDetFlowLoader &src)
Invalidated assignment operator.
RODFDetFlowLoader
A loader for detector flows.
Definition: RODFDetFlowLoader.h:43
RODFDetFlowLoader::myEndTime
const SUMOTime myEndTime
Definition: RODFDetFlowLoader.h:90
SUMOTime
long long int SUMOTime
Definition: SUMOTime.h:35
RODFDetector.h
RODFDetectorCon
A container for RODFDetectors.
Definition: RODFDetector.h:221
RODFDetFlowLoader::myDetectorContainer
const RODFDetectorCon & myDetectorContainer
Container holding known detectors.
Definition: RODFDetFlowLoader.h:96
RODFDetFlowLoader::~RODFDetFlowLoader
~RODFDetFlowLoader()
Destructor.
Definition: RODFDetFlowLoader.cpp:51
RODFDetFlowLoader::myTimeScale
const SUMOTime myTimeScale
The time scale to apply to read time values.
Definition: RODFDetFlowLoader.h:87
NamedColumnsParser.h
UtilExceptions.h
RODFDetFlowLoader::RODFDetFlowLoader
RODFDetFlowLoader(const RODFDetectorCon &dets, RODFDetectorFlows &into, SUMOTime startTime, SUMOTime endTime, SUMOTime timeOffset, SUMOTime timeScale)
Constructor.
Definition: RODFDetFlowLoader.cpp:41
RODFDetectorFlow.h
RODFDetFlowLoader::myTimeOffset
const SUMOTime myTimeOffset
The time offset to apply to read time values.
Definition: RODFDetFlowLoader.h:84
config.h
RODFDetFlowLoader::myHaveWarnedAboutPartialDefs
bool myHaveWarnedAboutPartialDefs
Whether a warning about partial definitions was already written.
Definition: RODFDetFlowLoader.h:102
RODFDetFlowLoader::myLineHandler
NamedColumnsParser myLineHandler
The value extractor.
Definition: RODFDetFlowLoader.h:93
RODFDetFlowLoader::myHaveWarnedAboutOverridingBoundaries
bool myHaveWarnedAboutOverridingBoundaries
Whether a warning about overriding boundaries was already written.
Definition: RODFDetFlowLoader.h:99
RODFDetFlowLoader::myStorage
RODFDetectorFlows & myStorage
The container for read detector values.
Definition: RODFDetFlowLoader.h:81
RODFDetFlowLoader::read
void read(const std::string &file)
Reads the given file assuming it contains detector values.
Definition: RODFDetFlowLoader.cpp:55
NamedColumnsParser
A parser to retrieve information from a table with known columns.
Definition: NamedColumnsParser.h:51