org.semanticweb.HermiT.structural
Class CommonAtomPairOptimizer

java.lang.Object
  extended by org.semanticweb.HermiT.structural.CommonAtomPairOptimizer

public class CommonAtomPairOptimizer
extends java.lang.Object


Nested Class Summary
protected static class CommonAtomPairOptimizer.AtomPair
           
protected static class CommonAtomPairOptimizer.AtomPairOccurrences
           
 
Field Summary
protected  java.util.Map<DLClause,java.util.Set<CommonAtomPairOptimizer.AtomPairOccurrences>> m_dlClausesToOccurrences
           
protected  java.util.Map<CommonAtomPairOptimizer.AtomPair,CommonAtomPairOptimizer.AtomPairOccurrences> m_pairOccurrences
           
protected  int m_replacementNumber
           
 
Constructor Summary
CommonAtomPairOptimizer(java.util.Collection<DLClause> dlClauses)
           
 
Method Summary
protected  void addCounter(DLClause dlClause, Atom first, Atom second)
           
protected  void addDLClause(DLClause dlClause)
           
protected  boolean atomsCompatible(Atom first, Atom second)
           
 java.util.Set<DLClause> getDLClauses()
           
protected  CommonAtomPairOptimizer.AtomPairOccurrences getMostFrequent()
           
protected  Atom getReplacementAtom(Atom first, Atom second)
           
 void optimizePairs(int pairFrequencyThreshold)
           
protected  void removeDLClause(DLClause dlClause)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

CommonAtomPairOptimizer

public CommonAtomPairOptimizer(java.util.Collection<DLClause> dlClauses)
Method Detail

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)