public class NaiveMlnReasoner extends AbstractMlnReasoner
| Constructor and Description |
|---|
NaiveMlnReasoner(net.sf.tweety.commons.BeliefBase beliefBase)
Creates a new NaiveMlnReasoner for the given Markov logic network.
|
NaiveMlnReasoner(net.sf.tweety.commons.BeliefBase beliefBase,
net.sf.tweety.logics.fol.syntax.FolSignature signature)
Creates a new NaiveMlnReasoner for the given Markov logic network.
|
| Modifier and Type | Method and Description |
|---|---|
double |
doQuery(net.sf.tweety.logics.fol.syntax.FolFormula query)
Performs the actual querying.
|
void |
reset()
Resets this reasoner (removes cached files etc.)
|
void |
setTempDirectory(String str)
Sets the path of the directory for temporary files.
|
computeWeight, getSignature, numberOfGroundSatisfactions, querypublic NaiveMlnReasoner(net.sf.tweety.commons.BeliefBase beliefBase)
beliefBase - a Markov logic network.public NaiveMlnReasoner(net.sf.tweety.commons.BeliefBase beliefBase,
net.sf.tweety.logics.fol.syntax.FolSignature signature)
beliefBase - a Markov logic network.signature - another signature (if the probability distribution should be defined
on that one (that one should subsume the signature of the Markov logic network)public void reset()
AbstractMlnReasonerreset in class AbstractMlnReasonerpublic void setTempDirectory(String str)
str - a file pathpublic double doQuery(net.sf.tweety.logics.fol.syntax.FolFormula query)
AbstractMlnReasonerdoQuery in class AbstractMlnReasonerquery - a fol formula guaranteed to be ground.Copyright © 2018. All rights reserved.