2017-11-23 09:15:29 +01:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// Copyright (C) 2017 Statoil ASA
|
|
|
|
|
//
|
|
|
|
|
// ResInsight is free software: you can redistribute it and/or modify
|
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
// (at your option) any later version.
|
|
|
|
|
//
|
|
|
|
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
//
|
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
|
|
|
|
// for more details.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2017-11-24 15:17:20 +01:00
|
|
|
#include "RifEclipseSummaryAddress.h"
|
|
|
|
|
|
2017-11-23 09:15:29 +01:00
|
|
|
#include <set>
|
|
|
|
|
#include <string>
|
2019-08-05 21:53:48 +02:00
|
|
|
#include <tuple>
|
2017-11-23 09:15:29 +01:00
|
|
|
#include <vector>
|
|
|
|
|
|
2017-11-23 14:12:05 +01:00
|
|
|
class RimSummaryCurveCollection;
|
2017-11-23 09:15:29 +01:00
|
|
|
|
2017-11-24 15:17:20 +01:00
|
|
|
class QString;
|
|
|
|
|
|
2017-11-23 09:15:29 +01:00
|
|
|
//==================================================================================================
|
|
|
|
|
//
|
|
|
|
|
//==================================================================================================
|
2017-11-24 15:17:20 +01:00
|
|
|
class RiaSummaryCurveAnalyzer
|
2017-11-23 09:15:29 +01:00
|
|
|
{
|
|
|
|
|
public:
|
2017-11-24 15:17:20 +01:00
|
|
|
RiaSummaryCurveAnalyzer();
|
2017-11-23 09:15:29 +01:00
|
|
|
|
2017-12-13 07:40:37 +01:00
|
|
|
void appendAdresses(const std::set<RifEclipseSummaryAddress>& allAddresses);
|
|
|
|
|
void appendAdresses(const std::vector<RifEclipseSummaryAddress>& allAddresses);
|
|
|
|
|
|
|
|
|
|
void clear();
|
2017-11-23 09:15:29 +01:00
|
|
|
|
2017-11-23 14:12:05 +01:00
|
|
|
std::set<std::string> quantities() const;
|
2018-12-17 15:45:37 +01:00
|
|
|
std::set<std::string> quantityNamesWithHistory() const;
|
|
|
|
|
std::set<std::string> quantityNamesNoHistory() const;
|
2019-08-05 21:53:48 +02:00
|
|
|
|
2018-12-17 15:45:37 +01:00
|
|
|
std::string quantityNameForTitle() const;
|
|
|
|
|
|
2017-11-23 14:12:05 +01:00
|
|
|
std::set<std::string> wellNames() const;
|
|
|
|
|
std::set<std::string> wellGroupNames() const;
|
2017-12-13 07:40:37 +01:00
|
|
|
std::set<int> regionNumbers() const;
|
2017-11-23 14:12:05 +01:00
|
|
|
|
2019-08-05 21:53:48 +02:00
|
|
|
std::set<std::string> wellCompletions(const std::string& wellName) const;
|
|
|
|
|
std::set<int> wellSegmentNumbers(const std::string& wellName) const;
|
|
|
|
|
std::set<std::string> blocks() const;
|
|
|
|
|
|
2017-11-24 15:17:20 +01:00
|
|
|
std::set<RifEclipseSummaryAddress::SummaryVarCategory> categories() const;
|
|
|
|
|
|
2019-08-05 21:53:48 +02:00
|
|
|
std::vector<QString> identifierTexts(RifEclipseSummaryAddress::SummaryVarCategory category,
|
|
|
|
|
const std::string& secondaryIdentifier) const;
|
2017-11-24 15:17:20 +01:00
|
|
|
|
2019-08-05 21:53:48 +02:00
|
|
|
static std::vector<RifEclipseSummaryAddress> addressesForCategory(const std::set<RifEclipseSummaryAddress>& addresses,
|
2017-11-24 15:17:20 +01:00
|
|
|
RifEclipseSummaryAddress::SummaryVarCategory category);
|
2017-11-23 09:15:29 +01:00
|
|
|
|
2018-12-19 10:07:17 +01:00
|
|
|
static std::string correspondingHistorySummaryCurveName(const std::string& curveName);
|
|
|
|
|
|
2017-11-23 09:15:29 +01:00
|
|
|
private:
|
2018-12-17 15:45:37 +01:00
|
|
|
void assignCategoryToQuantities() const;
|
|
|
|
|
void computeQuantityNamesWithHistory() const;
|
|
|
|
|
|
2017-12-13 07:40:37 +01:00
|
|
|
void analyzeSingleAddress(const RifEclipseSummaryAddress& address);
|
2017-11-23 09:15:29 +01:00
|
|
|
|
2017-11-23 14:12:05 +01:00
|
|
|
private:
|
2019-08-05 21:53:48 +02:00
|
|
|
std::set<std::string> m_quantities;
|
2018-12-17 15:45:37 +01:00
|
|
|
mutable std::set<std::string> m_quantitiesWithMatchingHistory;
|
|
|
|
|
mutable std::set<std::string> m_quantitiesNoMatchingHistory;
|
2019-08-05 21:53:48 +02:00
|
|
|
|
|
|
|
|
std::set<std::string> m_wellNames;
|
|
|
|
|
std::set<std::string> m_wellGroupNames;
|
|
|
|
|
std::set<int> m_regionNumbers;
|
|
|
|
|
std::set<std::pair<std::string, std::string>> m_wellCompletions;
|
|
|
|
|
std::set<std::pair<std::string, int>> m_wellSegmentNumbers;
|
|
|
|
|
std::set<std::string> m_blocks;
|
2017-11-24 15:17:20 +01:00
|
|
|
|
|
|
|
|
std::set<RifEclipseSummaryAddress::SummaryVarCategory> m_categories;
|
2017-11-23 09:15:29 +01:00
|
|
|
};
|