Debian Codegraph @

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