org.semanticweb.HermiT.structural
Class CommonAtomPairOptimizer
java.lang.Object
org.semanticweb.HermiT.structural.CommonAtomPairOptimizer
public class CommonAtomPairOptimizer
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_pairOccurrences
protected final java.util.Map<CommonAtomPairOptimizer.AtomPair,CommonAtomPairOptimizer.AtomPairOccurrences> m_pairOccurrences
m_dlClausesToOccurrences
protected final java.util.Map<DLClause,java.util.Set<CommonAtomPairOptimizer.AtomPairOccurrences>> m_dlClausesToOccurrences
m_replacementNumber
protected int m_replacementNumber
CommonAtomPairOptimizer
public CommonAtomPairOptimizer(java.util.Collection<DLClause> dlClauses)
addDLClause
protected void addDLClause(DLClause dlClause)
addCounter
protected void addCounter(DLClause dlClause,
Atom first,
Atom second)
atomsCompatible
protected boolean atomsCompatible(Atom first,
Atom second)
removeDLClause
protected void removeDLClause(DLClause dlClause)
optimizePairs
public void optimizePairs(int pairFrequencyThreshold)
getDLClauses
public java.util.Set<DLClause> getDLClauses()
getMostFrequent
protected CommonAtomPairOptimizer.AtomPairOccurrences getMostFrequent()
getReplacementAtom
protected Atom getReplacementAtom(Atom first,
Atom second)