Debian Codegraph @

Source/Test/Evaluation/CReasonerEvaluationSpecifiedTimeExtractor.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_CREASONEREVALUATIONSPECIFIEDTIMEEXTRACTOR_H
22 #define KONCLUDE_TEST_EVALUATION_CREASONEREVALUATIONSPECIFIEDTIMEEXTRACTOR_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 CReasonerEvaluationSpecifiedTimeExtractor
58 * \author Andreas Steigmiller
59 * \version 0.1
60 * \brief TODO
61 *
62 */
63 class CReasonerEvaluationSpecifiedTimeExtractor : public CReasonerEvaluationExtractor {
64 // public methods
65 public:
66
67 //! Constructor
68 CReasonerEvaluationSpecifiedTimeExtractor(CReasonerEvaluationExtractor::EXTRACTORTYPE extractorType, 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* extractSpecifiedTimesEvaluationData(QDomDocument& document, const QString& responseFileString, const QStringList& extractionTagList, CReasonerEvaluationExtractor::EXTRACTORTYPE extractionType);
76
77 virtual CReasonerEvaluationDoubleDataValue* extractCalculationEvaluationData(QDomDocument& document, const QString& responseFileString);
78 virtual CReasonerEvaluationDoubleDataValue* extractSatisfiabilityEvaluationData(QDomDocument& document, const QString& responseFileString);
79 virtual CReasonerEvaluationDoubleDataValue* extractConsistencyEvaluationData(QDomDocument& document, const QString& responseFileString);
80 virtual CReasonerEvaluationDoubleDataValue* extractClassificationEvaluationData(QDomDocument& document, const QString& responseFileString);
81 virtual CReasonerEvaluationDoubleDataValue* extractComplexQueryingEvaluationData(QDomDocument& document, const QString& responseFileString);
82 virtual CReasonerEvaluationDoubleDataValue* extractRealizationEvaluationData(QDomDocument& document, const QString& responseFileString);
83 virtual CReasonerEvaluationDoubleDataValue* extractLoadingEvaluationData(QDomDocument& document, const QString& responseFileString);
84 virtual CReasonerEvaluationDoubleDataValue* extractTotalResponseEvaluationData(QDomDocument& document, const QString& responseFileString);
85 virtual CReasonerEvaluationDoubleDataValue* extractTimeoutErrorEvaluationData(QDomDocument& document, const QString& responseFileString);
86 virtual CReasonerEvaluationDoubleDataValue* extractErrorEvaluationData(QDomDocument& document, const QString& responseFileString);
87 virtual CReasonerEvaluationDoubleDataValue* extractMemoryUsageEvaluationData(QDomDocument& document, const QString& responseFileString);
88 virtual CReasonerEvaluationDoubleDataValue* extractTimeoutEvaluationData(QDomDocument& document, const QString& responseFileString);
89 virtual CReasonerEvaluationStringValue* extractResponseFileEvaluationData(QDomDocument& document, const QString& responseFileString);
90 virtual CReasonerEvaluationStringValue* extractRequestFileEvaluationData(QDomDocument& document, const QString& responseFileString);
91 virtual CReasonerEvaluationDoubleDataValue* extractResultCountingEvaluationData(QDomDocument& document, const QString& responseFileString);
92
93 // protected variables
94 protected:
95 CReasonerEvaluationDataValueCacher* mCacher;
96 double mTimelimit;
97 double mErrorPunishmentTime;
98
99 QStringList mClassificationExtractionTagList;
100 QStringList mComplexQueryingExtractionTagList;
101 QStringList mRealizationExtractionTagList;
102 QStringList mConsistencyExtractionTagList;
103 QStringList mSatisfiabilityExtractionTagList;
104 QStringList mCalculationExtractionTagList;
105
106 EXTRACTORTYPE mExtractorType;
107
108 // private methods
109 private:
110
111 // private variables
112 private:
113
114 };
115
116 }; // end namespace Evaluation
117
118 }; // end namespace Test
119
120 }; // end namespace Konclude
121
122 #endif // KONCLUDE_TEST_EVALUATION_CREASONEREVALUATIONSPECIFIEDTIMEEXTRACTOR_H