Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEMeanDataHandler.h
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2001-2024 German Aerospace Center (DLR) and others.
4// This program and the accompanying materials are made available under the
5// terms of the Eclipse Public License 2.0 which is available at
6// https://www.eclipse.org/legal/epl-2.0/
7// This Source Code may also be made available under the following Secondary
8// Licenses when the conditions for such availability set forth in the Eclipse
9// Public License 2.0 are satisfied: GNU General Public License, version 2
10// or later which is available at
11// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13/****************************************************************************/
18// Builds meanData objects for netedit
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
24
25
26// ===========================================================================
27// class declarations
28// ===========================================================================
29class GNENet;
30
31// ===========================================================================
32// class definitions
33// ===========================================================================
34
37
38public:
40 GNEMeanDataHandler(GNENet* net, const bool allowUndoRedo, const bool overwrite);
41
43 virtual ~GNEMeanDataHandler();
44
48 void buildEdgeMeanData(const CommonXMLStructure::SumoBaseObject* sumoBaseObject, const std::string& ID,
49 const std::string& file, SUMOTime period, SUMOTime begin, SUMOTime end, const bool trackVehicles,
50 const std::vector<std::string>& writtenAttributes, const bool aggregate, const std::vector<std::string>& edgeIDs,
51 const std::string& edgeFile, std::string excludeEmpty, const bool withInternal,
52 const std::vector<std::string>& detectPersons, const double minSamples, const double maxTravelTime,
53 const std::vector<std::string>& vTypes, const double speedThreshold);
54
56 void buildLaneMeanData(const CommonXMLStructure::SumoBaseObject* sumoBaseObject, const std::string& ID,
57 const std::string& file, SUMOTime period, SUMOTime begin, SUMOTime end, const bool trackVehicles,
58 const std::vector<std::string>& writtenAttributes, const bool aggregate, const std::vector<std::string>& edgeIDs,
59 const std::string& edgeFile, std::string excludeEmpty, const bool withInternal,
60 const std::vector<std::string>& detectPersons, const double minSamples, const double maxTravelTime,
61 const std::vector<std::string>& vTypes, const double speedThreshold);
62
64
65protected:
68
70 const bool myAllowUndoRedo;
71
73 const bool myOverwrite;
74
76 std::vector<GNEEdge*> parseEdges(const SumoXMLTag tag, const std::vector<std::string>& edgeIDs);
77
79 std::vector<SumoXMLAttr> parseAttributes(const SumoXMLTag tag, const std::vector<std::string>& attrStrs);
80
81private:
84
87};
long long int SUMOTime
Definition GUI.h:36
SumoXMLTag
Numbers representing SUMO-XML - element names.
GNEMeanDataHandler(const GNEMeanDataHandler &s)=delete
invalidate copy constructor
std::vector< SumoXMLAttr > parseAttributes(const SumoXMLTag tag, const std::vector< std::string > &attrStrs)
parse attributes
const bool myOverwrite
check if overwrite
void buildEdgeMeanData(const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &ID, const std::string &file, SUMOTime period, SUMOTime begin, SUMOTime end, const bool trackVehicles, const std::vector< std::string > &writtenAttributes, const bool aggregate, const std::vector< std::string > &edgeIDs, const std::string &edgeFile, std::string excludeEmpty, const bool withInternal, const std::vector< std::string > &detectPersons, const double minSamples, const double maxTravelTime, const std::vector< std::string > &vTypes, const double speedThreshold)
virtual ~GNEMeanDataHandler()
Destructor.
const bool myAllowUndoRedo
allow undo/redo
void buildLaneMeanData(const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &ID, const std::string &file, SUMOTime period, SUMOTime begin, SUMOTime end, const bool trackVehicles, const std::vector< std::string > &writtenAttributes, const bool aggregate, const std::vector< std::string > &edgeIDs, const std::string &edgeFile, std::string excludeEmpty, const bool withInternal, const std::vector< std::string > &detectPersons, const double minSamples, const double maxTravelTime, const std::vector< std::string > &vTypes, const double speedThreshold)
Builds laneMeanData.
std::vector< GNEEdge * > parseEdges(const SumoXMLTag tag, const std::vector< std::string > &edgeIDs)
parse edges
GNEMeanDataHandler & operator=(const GNEMeanDataHandler &s)=delete
invalidate assignment operator
GNENet * myNet
pointer to GNENet
A NBNetBuilder extended by visualisation and editing capabilities.
Definition GNENet.h:42
The XML-Handler for network loading.