Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
MeanDataHandler.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// The XML-Handler for meanMeanData elements loading
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
23#include "CommonHandler.h"
24
25// ===========================================================================
26// class definitions
27// ===========================================================================
37
38public:
41
43 virtual ~MeanDataHandler();
44
47
49 void endParseAttributes();
50
53
55 virtual bool postParserTasks() = 0;
56
60 virtual bool buildEdgeMeanData(const CommonXMLStructure::SumoBaseObject* sumoBaseObject, const std::string& ID,
61 const std::string& file, SUMOTime period, SUMOTime begin, SUMOTime end, const bool trackVehicles,
62 const std::vector<std::string>& writtenAttributes, const bool aggregate, const std::vector<std::string>& edges,
63 const std::string& edgeFile, std::string excludeEmpty, const bool withInternal,
64 const std::vector<std::string>& detectPersons, const double minSamples, const double maxTravelTime,
65 const std::vector<std::string>& vTypes, const double speedThreshold) = 0;
66
68 virtual bool buildLaneMeanData(const CommonXMLStructure::SumoBaseObject* sumoBaseObject, const std::string& ID,
69 const std::string& file, SUMOTime period, SUMOTime begin, SUMOTime end, const bool trackVehicles,
70 const std::vector<std::string>& writtenAttributes, const bool aggregate, const std::vector<std::string>& edges,
71 const std::string& edgeFile, std::string excludeEmpty, const bool withInternal,
72 const std::vector<std::string>& detectPersons, const double minSamples, const double maxTravelTime,
73 const std::vector<std::string>& vTypes, const double speedThreshold) = 0;
74
76
77private:
81 void parseEdgeMeanData(const SUMOSAXAttributes& attrs);
82
84 void parseLaneMeanData(const SUMOSAXAttributes& attrs);
85
87
89 MeanDataHandler(const MeanDataHandler& s) = delete;
90
93};
long long int SUMOTime
Definition GUI.h:36
SumoXMLTag
Numbers representing SUMO-XML - element names.
The XML-Handler for network loading.
The XML-Handler for network loading.
bool beginParseAttributes(SumoXMLTag tag, const SUMOSAXAttributes &attrs)
begin parse attributes
void endParseAttributes()
end parse attributes
MeanDataHandler & operator=(const MeanDataHandler &s)=delete
invalidate assignment operator
virtual bool 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 > &edges, 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)=0
MeanDataHandler(const MeanDataHandler &s)=delete
invalidate copy constructor
MeanDataHandler()
Constructor.
void parseEdgeMeanData(const SUMOSAXAttributes &attrs)
virtual ~MeanDataHandler()
Destructor.
void parseLaneMeanData(const SUMOSAXAttributes &attrs)
parse laneMeanData attributes
virtual bool 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 > &edges, 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)=0
Builds laneMeanData.
void parseSumoBaseObject(CommonXMLStructure::SumoBaseObject *obj)
parse SumoBaseObject (it's called recursivelly)
virtual bool postParserTasks()=0
run post parser tasks
Encapsulated SAX-Attributes.