Debian Codegraph @

Source/Reasoner/Answerer/Composition/CQtConcurrentVariableMappingsCompositionPropagationComputator.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_CQTCONCURRENTVARIABLEMAPPINGSCOMPOSITIONPROPAGATIONCOMPUTATOR_H
22 #define KONCLUDE_REASONER_ANSWERER_COMPOSITION_CQTCONCURRENTVARIABLEMAPPINGSCOMPOSITIONPROPAGATIONCOMPUTATOR_H
23
24 // Libraries includes
25 #include <QtConcurrent>
26
27 // Namespace includes
28 #include "CompositionSettings.h"
29 #include "CAbstractVariableMappingsCompositionPropagationComputator.h"
30 #include "CQtConcurrentVariableMappingsCompositionBaseBatchLinkerVector.h"
31 #include "CQtConcurrentVariableMappingsCompositionBaseBindingsCardinalityLinkerBatchLinker.h"
32 #include "CQtConcurrentVariableMappingsCompositionPropagationMappedKeyBindingsCardinalityLinker.h"
33 #include "CQtConcurrentVariableMappingsCompositionPropagationMappedPropagatedBindingsCardinalityLinker.h"
34 #include "CQtConcurrentVariableMappingsCompositionPropagationRealizationSchedulingBatchLinkerVector.h"
35 #include "CQtConcurrentVariableMappingsCompositionPropagationBindingsCardinalityLinkerBatchLinker.h"
36
37
38 // Other includes
39 #include "Reasoner/Answerer/COptimizedComplexVariableIndividualMappings.h"
40 #include "Reasoner/Answerer/COptimizedComplexVariableJoiningItem.h"
41 #include "Reasoner/Answerer/COptimizedComplexBuildingIndividualVariableCompositionsItem.h"
42 #include "Reasoner/Answerer/CAnswererContext.h"
43 #include "Reasoner/Answerer/COptimizedComplexVariableRolePropagationJoiningItem.h"
44 #include "Reasoner/Answerer/COptimizedComplexVariableRolePropagationReplacementItem.h"
45 #include "Reasoner/Answerer/COptimizedComplexVariableIndividualMappingsMultiHash.h"
46
47
48
49 #include "Reasoner/Ontology/COntologyProcessingIteratorRealizationRequirement.h"
50
51 #include "Concurrent/CConcurrentTaskScheduler.h"
52
53 // Logger includes
54 #include "Logger/CLogger.h"
55 #include "Logger/CLogIdentifier.h"
56
57
58
59
60
61 namespace Konclude {
62
63 using namespace Concurrent;
64
65 namespace Reasoner {
66
67 using namespace Ontology;
68
69 namespace Answerer {
70
71 namespace Composition {
72
73
74 /*!
75 *
76 * \class CQtConcurrentVariableMappingsCompositionPropagationComputator
77 * \author Andreas Steigmiller
78 * \version 0.1
79 * \brief TODO
80 *
81 */
82 class CQtConcurrentVariableMappingsCompositionPropagationComputator : public CAbstractVariableMappingsCompositionPropagationComputator {
83 // public methods
84 public:
85 //! Constructor
86 CQtConcurrentVariableMappingsCompositionPropagationComputator();
87
88
89 virtual CAbstractVariableMappingsCompositionComputator* configureComputator(COptimizedComplexExpressionOntologyAnsweringItem* ontoAnsweringItem, CAbstractVariableMappingsCompositionItemRequirementProcessor* reqProcessor, CAnswererContext* answererContext);
90
91
92 // protected methods
93 protected:
94
95 virtual bool computeVariableMappingsPropagationComposition(COptimizedComplexVariableRolePropagationAbstractItem* propagationItem, COptimizedComplexBuildingIndividualVariableCompositionsItem* buildingVarItem, CAnswererContext* answererContext, bool& processing);
96
97
98 // protected variables
99 protected:
100 cint64 mConfBatchSizeLimit = 200;
101 cint64 mConfBatchSizeCount = 200;
102
103 cint64 mConfConcurrentPropagationHashCount = 50;
104 cint64 mConfConcurrentVariableMappingPartCount = 50;
105
106 cint64 mConcurrentJoinComputationTaskCount = 50;
107
108 bool mConfPartitionizedMemoryManagement = false;
109 bool mConfPerformanceLogging = false;
110
111
112 // private methods
113 private:
114
115 // private variables
116 private:
117
118 };
119
120 }; // end namespace Composition
121
122 }; // end namespace Answerer
123
124 }; // end namespace Reasoner
125
126 }; // end namespace Konclude
127
128 #endif // KONCLUDE_REASONER_ANSWERER_COMPOSITION_CQTCONCURRENTVARIABLEMAPPINGSCOMPOSITIONPROPAGATIONCOMPUTATOR_H