Debian Codegraph @

Source/Reasoner/Kernel/Process/CConceptProcessingQueue.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_KERNEL_PROCESS_CCONCEPTPROCESSINGQUEUE_H
22 #define KONCLUDE_REASONER_KERNEL_PROCESS_CCONCEPTPROCESSINGQUEUE_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "ProcessSettings.h"
29 #include "CConceptProcessDescriptor.h"
30 #include "CConceptDescriptor.h"
31 #include "CProcessContext.h"
32 #include "CConceptProcessPriority.h"
33 #include "CConceptProcessingPriorityQueueData.h"
34 #include "CConceptProcessingQueueIterator.h"
35
36
37 // Other includes
38
39
40 // Logger includes
41 #include "Logger/CLogger.h"
42
43
44
45 namespace Konclude {
46
47 namespace Reasoner {
48
49 using namespace Ontology;
50
51 namespace Kernel {
52
53 namespace Process {
54
55 /*!
56 *
57 * \class CConceptProcessingQueue
58 * \author Andreas Steigmiller
59 * \version 0.1
60 * \brief TODO
61 *
62 */
63 class CConceptProcessingQueue {
64 // public methods
65 public:
66 //! Constructor
67 CConceptProcessingQueue(CProcessContext* processContext);
68
69 //! Destructor
70 virtual ~CConceptProcessingQueue();
71
72 CConceptProcessingQueue* initProcessingQueue(CConceptProcessingQueue* processingQueue);
73
74 CConceptProcessingQueue* resetProcessingQueueModification();
75
76
77
78 qint64 getDescriptorCount();
79 bool isEmpty();
80 bool hasProcessDescriptor();
81
82 CConceptProcessingQueue *insertConceptProcessDescriptor(CConceptProcessDescriptor *conProDes);
83 CConceptProcessingQueue *reinsertConceptProcessDescriptor(CConceptProcessDescriptor *conProDes);
84 CConceptProcessDescriptor *takeNextConceptDescriptorProcess();
85
86 bool getNextConceptProcessPriority(CConceptProcessPriority* priority);
87
88 CConceptProcessingQueueIterator getConceptProcessingQueueIterator();
89
90
91 // protected methods
92 protected:
93
94
95 // protected variables
96 protected:
97 cint64 mMaxPriorityIndex;
98 const static cint64 mMaxIndex = 15;
99
100 CProcessContext* mProcessContext;
101 CConceptProcessingPriorityQueueData mPriorityVec[mMaxIndex];
102
103 cint64 mDesCount;
104
105
106 // private methods
107 private:
108
109 // private variables
110 private:
111
112 };
113
114 }; // end namespace Process
115
116 }; // end namespace Kernel
117
118 }; // end namespace Reasoner
119
120 }; // end namespace Konclude
121
122 #endif // KONCLUDE_REASONER_KERNEL_PROCESS_CCONCEPTPROCESSINGQUEUE_H