public abstract class AbstractMlnReasoner
extends net.sf.tweety.commons.Reasoner
| Constructor and Description |
|---|
AbstractMlnReasoner(net.sf.tweety.commons.BeliefBase beliefBase)
Creates a new reasoner for the given Markov logic network.
|
AbstractMlnReasoner(net.sf.tweety.commons.BeliefBase beliefBase,
net.sf.tweety.logics.fol.syntax.FolSignature signature)
Creates a new reasoner for the given Markov logic network.
|
| Modifier and Type | Method and Description |
|---|---|
protected double |
computeWeight(net.sf.tweety.logics.fol.semantics.HerbrandInterpretation hInt)
Computes the (unnormalized) weight of the given Herbrand interpretation
with respect to the formulas in this reasoner's MLN.
|
protected abstract double |
doQuery(net.sf.tweety.logics.fol.syntax.FolFormula query)
Performs the actual querying.
|
protected net.sf.tweety.logics.fol.syntax.FolSignature |
getSignature()
Returns the signature used for reasoning.
|
protected int |
numberOfGroundSatisfactions(net.sf.tweety.logics.fol.syntax.FolFormula formula,
net.sf.tweety.logics.fol.semantics.HerbrandInterpretation hInt)
Computes the number of instantiations of the formula, wrt.
|
net.sf.tweety.commons.Answer |
query(net.sf.tweety.commons.Formula query) |
abstract void |
reset()
Resets this reasoner (removes cached files etc.)
|
public AbstractMlnReasoner(net.sf.tweety.commons.BeliefBase beliefBase)
beliefBase - a Markov logic network.public AbstractMlnReasoner(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)protected net.sf.tweety.logics.fol.syntax.FolSignature getSignature()
public abstract void reset()
public net.sf.tweety.commons.Answer query(net.sf.tweety.commons.Formula query)
query in class net.sf.tweety.commons.Reasonerprotected double computeWeight(net.sf.tweety.logics.fol.semantics.HerbrandInterpretation hInt)
hInt - a Herbrand interpretationprotected int numberOfGroundSatisfactions(net.sf.tweety.logics.fol.syntax.FolFormula formula,
net.sf.tweety.logics.fol.semantics.HerbrandInterpretation hInt)
formula - some fol formula.hInt - a Herbrand interpretation.protected abstract double doQuery(net.sf.tweety.logics.fol.syntax.FolFormula query)
query - a fol formula guaranteed to be ground.Copyright © 2018. All rights reserved.