Class SimpleMlnReasoner
- java.lang.Object
-
- net.sf.tweety.logics.mln.reasoner.AbstractMlnReasoner
-
- net.sf.tweety.logics.mln.reasoner.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 Summary
Constructors Constructor Description SimpleMlnReasoner()
-
Method Summary
Modifier and Type Method Description doubledoQuery(MarkovLogicNetwork mln, net.sf.tweety.logics.fol.syntax.FolFormula query, net.sf.tweety.logics.fol.syntax.FolSignature signature)Performs the actual querying.voidsetTempDirectory(String str)Sets the path of the directory for temporary files.-
Methods inherited from class net.sf.tweety.logics.mln.reasoner.AbstractMlnReasoner
computeWeight, numberOfGroundSatisfactions, query, query
-
-
-
-
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:AbstractMlnReasonerPerforms the actual querying.- Specified by:
doQueryin classAbstractMlnReasoner- Parameters:
mln- an MLNquery- a fol formula guaranteed to be ground.signature- the signature- Returns:
- the answer of the query.
-
-