Debian Codegraph @

Source/Test/Analyse/CMinMaxAvgCountValueAnalyser.h

raw
1 /*
2 * Copyright (C) 2013-2015, 2019 by the Konclude Developer Team.
3 *
4 * This file is part of the reasoning system Konclude.
5 * For details and support, see <http://konclude.com/>.
6 *
7 * Konclude is free software: you can redistribute it and/or modify
8 * it under the terms of version 3 of the GNU Lesser General Public
9 * License (LGPLv3) as published by the Free Software Foundation.
10 *
11 * Konclude is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU (Lesser) General Public License for more details.
15 *
16 * You should have received a copy of the GNU (Lesser) General Public
17 * License along with Konclude. If not, see <http://www.gnu.org/licenses/>.
18 *
19 */
20
21 #ifndef KONCLUDE_TEST_ANALYSE_CMINMAXAVGCOUNTVALUEANALYSER_H
22 #define KONCLUDE_TEST_ANALYSE_CMINMAXAVGCOUNTVALUEANALYSER_H
23
24 // Libraries includes
25 #include <QString>
26
27 // Namespace includes
28 #include "AnalyseSettings.h"
29 #include "CAnalyseValue.h"
30 #include "CValueAnalyser.h"
31 #include "CConvertDoubleAnalyseValue.h"
32 #include "CIntegerAnalyseValue.h"
33 #include "CDoubleAnalyseValue.h"
34
35 // Other includes
36
37
38 // Logger includes
39 #include "Logger/CLogger.h"
40
41
42 namespace Konclude {
43
44 using namespace Logger;
45
46 namespace Test {
47
48 namespace Analyse {
49
50
51 /*!
52 *
53 * \class CMinMaxAvgCountValueAnalyser
54 * \author Andreas Steigmiller
55 * \version 0.1
56 * \brief TODO
57 *
58 */
59 class CMinMaxAvgCountValueAnalyser : public CValueAnalyser {
60 // public methods
61 public:
62 //! Constructor
63 CMinMaxAvgCountValueAnalyser();
64
65 //! Destructor
66 virtual ~CMinMaxAvgCountValueAnalyser();
67
68
69 virtual CValueAnalyser *analyseValue(CAnalyseValue *value);
70 virtual CValueAnalyser *analyseValue(double value);
71
72 virtual double getMaxValue();
73 virtual double getAvgValue();
74 virtual double getMinValue();
75 virtual qint64 getValueCount();
76
77 virtual CDoubleAnalyseValue *getMaxAnalyseValue();
78 virtual CDoubleAnalyseValue *getAvgAnalyseValue();
79 virtual CDoubleAnalyseValue *getMinAnalyseValue();
80 virtual CIntegerAnalyseValue *getAnalyseValueCount();
81
82 // protected methods
83 protected:
84
85 // protected variables
86 protected:
87 double maxVal;
88 double minVal;
89 double avgVal;
90 qint64 valCount;
91
92 CIntegerAnalyseValue *valCountAnaVal;
93 CDoubleAnalyseValue *maxValAnaVal;
94 CDoubleAnalyseValue *minValAnaVal;
95 CDoubleAnalyseValue *avgValAnaVal;
96
97 // private methods
98 private:
99
100 // private variables
101 private:
102
103 };
104
105 }; // end namespace Analyse
106
107 }; // end namespace Test
108
109 }; // end namespace Konclude
110
111 #endif // KONCLUDE_TEST_ANALYSE_CMINMAXAVGCOUNTVALUEANALYSER_H