aGrUM  0.14.2
IVisitableGraphLearner.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2005 by Christophe GONZALES and Pierre-Henri WUILLEMIN *
3  * {prenom.nom}_at_lip6.fr *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ***************************************************************************/
28 // =========================================================================
29 #ifndef GUM_INTERFACE_VISITABLE_GRAPH_LEARNER_H
30 #define GUM_INTERFACE_VISITABLE_GRAPH_LEARNER_H
31 // =========================================================================
32 #include <agrum/core/sequence.h>
33 // =========================================================================
35 // =========================================================================
37 // =========================================================================
39 // =========================================================================
40 
41 namespace gum {
42 
51  // ###################################################################
53  // ###################################################################
55  public:
56  // ==========================================================================
58  // ==========================================================================
60 
62 
63 
64  // ###################################################################
66  // ###################################################################
68  public:
69  // ==========================================================================
71  // ==========================================================================
72  virtual NodeId root() const = 0;
73 
74  // ==========================================================================
76  // ==========================================================================
77  virtual bool isTerminal(NodeId ni) const = 0;
78 
79  // ==========================================================================
81  // ==========================================================================
82  virtual const DiscreteVariable* nodeVar(NodeId ni) const = 0;
83 
84  // ==========================================================================
86  // ==========================================================================
87  virtual NodeId nodeSon(NodeId ni, Idx modality) const = 0;
88 
89  // ==========================================================================
91  // ==========================================================================
92  virtual Idx nodeNbObservation(NodeId ni) const = 0;
93 
94  virtual void insertSetOfVars(MultiDimFunctionGraph< double >*) const = 0;
95 
96 
98  };
99 } // namespace gum
100 #endif // GUM_INTERFACE_VISITABLE_GRAPH_LEARNER_H
Base node set class for graphs.
Base class for discrete random variable.
Header file of gum::Sequence, a class for storing (ordered) sequences of objects. ...
<agrum/FMDP/SDyna/IVisitableGraphLearner.h>
Base class for discrete random variable.
gum is the global namespace for all aGrUM entities
Definition: agrum.h:25
virtual NodeId root() const =0
virtual ~IVisitableGraphLearner()
Destructor (virtual and empty since it&#39;s an interface)
virtual const DiscreteVariable * nodeVar(NodeId ni) const =0
virtual bool isTerminal(NodeId ni) const =0
virtual void insertSetOfVars(MultiDimFunctionGraph< double > *) const =0
Headers of MultiDimFunctionGraph.
virtual NodeId nodeSon(NodeId ni, Idx modality) const =0
Size Idx
Type for indexes.
Definition: types.h:50
virtual Idx nodeNbObservation(NodeId ni) const =0
Size NodeId
Type for node ids.
Definition: graphElements.h:97