aGrUM  0.14.2
IPlanningStrategy.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_SDYNA_PLANNING_STRATEGY_H
30 #define GUM_SDYNA_PLANNING_STRATEGY_H
31 // =========================================================================
32 #include <string>
33 // =========================================================================
34 #include <agrum/core/types.h>
35 // =========================================================================
37 // =========================================================================
38 
39 namespace gum {
40 
48  template < typename GUM_SCALAR >
50  // ###################################################################
52  // ###################################################################
54  public:
55  // ==========================================================================
57  // ==========================================================================
58  virtual ~IPlanningStrategy() {}
59 
61 
62  // ###################################################################
64  // ###################################################################
66  public:
67  // ==========================================================================
69  // ==========================================================================
70  virtual void initialize(const FMDP< GUM_SCALAR >* fmdp) = 0;
71 
73 
74 
75  // ###################################################################
77  // ###################################################################
79  public:
80  // ==========================================================================
86  // ==========================================================================
87  virtual void makePlanning(Idx nbIte) = 0;
88 
89  // ==========================================================================
91  // ==========================================================================
93  optimalPolicy() = 0;
94 
96 
97 
98  // ###################################################################
100  // ###################################################################
102  public:
103  // ==========================================================================
105  // ==========================================================================
106  virtual Size vFunctionSize() = 0;
107 
108  // ==========================================================================
110  // ==========================================================================
111  virtual Size optimalPolicySize() = 0;
112 
113  // ==========================================================================
115  // ==========================================================================
116  virtual std::string optimalPolicy2String() = 0;
117 
119  };
120 } // namespace gum
121 #endif // GUM_SDYNA_LEARNING_STRATEGY_H
virtual void initialize(const FMDP< GUM_SCALAR > *fmdp)=0
Initializes the learner.
Provides basic types used in aGrUM.
virtual std::string optimalPolicy2String()=0
Returns a string describing the optimal policy in a dot format.
virtual ~IPlanningStrategy()
Destructor (virtual and empty since it&#39;s an interface)
virtual Size optimalPolicySize()=0
Returns optimalPolicy computed so far current size.
This class is used to implement factored decision process.
Definition: fmdp.h:54
gum is the global namespace for all aGrUM entities
Definition: agrum.h:25
Headers of the MDDOperatorStrategy planer class.
virtual void makePlanning(Idx nbIte)=0
Starts a new planning.
Class implementingting a function graph.
virtual const MultiDimFunctionGraph< ActionSet, SetTerminalNodePolicy > * optimalPolicy()=0
Returns optimalPolicy computed so far current size.
Size Idx
Type for indexes.
Definition: types.h:50
virtual Size vFunctionSize()=0
Returns vFunction computed so far current size.
<agrum/FMDP/SDyna/IPlanningStrategy.h>
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Definition: types.h:45