Debian Codegraph @

Source/Control/Loader/CReasonerEvaluationTestcaseStatisticCollectionGeneratorLoader.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_CONTROL_LOADER_CReasonerEvaluationTestcaseStatisticCollectionGeneratorLoader_H
22 #define KONCLUDE_CONTROL_LOADER_CReasonerEvaluationTestcaseStatisticCollectionGeneratorLoader_H
23
24 // Libraries includes
25 #include <QString>
26 #include <QRegExp>
27 #include <QDomElement>
28 #include <QDir>
29
30 // Namespace includes
31 #include "LoaderSettings.h"
32 #include "CLoader.h"
33 #include "CLoaderFactory.h"
34
35 // Other includes
36 #include "Config/CConfigDataReader.h"
37
38
39 // Logger includes
40 #include "Logger/CLogger.h"
41 #include "Logger/CLogIdentifier.h"
42
43
44 #include <stdio.h>
45 #include <iostream>
46
47
48 namespace Konclude {
49
50 using namespace Logger;
51 using namespace Config;
52
53 namespace Control {
54
55 namespace Loader {
56
57 /*!
58 *
59 * \class CReasonerEvaluationTestcaseStatisticCollectionGeneratorLoader
60 * \author Andreas Steigmiller
61 * \version 0.1
62 * \brief TODO
63 *
64 */
65 class CReasonerEvaluationTestcaseStatisticCollectionGeneratorLoader : public CLoader {
66 // public methods
67 public:
68 //! Constructor
69 CReasonerEvaluationTestcaseStatisticCollectionGeneratorLoader();
70
71 //! Destructor
72 virtual ~CReasonerEvaluationTestcaseStatisticCollectionGeneratorLoader();
73
74
75 virtual CLoader *init(CLoaderFactory *loaderFactory = 0, CConfiguration *config = 0);
76 virtual CLoader *load();
77 virtual CLoader *exit();
78
79
80
81 // protected methods
82 protected:
83 CLoader *collectTestcasesStatisticsForDirectory(const QString& dirString, const QString& subDirPathString);
84
85 CLoader *collectTestcasesStatisticsForTestcase(const QString& testFileNameString, const QString& testFilePathString, const QString& subDirPathString);
86 QStringList collectOntologyIRIs(const QDomElement& element);
87 QStringList collectOntologyIRIsStatistics(const QStringList& ontoIRIList);
88
89 // protected variables
90 protected:
91 QString mInputDir;
92
93 QString mOntologyStatisticsDir;
94 QString mResponseStatisticsOutputDir;
95
96 CConfiguration *loaderConfig;
97
98
99 // private methods
100 private:
101
102 // private variables
103 private:
104
105 };
106
107 }; // end namespace Loader
108
109 }; // end namespace Control
110
111 }; // end namespace Konclude
112
113 #endif // KONCLUDE_CONTROL_LOADER_CReasonerEvaluationTestcaseStatisticCollectionGeneratorLoader_H