Debian Codegraph @

Source/Test/Evaluation/CReasonerEvaluationStatisticsValueExtractor.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_EVALUATION_CREASONEREVALUATIONSTATISTICSVALUEEXTRACTOR_H
22 #define KONCLUDE_TEST_EVALUATION_CREASONEREVALUATIONSTATISTICSVALUEEXTRACTOR_H
23
24 // Libraries includes
25 #include <QList>
26 #include <QFile>
27 #include <QDomDocument>
28
29 // Namespace includes
30 #include "EvaluationSettings.h"
31 #include "CReasonerEvaluationDataValue.h"
32 #include "CReasonerEvaluationExtractor.h"
33 #include "CReasonerEvaluationDoubleDataValue.h"
34 #include "CReasonerEvaluationDataValueCacher.h"
35 #include "CReasonerEvaluationStringValue.h"
36
37
38 // Other includes
39 #include "Config/CConfiguration.h"
40
41 // Logger includes
42 #include "Logger/CLogger.h"
43
44
45
46 namespace Konclude {
47
48 using namespace Config;
49
50 namespace Test {
51
52 namespace Evaluation {
53
54
55 /*!
56 *
57 * \class CReasonerEvaluationStatisticsValueExtractor
58 * \author Andreas Steigmiller
59 * \version 0.1
60 * \brief TODO
61 *
62 */
63 class CReasonerEvaluationStatisticsValueExtractor : public CReasonerEvaluationExtractor {
64 // public methods
65 public:
66
67 //! Constructor
68 CReasonerEvaluationStatisticsValueExtractor(const QString& statName, QSet<QString>* statNameSet, double timelimit = -1, double errorPunishmentTime = 0, CReasonerEvaluationDataValueCacher* cacher = nullptr);
69
70 virtual CReasonerEvaluationDataValue* extractEvaluationData(const QString& responseFileString);
71
72
73 // protected methods
74 protected:
75 virtual CReasonerEvaluationDoubleDataValue* extractSpecifiedStatisticsValueEvaluationData(QDomDocument& document, const QString& responseFileString, const QString& statName);
76
77
78 // protected variables
79 protected:
80 CReasonerEvaluationDataValueCacher* mCacher;
81 double mTimelimit;
82 double mErrorPunishmentTime;
83
84 QString mStatName;
85 QSet<QString>* mStatNameSet;
86
87 // private methods
88 private:
89
90 // private variables
91 private:
92
93 };
94
95 }; // end namespace Evaluation
96
97 }; // end namespace Test
98
99 }; // end namespace Konclude
100
101 #endif // KONCLUDE_TEST_EVALUATION_CREASONEREVALUATIONSTATISTICSVALUEEXTRACTOR_H