Debian Codegraph @

Source/Control/Command/Instructions/CKnowledgeBaseQueryCommand.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_COMMAND_CKNOWLEDGEBASEQUERYCOMMAND_H
22 #define KONCLUDE_Control_COMMAND_CKNOWLEDGEBASEQUERYCOMMAND_H
23
24 // Libraries includes
25 #include <QString>
26 #include <QDomElement>
27
28 // Namespace includes
29 #include "CKnowledgeBaseCommand.h"
30 #include "CCalculateQueryCommand.h"
31 #include "CBuildQueryCommand.h"
32
33 // Other includes
34
35 #include "Control/Command/CommandSettings.h"
36 #include "Control/Command/CCommand.h"
37 #include "Control/Command/CPreconditionCommand.h"
38
39
40 // Logger includes
41 #include "Logger/CLogger.h"
42
43 using namespace Konclude::Logger;
44
45
46 namespace Konclude {
47
48 namespace Control {
49
50 namespace Command {
51
52 namespace Instructions {
53
54 /*!
55 *
56 * \class CKnowledgeBaseQueryCommand
57 * \author Andreas Steigmiller
58 * \version 0.1
59 * \brief TODO
60 *
61 */
62 class CKnowledgeBaseQueryCommand : public CKnowledgeBaseCommand {
63 // public methods
64 public:
65 //! Constructor
66 CKnowledgeBaseQueryCommand(const QString &knowledgeBaseNameString, CCommand *parentSuperCommand = 0);
67
68 //! Destructor
69 virtual ~CKnowledgeBaseQueryCommand();
70
71 virtual QString getBriefCommandDescription();
72 virtual QString getKnowledgeBaseName();
73
74 virtual CCalculateQueryCommand *getCalculateQueryCommand();
75 virtual CKnowledgeBaseQueryCommand *setCalculateQueryCommand(CCalculateQueryCommand *calculateQueryCommand);
76
77 virtual bool isComplexQuery();
78 virtual CKnowledgeBaseQueryCommand* setQueryComplexity(bool complex);
79
80
81 virtual CBuildQueryCommand *getBuildQueryCommand();
82 virtual CKnowledgeBaseQueryCommand *setBuildQueryCommand(CBuildQueryCommand *buildQueryCommand);
83
84
85 // protected methods
86 protected:
87
88 // protected variables
89 protected:
90 CCalculateQueryCommand *calcQueryCommand;
91 CBuildQueryCommand *buildCommand;
92 QString kbString;
93 bool mComplex;
94
95 // private methods
96 private:
97
98 // private variables
99 private:
100
101 };
102
103 }; // end namespace Instructions
104
105 }; // end namespace Command
106
107 }; // end namespace Control
108
109 }; // end namespace Konclude
110
111 #endif // KONCLUDE_Control_COMMAND_CKNOWLEDGEBASEQUERYCOMMAND_H