Debian Codegraph @

Source/Reasoner/Classifier/Events/CTestCalculatedCallbackEvent.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_CLASSIFIER_EVENTS_CTESTCALCULATEDUPDATEEVENT_H
22 #define KONCLUDE_REASONER_CLASSIFIER_EVENTS_CTESTCALCULATEDUPDATEEVENT_H
23
24
25
26 // Libraries includes
27
28
29 // Namespace includes
30 #include "../ClassifierSettings.h"
31 #include "../CClassificationComputationItem.h"
32
33
34 // Other includes
35 #include "Concurrent/Events/CCustomEvent.h"
36
37 #include "Reasoner/Ontology/CConcreteOntology.h"
38
39 #include "Reasoner/Taxonomy/CTaxonomy.h"
40
41 #include "Concurrent/Callback/CCallbackData.h"
42
43 #include "Reasoner/Query/CSatisfiableCalculationJob.h"
44 #include "Reasoner/Query/CJobSatisfiableCallbackContextData.h"
45
46 #include "Reasoner/Classification/CClassificationCalculationStatisticsCollection.h"
47
48 // Logger includes
49 #include "Logger/CLogger.h"
50
51
52
53 namespace Konclude {
54
55 using namespace Concurrent::Events;
56 using namespace Concurrent::Callback;
57
58 namespace Reasoner {
59
60 using namespace Ontology;
61 using namespace Taxonomy;
62 using namespace Classification;
63 using namespace Kernel::Task;
64
65 namespace Classifier {
66
67 namespace Events {
68
69
70
71 /*!
72 * \class CTestCalculatedCallbackEvent
73 * \author Andreas Steigmiller
74 * \version 0.1
75 * \brief
76 */
77 class CTestCalculatedCallbackEvent : public CCustomEvent, public CJobSatisfiableCallbackContextData, public CCallbackData {
78 // public methods
79 public:
80 //! Constructor
81 CTestCalculatedCallbackEvent(CThread *receiverThread, CSatisfiableCalculationJob *satCalcJob, CClassificationComputationItem *classBoxWorkItem, CClassificationCalculationStatisticsCollection* statisticCollection);
82
83 //! Destructor
84 virtual ~CTestCalculatedCallbackEvent();
85
86 static const QEvent::Type EVENTTYPE = EVENTTESTCALCULATEDCALLBACK;
87
88 virtual void doCallback();
89
90 virtual bool getTestResultSatisfiable();
91 virtual CSatisfiableCalculationJob *getSatisfiableCalculationJob();
92
93 virtual CClassificationComputationItem *getClassificationWorkItem();
94
95 CClassificationCalculationStatisticsCollection* getUsedStatisticsCollection();
96
97 // protected methods
98 protected:
99
100 // protected variables
101 protected:
102 CThread *recThread;
103 CSatisfiableCalculationJob* mSatCalcJob;
104 CClassificationComputationItem *workItem;
105 CClassificationCalculationStatisticsCollection* mUsedStatisticsCollection;
106
107 // private methods
108 private:
109
110 // private variables
111 private:
112
113 };
114
115 }; // end namespace Events
116
117 }; // end namespace Classifier
118
119 }; // end namespace Reasoner
120
121 }; // end namespace Konclude
122
123 #endif // KONCLUDE_REASONER_CLASSIFIER_EVENTS_CTESTCALCULATEDUPDATEEVENT_H