public class IteratingMlnReasoner extends AbstractMlnReasoner
Modifier and Type | Field and Description |
---|---|
private java.util.Map<FolFormula,java.lang.Double> |
archive
For archiving previous results.
|
private long |
numberOfIterations
The number of iterations.
|
private AbstractMlnReasoner |
reasoner
The reasoner inside this reasoner.
|
Constructor and Description |
---|
IteratingMlnReasoner(AbstractMlnReasoner reasoner,
long numberOfIterations)
Creates a new IteratingMlnReasoner for the given MLN reaasoner.
|
Modifier and Type | Method and Description |
---|---|
protected double |
doQuery(FolFormula query)
Performs the actual querying.
|
void |
reset()
Resets this reasoner (removes cached files etc.)
|
computeWeight, getSignature, numberOfGroundSatisfactions, query
getKnowledgeBase
private AbstractMlnReasoner reasoner
private long numberOfIterations
private java.util.Map<FolFormula,java.lang.Double> archive
public IteratingMlnReasoner(AbstractMlnReasoner reasoner, long numberOfIterations)
reasoner
- some MLN reasoner.numberOfIterations
- the number of iterations for the reasonerpublic void reset()
AbstractMlnReasoner
reset
in class AbstractMlnReasoner
protected double doQuery(FolFormula query)
AbstractMlnReasoner
doQuery
in class AbstractMlnReasoner
query
- a fol formula guaranteed to be ground.