Class SimpleMlnReasoner

  • All Implemented Interfaces:
    net.sf.tweety.commons.QuantitativeReasoner<MarkovLogicNetwork,​net.sf.tweety.logics.fol.syntax.FolFormula>, net.sf.tweety.commons.Reasoner<Double,​MarkovLogicNetwork,​net.sf.tweety.logics.fol.syntax.FolFormula>

    public class SimpleMlnReasoner
    extends AbstractMlnReasoner
    Author:
    mthimm
    • Constructor Detail

      • SimpleMlnReasoner

        public SimpleMlnReasoner()
    • Method Detail

      • setTempDirectory

        public void setTempDirectory​(String str)
        Sets the path of the directory for temporary files.
        Parameters:
        str - a file path
      • doQuery

        public double doQuery​(MarkovLogicNetwork mln,
                              net.sf.tweety.logics.fol.syntax.FolFormula query,
                              net.sf.tweety.logics.fol.syntax.FolSignature signature)
        Description copied from class: AbstractMlnReasoner
        Performs the actual querying.
        Specified by:
        doQuery in class AbstractMlnReasoner
        Parameters:
        mln - an MLN
        query - a fol formula guaranteed to be ground.
        signature - the signature
        Returns:
        the answer of the query.