2017-10-11 12:46:52 -05: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
|
|
|
|
|
|
|
|
#include "RifEclipseSummaryAddress.h"
|
|
|
|
|
2017-10-24 02:44:50 -05:00
|
|
|
#include <QString>
|
|
|
|
|
2017-10-11 12:46:52 -05:00
|
|
|
#include <utility>
|
2017-10-16 15:04:00 -05:00
|
|
|
#include <vector>
|
2017-10-11 12:46:52 -05:00
|
|
|
|
|
|
|
class RimSummaryCase;
|
2018-05-10 14:29:55 -05:00
|
|
|
class RimSummaryCaseCollection;
|
2017-10-11 12:46:52 -05:00
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
|
|
|
class RiaSummaryCurveDefinition
|
|
|
|
{
|
|
|
|
public:
|
2018-05-14 07:51:52 -05:00
|
|
|
RiaSummaryCurveDefinition();
|
2018-05-10 14:29:55 -05:00
|
|
|
explicit RiaSummaryCurveDefinition(RimSummaryCase* summaryCase,
|
|
|
|
const RifEclipseSummaryAddress& summaryAddress,
|
2018-09-13 05:38:17 -05:00
|
|
|
RimSummaryCaseCollection* ensemble = nullptr);
|
2017-10-11 12:46:52 -05:00
|
|
|
|
|
|
|
RimSummaryCase* summaryCase() const;
|
|
|
|
const RifEclipseSummaryAddress& summaryAddress() const;
|
2018-05-10 14:29:55 -05:00
|
|
|
RimSummaryCaseCollection* ensemble() const;
|
|
|
|
bool isEnsembleCurve() const;
|
2017-10-11 12:46:52 -05:00
|
|
|
|
|
|
|
bool operator < (const RiaSummaryCurveDefinition& other) const;
|
|
|
|
|
2017-10-16 15:04:00 -05:00
|
|
|
// TODO: Consider moving to a separate tools class
|
2017-10-18 04:18:43 -05:00
|
|
|
static void resultValues(const RiaSummaryCurveDefinition& curveDefinition, std::vector<double>* values);
|
|
|
|
static const std::vector<time_t>& timeSteps(const RiaSummaryCurveDefinition& curveDefinition);
|
2017-10-16 15:04:00 -05:00
|
|
|
|
2017-10-24 02:44:50 -05:00
|
|
|
QString curveDefinitionText() const;
|
|
|
|
|
2018-05-15 04:32:26 -05:00
|
|
|
static QString curveDefinitionText(const QString& caseName, const RifEclipseSummaryAddress& summaryAddress);
|
2017-10-24 02:44:50 -05:00
|
|
|
|
2017-10-24 02:57:32 -05:00
|
|
|
private:
|
|
|
|
|
2017-10-11 12:46:52 -05:00
|
|
|
private:
|
2018-05-15 03:14:18 -05:00
|
|
|
RimSummaryCase* m_summaryCase;
|
|
|
|
RifEclipseSummaryAddress m_summaryAddress;
|
2018-05-10 14:29:55 -05:00
|
|
|
RimSummaryCaseCollection* m_ensemble;
|
2017-10-11 12:46:52 -05:00
|
|
|
};
|