Debian Codegraph @

Source/Test/Evaluation/CReasonerEvaluationRequestResponse.cpp

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 #include "CReasonerEvaluationRequestResponse.h"
22
23
24 namespace Konclude {
25
26 namespace Test {
27
28 namespace Evaluation {
29
30 CReasonerEvaluationRequestResponse::CReasonerEvaluationRequestResponse() {
31 mResponseTime = 0;
32 mTimedOut = false;
33 mResponseError = false;
34 mEvaluationError = false;
35 }
36
37 CReasonerEvaluationRequestResponse* CReasonerEvaluationRequestResponse::setResponseTime(cint64 responseTime) {
38 mResponseTime = responseTime;
39 return this;
40 }
41
42 CReasonerEvaluationRequestResponse* CReasonerEvaluationRequestResponse::setTimedOut(bool timedOut) {
43 mTimedOut = timedOut;
44 return this;
45 }
46
47 CReasonerEvaluationRequestResponse* CReasonerEvaluationRequestResponse::setResponseError(bool responseError) {
48 mResponseError = responseError;
49 return this;
50 }
51
52 CReasonerEvaluationRequestResponse* CReasonerEvaluationRequestResponse::setEvaluationError(bool evaluationError) {
53 mEvaluationError = evaluationError;
54 return this;
55 }
56
57
58 CReasonerEvaluationRequestResponse* CReasonerEvaluationRequestResponse::setEvaluationErrorString(const QString& errorString) {
59 mEvaluationErrorString = errorString;
60 return this;
61 }
62
63 CReasonerEvaluationRequestResponse* CReasonerEvaluationRequestResponse::setResponseErrorString(const QString& errorString) {
64 mResponseErrorString = errorString;
65 return this;
66 }
67
68
69 cint64 CReasonerEvaluationRequestResponse::getResponseTime() {
70 return mResponseTime;
71 }
72
73 bool CReasonerEvaluationRequestResponse::isTimedOut() {
74 return mTimedOut;
75 }
76
77 bool CReasonerEvaluationRequestResponse::hasResponseError() {
78 return mResponseError;
79 }
80
81 bool CReasonerEvaluationRequestResponse::hasEvaluationError() {
82 return mEvaluationError;
83 }
84
85 QString CReasonerEvaluationRequestResponse::getEvaluationErrorString() {
86 return mEvaluationErrorString;
87 }
88
89 QString CReasonerEvaluationRequestResponse::getResponseErrorString() {
90 return mResponseErrorString;
91 }
92
93 }; // end namespace Evaluation
94
95 }; // end namespace Test
96
97 }; // end namespace Konclude