mixmod  3.2.0
Mixture models for clustering and classification
 All Classes Namespaces Files Functions Variables Enumerations Friends
PredictMain.h
1 /***************************************************************************
2  SRC/mixmod/DiscriminantAnalysis/Predict/PredictMain.h description
3  copyright : (C) MIXMOD Team - 2001-2016
4  email : contact@mixmod.org
5  ***************************************************************************/
6 
7 /***************************************************************************
8  This file is part of MIXMOD
9 
10  MIXMOD is free software: you can redistribute it and/or modify
11  it under the terms of the GNU General Public License as published by
12  the Free Software Foundation, either version 3 of the License, or
13  (at your option) any later version.
14 
15  MIXMOD is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with MIXMOD. If not, see <http://www.gnu.org/licenses/>.
22 
23  All informations available on : http://www.mixmod.org
24 ***************************************************************************/
25 #ifndef XEMPREDICTMAIN_H
26 #define XEMPREDICTMAIN_H
27 
28 #include "mixmod/Utilities/Util.h"
29 
30 namespace XEM {
31 
32 // pre-declaration
33 class Input;
34 class PredictInput;
35 class PredictOutput;
36 class Model;
37 
45 class PredictMain {
46 
47 public:
48 
50  PredictMain();
51 
53  PredictMain(PredictInput * input, PredictOutput * output = NULL);
54 
56  virtual ~PredictMain();
57 
58 
59  // Accessor
60  PredictOutput * getPredictOutput() const;
61 
62  // get Input
63  Input * getInput();
64 
66  void run();
67  void setOutputNull();
68 
69 private:
70 
71  // input container
72  PredictInput * _input;
73  // output container
74  PredictOutput * _output;
75 };
76 
77 inline PredictOutput * PredictMain::getPredictOutput() const {
78  return _output;
79 }
80 
81 inline void PredictMain::setOutputNull() {
82  _output = NULL;
83 }
84 
85 }
86 
87 #endif
PredictMain()
Default constructor.
Definition: PredictMain.cpp:42
Definition: PredictMain.h:45
virtual ~PredictMain()
Destructor.
Definition: PredictMain.cpp:56
Constants definitions, various utilities to describe models, and others...
Definition: PredictOutput.h:43
void run()
Run method.
Definition: PredictMain.cpp:65
Definition: Input.h:44
Definition: PredictInput.h:44