1 //                                               -*- C++ -*-
2 /**
3  *  @brief NearestPointCheckerResult stores the test result
4  *
5  *  Copyright 2005-2021 Airbus-EDF-IMACS-ONERA-Phimeca
6  *
7  *  This library is free software: you can redistribute it and/or modify
8  *  it under the terms of the GNU Lesser General Public License as published by
9  *  the Free Software Foundation, either version 3 of the License, or
10  *  (at your option) any later version.
11  *
12  *  This library is distributed in the hope that it will be useful,
13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *  GNU Lesser General Public License for more details.
16  *
17  *  You should have received a copy of the GNU Lesser General Public License
18  *  along with this library.  If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 #ifndef OPENTURNS_NEARESTPOINTCHECKERRESULT_HXX
22 #define OPENTURNS_NEARESTPOINTCHECKERRESULT_HXX
23 
24 #include "openturns/OTprivate.hxx"
25 #include "openturns/Sample.hxx"
26 #include "openturns/PersistentObject.hxx"
27 
28 BEGIN_NAMESPACE_OPENTURNS
29 
30 
31 
32 /**
33  * @class NearestPointCheckerResult
34  * NearestPointCheckerResult stores the test result
35  */
36 class OT_API NearestPointCheckerResult:
37   public PersistentObject
38 {
39   CLASSNAME
40 public:
41 
42   /** Default constructor */
43   NearestPointCheckerResult();
44 
45   /** Standard constructor */
46   NearestPointCheckerResult(const Sample & verifyingConstraintPoints,
47                             const Sample & verifyingConstraintValues,
48                             const Sample & violatingConstraintPoints,
49                             const Sample & violatingConstraintValues);
50 
51 
52   /** Virtual constructor */
53   NearestPointCheckerResult * clone() const override;
54 
55   /** Assigment operator */
56 
57   /** verifyingConstraintPoints accessor */
58   Sample  getVerifyingConstraintPoints() const;
59   /** verifyingConstraintValues accessor */
60   Sample  getVerifyingConstraintValues() const;
61   /** violatingConstraintPoints accessor */
62   Sample  getViolatingConstraintPoints() const;
63   /** violatingConstraintValues accessor */
64   Sample  getViolatingConstraintValues() const;
65   /** verifyingConstraintPoints accessor */
66   void setVerifyingConstraintPoints(const Sample & verifyingConstraintPoints);
67 
68   /** verifyingConstraintValues accessor */
69   void setVerifyingConstraintValues(const Sample & verifyingConstraintValues);
70 
71   /** violatingConstraintPoints accessor */
72   void setViolatingConstraintPoints(const Sample & violatingConstraintPoints);
73 
74   /** violatingConstraintValuess accessor */
75   void setViolatingConstraintValues(const Sample & violatingConstraintValues);
76 
77   /** String converter */
78   String __repr__() const override;
79 
80 private:
81 
82 
83   Sample verifyingConstraintPoints_;
84   Sample verifyingConstraintValues_;
85   Sample violatingConstraintPoints_;
86   Sample violatingConstraintValues_;
87 
88 }; // class NearestPointCheckerResult
89 
90 END_NAMESPACE_OPENTURNS
91 
92 #endif /* OPENTURNS_NEARESTPOINTCHECKER_HXX */
93