MLN Class Reference

List of all members.

Public Member Functions

 MLN ()
 ~MLN ()
int getNumClauses () const
int getNumHardClauses () const
bool containsClause (const Clause *const &c) const
bool appendClause (const string &formulaString, const bool &hasExist, Clause *const &c, const double &wt, const bool &isHardClause, int &retClauseIdx)
ClauseremoveClause (const int &remIdx)
ClauseremoveClause (const Clause *const &c)
void removeAllClauses (Array< Clause * > *const &clauses)
void rehashClauses ()
double getMaxAbsSoftWt ()
int findClauseIdx (const Clause *const &c) const
const ClausefindClause (const Clause *const &c) const
const ClausegetClause (const int &i) const
bool isExistClause (const int &i) const
bool isExistClause (const Clause *const &c) const
bool isExistUniqueClause (const int &i) const
bool isExistUniqueClause (const Clause *const &c) const
bool clauseInNonExistAndNonExistUniqueFormulaCNF (const int &i) const
bool clauseInNonExistAndNonExistUniqueFormulaCNF (const Clause *const &c) const
const ClauseHashArraygetClauses () const
void getClauses (Array< Clause * > *const &clauses) const
const MLNClauseInfogetMLNClauseInfo (const int &i) const
int * getMLNClauseInfoIndexPtr (const int &i) const
const Array< MLNClauseInfo * > * getMLNClauseInfos () const
void setClauseInfoPriorMeansToClauseWts ()
void getClauseWts (Array< double > &wts) const
void setClauseWts (Array< double > &wts)
const IndexClauseHashArraygetClausesOfFormula (const string &formulaStr) const
bool setFormulaNumPreds (const string &formulaStr, const int &numPreds)
bool setFormulaIsHard (const string &formulaStr, const bool &isHard)
bool setFormulaPriorMean (const string &formulaStr, const double &priorMean)
bool setFormulaWt (const string &formulaStr, const double &wt)
bool setFormulaIsExistUnique (const string &formulaStr, const bool &isExistUnique)
double getFormulaWt (const string &formulaStr)
const FormulaAndClausesArraygetFormulaAndClausesArray () const
const Array< Array< IndexClause * > * > * getPredIdToClausesMap () const
const Array< IndexClause * > * getClausesContainingPred (const int &predId) const
void compress ()
void printMLN (ostream &out, const Domain *const &domain)
void printMLNNonExistFormulas (ostream &out, const Domain *const &domain)
void printMLNClausesFormulas (ostream &out, const Domain *const &domain, const bool &includeIdx)
void printClausesWithWeights (ostream &out, const Domain *const &domain, int *const &startIdx=NULL, const bool &includeExistClauses=true, const bool &sortByLen=false, const bool &divWtAmongExistFormulas=false) const
void printClausePriorMeans (ostream &out, const Domain *const &domain)
void printFormulaPriorMeans (ostream &out)

Detailed Description

Definition at line 78 of file mln.h.


The documentation for this class was generated from the following file:
Generated on Tue Jan 16 05:30:06 2007 for Alchemy by  doxygen 1.5.1