Debian Codegraph @

Source/Control/Command/Instructions/CGenerateQueryCommand.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_CGENERATEQUERYCOMMAND_H
22 #define KONCLUDE_CONTROL_COMMAND_CGENERATEQUERYCOMMAND_H
23
24 // Libraries includes
25 #include <QString>
26
27
28 // Namespace includes
29 #include "CQueryCommandProvider.h"
30 #include "CQueryGeneratorCommandProvider.h"
31
32 // Other includes
33 #include "Control/Command/CommandSettings.h"
34 #include "Control/Command/CCommand.h"
35 #include "Control/Command/CPreconditionCommand.h"
36 #include "Control/Command/CCommandProcessedPrecondition.h"
37
38 #include "Reasoner/Ontology/COntologyProcessingRequirement.h"
39 #include "Reasoner/Ontology/COntologyProcessingStepVector.h"
40 #include "Reasoner/Ontology/COntologyProcessingRequirementExpander.h"
41 #include "Reasoner/Ontology/CConcreteOntology.h"
42
43 #include "Reasoner/Generator/CQueryBuilderGenerator.h"
44
45 // Logger includes
46 #include "Logger/CLogger.h"
47
48 using namespace Konclude::Logger;
49
50
51 namespace Konclude {
52
53 using namespace Reasoner::Ontology;
54 using namespace Reasoner::Generator;
55
56 namespace Control {
57
58 namespace Command {
59
60 namespace Instructions {
61
62 /*!
63 *
64 * \class CGenerateQueryCommand
65 * \author Andreas Steigmiller
66 * \version 0.1
67 * \brief TODO
68 *
69 */
70 class CGenerateQueryCommand : public CPreconditionCommand, public CQueryCommandProvider {
71 // public methods
72 public:
73 //! Constructor
74 CGenerateQueryCommand(CQueryGeneratorCommandProvider* queryCommandProvider, CCommand *parentSuperCommand = 0);
75
76 //! Destructor
77 virtual ~CGenerateQueryCommand();
78
79 virtual qint64 getCommandTag();
80
81 virtual QString getBriefCommandDescription();
82
83 virtual CQueryBuilderGenerator* getQueryGenerator();
84
85 virtual CCommand* getCommand();
86
87 virtual CQuery *getQuery();
88 virtual CGenerateQueryCommand *setQuery(CQuery *knowledgeBaseQuery);
89
90 // protected methods
91 protected:
92
93 // protected variables
94 protected:
95 CQueryGeneratorCommandProvider* mQueryCommandProvider;
96 CQuery* mQuery;
97
98 // private methods
99 private:
100
101 // private variables
102 private:
103
104 };
105
106 }; // end namespace Instructions
107
108 }; // end namespace Command
109
110 }; // end namespace Control
111
112 }; // end namespace Konclude
113
114 #endif // KONCLUDE_CONTROL_COMMAND_CGENERATEQUERYCOMMAND_H