This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/CLPBN/horus/GroundSolver.h
Tiago Gomes 206cf0a9c7 Trivial
2013-02-08 00:20:01 +00:00

39 lines
823 B
C++

#ifndef YAP_PACKAGES_CLPBN_HORUS_GROUNDSOLVER_H_
#define YAP_PACKAGES_CLPBN_HORUS_GROUNDSOLVER_H_
#include "FactorGraph.h"
#include "Horus.h"
namespace horus {
class GroundSolver
{
public:
GroundSolver (const FactorGraph& factorGraph) : fg(factorGraph) { }
virtual ~GroundSolver() { } // ensure that subclass destructor is called
virtual Params solveQuery (VarIds queryVids) = 0;
virtual void printSolverFlags (void) const = 0;
void printAnswer (const VarIds& vids);
void printAllPosterioris (void);
static Params getJointByConditioning (GroundSolverType,
FactorGraph, const VarIds& jointVarIds);
protected:
const FactorGraph& fg;
private:
DISALLOW_COPY_AND_ASSIGN (GroundSolver);
};
} // namespace horus
#endif // YAP_PACKAGES_CLPBN_HORUS_GROUNDSOLVER_H_