Debian Codegraph @

Source/Reasoner/Answerer/Composition/CQtConcurrentVariableMappingsCompositionJoinComputator.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_REASONER_ANSWERER_COMPOSITION_CQTCONCURRENTVARIABLEMAPPINGSCOMPOSITIONJOINCOMPUTATOR_H
22 #define KONCLUDE_REASONER_ANSWERER_COMPOSITION_CQTCONCURRENTVARIABLEMAPPINGSCOMPOSITIONJOINCOMPUTATOR_H
23
24 // Libraries includes
25 #include <QtConcurrent>
26
27 // Namespace includes
28 #include "CompositionSettings.h"
29 #include "CAbstractVariableMappingsCompositionJoinComputator.h"
30 #include "CQtConcurrentVariableMappingsCompositionJoinBindingsCardinalityLinkerBatchLinker.h"
31 #include "CQtConcurrentVariableMappingsCompositionJoinMappedKeysBindingsCardinalityLinker.h"
32 #include "CQtConcurrentVariableMappingsCompositionJoinMappedJoinedBindingsCardinalityLinker.h"
33 #include "CQtConcurrentVariableMappingsCompositionBaseBatchLinkerVector.h"
34
35 // Other includes
36 #include "Reasoner/Answerer/COptimizedComplexVariableIndividualMappingsMultiHash.h"
37 #include "Reasoner/Answerer/COptimizedComplexVariableJoiningWithRemainingHasher.h"
38
39 #include "Concurrent/CConcurrentTaskScheduler.h"
40
41
42 // Logger includes
43 #include "Logger/CLogger.h"
44 #include "Logger/CLogIdentifier.h"
45
46
47
48
49
50
51
52 namespace Konclude {
53
54 using namespace Concurrent;
55
56 namespace Reasoner {
57
58 namespace Answerer {
59
60 namespace Composition {
61
62
63 /*!
64 *
65 * \class CQtConcurrentVariableMappingsCompositionJoinComputator
66 * \author Andreas Steigmiller
67 * \version 0.1
68 * \brief TODO
69 *
70 */
71 class CQtConcurrentVariableMappingsCompositionJoinComputator : public CAbstractVariableMappingsCompositionJoinComputator {
72 // public methods
73 public:
74 //! Constructor
75 CQtConcurrentVariableMappingsCompositionJoinComputator();
76
77 virtual CAbstractVariableMappingsCompositionComputator* configureComputator(COptimizedComplexExpressionOntologyAnsweringItem* ontoAnsweringItem, CAbstractVariableMappingsCompositionItemRequirementProcessor* reqProcessor, CAnswererContext* answererContext);
78
79
80
81 // protected methods
82 protected:
83
84 // protected variables
85 protected:
86 virtual bool computeVariableMappingsJoinComposition(COptimizedComplexVariableJoiningItem* joiningItem, COptimizedComplexBuildingVariableCompositionsItem* buildingVarItem, CAnswererContext* answererContext, bool& processing);
87
88 // private methods
89 private:
90 cint64 mConfBatchSizeLimit = 200;
91 cint64 mConfBatchSizeCount = 200;
92 cint64 mConfBatchMaxHandlingCount = 10000;
93 cint64 mConfSplitTestingBatchMaxHandlingCount = 1000;
94 cint64 mConfConcurrentJoiningHashCount = 50;
95 cint64 mConfConcurrentVariableMappingPartCount = 50;
96
97 cint64 mConcurrentJoinComputationTaskCount = 50;
98
99
100 bool mConfPartitionizedMemoryManagement = false;
101 bool mConfCheckingSideDirectJoining = false;
102 bool mConfDirectPerformanceConsoleOutput = false;
103
104 bool mConfPerformanceLogging = false;
105
106 // private variables
107 private:
108
109 };
110
111 }; // end namespace Composition
112
113 }; // end namespace Answerer
114
115 }; // end namespace Reasoner
116
117 }; // end namespace Konclude
118
119 #endif // KONCLUDE_REASONER_ANSWERER_COMPOSITION_CQTCONCURRENTVARIABLEMAPPINGSCOMPOSITIONJOINCOMPUTATOR_H