2017-10-12 00:30:37 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2017 Statoil ASA
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2017-10-12 00:30:37 -05:00
|
|
|
// 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.
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2017-10-12 00:30:37 -05:00
|
|
|
// 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.
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2017-10-12 00:30:37 -05:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2022-04-22 05:18:34 -05:00
|
|
|
#include "RimSummaryCalculationVariable.h"
|
|
|
|
#include "RimUserDefinedCalculation.h"
|
|
|
|
|
2017-10-12 00:30:37 -05:00
|
|
|
//==================================================================================================
|
2019-09-06 03:40:57 -05:00
|
|
|
///
|
|
|
|
///
|
2017-10-12 00:30:37 -05:00
|
|
|
//==================================================================================================
|
2022-04-22 05:18:34 -05:00
|
|
|
class RimSummaryCalculation : public RimUserDefinedCalculation
|
2017-10-12 00:30:37 -05:00
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
|
|
|
public:
|
2017-10-23 07:27:04 -05:00
|
|
|
RimSummaryCalculation();
|
2017-10-12 00:30:37 -05:00
|
|
|
|
2022-04-22 05:18:34 -05:00
|
|
|
bool calculate() override;
|
|
|
|
void updateDependentObjects() override;
|
2022-05-02 07:25:45 -05:00
|
|
|
void removeDependentObjects() override;
|
2017-11-14 01:41:44 -06:00
|
|
|
|
2022-04-22 05:18:34 -05:00
|
|
|
protected:
|
2022-11-17 08:51:01 -06:00
|
|
|
RimSummaryCalculationVariable* createVariable() override;
|
2017-10-12 00:30:37 -05:00
|
|
|
};
|