Debian Codegraph @

Source/Control/Command/Instructions/CTestExtendedCalculateQueryCommand.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_CTESTEXTENDEDCALCULATEQUERYCOMMAND_H
22 #define KONCLUDE_Control_COMMAND_CTESTEXTENDEDCALCULATEQUERYCOMMAND_H
23
24 // Libraries includes
25 #include <QString>
26 #include <QDomElement>
27
28 // Namespace includes
29 #include "CCalculateQueryCommand.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
38 #include "Reasoner/Query/CQueryResult.h"
39
40
41 // Logger includes
42 #include "Logger/CLogger.h"
43
44 using namespace Konclude::Logger;
45
46
47 namespace Konclude {
48
49 using namespace Reasoner::Query;
50
51 namespace Control {
52
53 namespace Command {
54
55 namespace Instructions {
56
57 /*!
58 *
59 * \class CTestExtendedCalculateQueryCommand
60 * \author Andreas Steigmiller
61 * \version 0.1
62 * \brief TODO
63 *
64 */
65 class CTestExtendedCalculateQueryCommand : public CCalculateQueryCommand {
66 // public methods
67 public:
68 //! Constructor
69 CTestExtendedCalculateQueryCommand(CQueryCommandProvider *queryCommandProvider, CCommand *parentSuperCommand = 0);
70
71 //! Destructor
72 virtual ~CTestExtendedCalculateQueryCommand();
73
74 virtual qint64 getCommandTag();
75
76 virtual QString getBriefCommandDescription();
77
78 virtual qint64 getTimingReportLevel();
79 virtual CTestExtendedCalculateQueryCommand *setTimingReportLevel(qint64 timingReportLevel);
80
81 virtual qint64 getCalculationTime();
82 virtual bool hasCalculationTime();
83 virtual CTestExtendedCalculateQueryCommand *setCalculationTime(qint64 calculationTime);
84
85 virtual qint64 getCreationElapsedMilliSeconds();
86
87 virtual CTestExtendedCalculateQueryCommand *setExpectedQueryResult(CQueryResult *expectedQueryResult);
88 virtual CQueryResult *getExpectedQueryResult();
89
90 // protected methods
91 protected:
92
93 // protected variables
94 protected:
95 qint64 timingLevel;
96 qint64 calcTime;
97 bool hasCalcTime;
98
99 QTime creationTime;
100
101 CQueryResult *expectedResult;
102
103 // private methods
104 private:
105
106 // private variables
107 private:
108
109 };
110
111 }; // end namespace Instructions
112
113 }; // end namespace Command
114
115 }; // end namespace Control
116
117 }; // end namespace Konclude
118
119 #endif // KONCLUDE_Control_COMMAND_CTESTEXTENDEDCALCULATEQUERYCOMMAND_H