2013-02-07 17:50:02 +00:00
|
|
|
#ifndef YAP_PACKAGES_CLPBN_HORUS_GROUNDSOLVER_H_
|
|
|
|
#define YAP_PACKAGES_CLPBN_HORUS_GROUNDSOLVER_H_
|
2012-11-14 23:17:39 +00:00
|
|
|
|
|
|
|
#include "FactorGraph.h"
|
|
|
|
#include "Horus.h"
|
|
|
|
|
|
|
|
|
2013-02-08 21:12:46 +00:00
|
|
|
namespace Horus {
|
2013-02-07 23:53:13 +00:00
|
|
|
|
2013-02-13 14:26:47 +00:00
|
|
|
class GroundSolver {
|
2012-11-14 23:17:39 +00:00
|
|
|
public:
|
|
|
|
GroundSolver (const FactorGraph& factorGraph) : fg(factorGraph) { }
|
|
|
|
|
|
|
|
virtual ~GroundSolver() { } // ensure that subclass destructor is called
|
|
|
|
|
|
|
|
virtual Params solveQuery (VarIds queryVids) = 0;
|
|
|
|
|
2013-02-28 19:45:37 +00:00
|
|
|
virtual void printSolverFlags() const = 0;
|
2012-11-14 23:17:39 +00:00
|
|
|
|
|
|
|
void printAnswer (const VarIds& vids);
|
|
|
|
|
2013-02-28 19:45:37 +00:00
|
|
|
void printAllPosterioris();
|
2012-11-14 23:17:39 +00:00
|
|
|
|
2012-12-27 12:54:58 +00:00
|
|
|
static Params getJointByConditioning (GroundSolverType,
|
|
|
|
FactorGraph, const VarIds& jointVarIds);
|
2012-12-17 18:39:42 +00:00
|
|
|
|
2012-11-14 23:17:39 +00:00
|
|
|
protected:
|
|
|
|
const FactorGraph& fg;
|
2012-12-27 22:25:45 +00:00
|
|
|
|
2013-02-06 00:24:02 +00:00
|
|
|
private:
|
2012-12-27 22:25:45 +00:00
|
|
|
DISALLOW_COPY_AND_ASSIGN (GroundSolver);
|
2012-11-14 23:17:39 +00:00
|
|
|
};
|
|
|
|
|
2013-02-08 21:12:46 +00:00
|
|
|
} // namespace Horus
|
2013-02-07 23:53:13 +00:00
|
|
|
|
2013-02-08 00:20:01 +00:00
|
|
|
#endif // YAP_PACKAGES_CLPBN_HORUS_GROUNDSOLVER_H_
|
2012-11-14 23:17:39 +00:00
|
|
|
|