org.semanticweb.HermiT.blocking.old
Class AnywhereCoreBlockingOld

java.lang.Object
  extended by org.semanticweb.HermiT.blocking.old.AnywhereCoreBlockingOld
All Implemented Interfaces:
java.io.Serializable, BlockingStrategy

public class AnywhereCoreBlockingOld
extends java.lang.Object
implements BlockingStrategy, java.io.Serializable

See Also:
Serialized Form

Nested Class Summary
protected  class AnywhereCoreBlockingOld.BlockingViolation
           
static class AnywhereCoreBlockingOld.BlockingViolationType
           
protected static class AnywhereCoreBlockingOld.ComputeCoreVariables
           
 
Field Summary
protected  int avgCore
           
protected  int avgLabel
           
protected  boolean debuggingMode
           
protected  java.lang.Object[] m_auxiliaryTuple
           
protected  ExtensionTable.Retrieval m_binaryTableAllBound
           
protected  ExtensionTable.Retrieval m_binaryTableOneBound
           
protected  java.util.Map<AnywhereCoreBlockingOld.BlockingViolationType,java.lang.Integer> m_causesCount
           
protected  org.semanticweb.HermiT.blocking.old.CoreBlockersCacheOld m_currentBlockersCache
           
protected  DirectBlockingChecker m_directBlockingChecker
           
protected  ExtensionManager m_extensionManager
           
protected  Node m_firstChangedNode
           
protected  boolean m_hasInverses
           
protected  boolean m_immediatelyValidateBlocks
           
protected  Node m_lastValidatedUnchangedNode
           
protected  java.util.Map<java.util.Set<AtomicConcept>,java.util.Set<java.util.Set<Concept>>> m_nAryValidBlockConditions
           
protected  Tableau m_tableau
           
protected  ExtensionTable.Retrieval m_ternaryTableSearchAllBound
           
protected  ExtensionTable.Retrieval m_ternaryTableSearchOneBound
           
protected  ExtensionTable.Retrieval m_ternaryTableSearchOneTwoBound
           
protected  ExtensionTable.Retrieval m_ternaryTableSearchTwoBound
           
protected  ExtensionTable.Retrieval m_ternaryTableSearchZeroOneBound
           
protected  ExtensionTable.Retrieval m_ternaryTableSearchZeroTwoBound
           
protected  java.util.Map<AtomicConcept,java.util.Set<java.util.Set<Concept>>> m_unaryValidBlockConditions
           
protected  java.util.Map<java.lang.String,java.lang.Integer> m_violationCount
           
protected  int maxCore
           
protected  int maxLabel
           
protected  int maxNodes
           
protected  int numBlockingComputed
           
protected  int numDirectlyBlocked
           
protected  int numIndirectlyBlocked
           
protected  boolean printingOn
           
protected  int run
           
protected  long sumNodes
           
 
Constructor Summary
AnywhereCoreBlockingOld(DirectBlockingChecker directBlockingChecker, java.util.Map<AtomicConcept,java.util.Set<java.util.Set<Concept>>> unaryValidBlockConditions, java.util.Map<java.util.Set<AtomicConcept>,java.util.Set<java.util.Set<Concept>>> nAryValidBlockConditions, boolean hasInverses)
           
 
Method Summary
protected  void addViolation(AnywhereCoreBlockingOld.BlockingViolation violation)
           
 void assertionAdded(AtomicRole atomicRole, Node nodeFrom, Node nodeTo, boolean isCore)
           
 void assertionAdded(Concept concept, Node node, boolean isCore)
           
 void assertionCoreSet(AtomicRole atomicRole, Node nodeFrom, Node nodeTo)
           
 void assertionCoreSet(Concept concept, Node node)
           
 void assertionRemoved(AtomicRole atomicRole, Node nodeFrom, Node nodeTo, boolean isCore)
           
 void assertionRemoved(Concept concept, Node node, boolean isCore)
           
 void clear()
           
 void computeBlocking(boolean finalChance)
           
 void computePreBlocking()
           
 void dlClauseBodyCompiled(java.util.List<DLClauseEvaluator.Worker> workers, DLClause dlClause, java.util.List<Variable> variables, java.lang.Object[] valuesBuffer, boolean[] coreVariables)
           
 void doSanityCheck()
           
protected  java.util.Map<java.util.Set<Concept>,java.util.Map<Concept,AnywhereCoreBlockingOld.BlockingViolationType>> getBlockedParentViolations(java.util.Set<java.util.Set<Concept>> conclusions, Node blocker, Node blocked)
           
protected  java.util.Map<java.util.Set<Concept>,java.util.Map<Concept,AnywhereCoreBlockingOld.BlockingViolationType>> getBlockerViolations(java.util.Set<java.util.Set<Concept>> conclusions, Node blocker, Node blocked)
           
protected  java.util.Set<Role> getEdgeLabel(Node from, Node to)
           
protected  java.util.Set<AtomicConcept> getLabel(Node node)
           
protected  Node getValidBlocker(Node blocked)
           
protected  boolean hasAtLeastNSuccessors(Node blocker, int n, Role r, LiteralConcept filler)
           
 void initialize(Tableau tableau)
           
 boolean isExact()
           
protected  boolean isInABox(LiteralConcept c, Node node)
           
protected  boolean isInABox(Role r, Node first, Node second)
           
 boolean isPermanentAssertion(Concept concept, Node node)
           
 void modelFound()
           
 void nodeDestroyed(Node node)
           
 void nodeInitialized(Node node)
           
 void nodeStatusChanged(Node node)
           
protected  void printHeader()
           
protected  void printStatistics(boolean intermediate)
           
protected  java.lang.String sd(double d)
           
protected  void updateNodeChange(Node node)
           
protected  void updateSmallestNodeToValidate(Node node)
           
 void validateBlocks()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_tableau

protected Tableau m_tableau

m_directBlockingChecker

protected final DirectBlockingChecker m_directBlockingChecker

m_currentBlockersCache

protected final org.semanticweb.HermiT.blocking.old.CoreBlockersCacheOld m_currentBlockersCache

m_auxiliaryTuple

protected final java.lang.Object[] m_auxiliaryTuple

m_hasInverses

protected final boolean m_hasInverses

m_extensionManager

protected ExtensionManager m_extensionManager

m_firstChangedNode

protected Node m_firstChangedNode

m_unaryValidBlockConditions

protected final java.util.Map<AtomicConcept,java.util.Set<java.util.Set<Concept>>> m_unaryValidBlockConditions

m_nAryValidBlockConditions

protected final java.util.Map<java.util.Set<AtomicConcept>,java.util.Set<java.util.Set<Concept>>> m_nAryValidBlockConditions

m_ternaryTableSearchAllBound

protected ExtensionTable.Retrieval m_ternaryTableSearchAllBound

m_ternaryTableSearchZeroOneBound

protected ExtensionTable.Retrieval m_ternaryTableSearchZeroOneBound

m_ternaryTableSearchZeroTwoBound

protected ExtensionTable.Retrieval m_ternaryTableSearchZeroTwoBound

m_ternaryTableSearchOneTwoBound

protected ExtensionTable.Retrieval m_ternaryTableSearchOneTwoBound

m_binaryTableAllBound

protected ExtensionTable.Retrieval m_binaryTableAllBound

m_binaryTableOneBound

protected ExtensionTable.Retrieval m_binaryTableOneBound

m_ternaryTableSearchOneBound

protected ExtensionTable.Retrieval m_ternaryTableSearchOneBound

m_ternaryTableSearchTwoBound

protected ExtensionTable.Retrieval m_ternaryTableSearchTwoBound

m_immediatelyValidateBlocks

protected boolean m_immediatelyValidateBlocks

m_lastValidatedUnchangedNode

protected Node m_lastValidatedUnchangedNode

printingOn

protected final boolean printingOn
See Also:
Constant Field Values

numBlockingComputed

protected int numBlockingComputed

maxCore

protected int maxCore

maxLabel

protected int maxLabel

avgCore

protected int avgCore

avgLabel

protected int avgLabel

maxNodes

protected int maxNodes

sumNodes

protected long sumNodes

run

protected int run

numDirectlyBlocked

protected int numDirectlyBlocked

numIndirectlyBlocked

protected int numIndirectlyBlocked

debuggingMode

protected final boolean debuggingMode
See Also:
Constant Field Values

m_violationCount

protected java.util.Map<java.lang.String,java.lang.Integer> m_violationCount

m_causesCount

protected java.util.Map<AnywhereCoreBlockingOld.BlockingViolationType,java.lang.Integer> m_causesCount
Constructor Detail

AnywhereCoreBlockingOld

public AnywhereCoreBlockingOld(DirectBlockingChecker directBlockingChecker,
                               java.util.Map<AtomicConcept,java.util.Set<java.util.Set<Concept>>> unaryValidBlockConditions,
                               java.util.Map<java.util.Set<AtomicConcept>,java.util.Set<java.util.Set<Concept>>> nAryValidBlockConditions,
                               boolean hasInverses)
Method Detail

initialize

public void initialize(Tableau tableau)
Specified by:
initialize in interface BlockingStrategy

clear

public void clear()
Specified by:
clear in interface BlockingStrategy

computeBlocking

public void computeBlocking(boolean finalChance)
Specified by:
computeBlocking in interface BlockingStrategy

computePreBlocking

public void computePreBlocking()

validateBlocks

public void validateBlocks()

getValidBlocker

protected Node getValidBlocker(Node blocked)

addViolation

protected void addViolation(AnywhereCoreBlockingOld.BlockingViolation violation)

getBlockedParentViolations

protected java.util.Map<java.util.Set<Concept>,java.util.Map<Concept,AnywhereCoreBlockingOld.BlockingViolationType>> getBlockedParentViolations(java.util.Set<java.util.Set<Concept>> conclusions,
                                                                                                                                                Node blocker,
                                                                                                                                                Node blocked)

getBlockerViolations

protected java.util.Map<java.util.Set<Concept>,java.util.Map<Concept,AnywhereCoreBlockingOld.BlockingViolationType>> getBlockerViolations(java.util.Set<java.util.Set<Concept>> conclusions,
                                                                                                                                          Node blocker,
                                                                                                                                          Node blocked)

hasAtLeastNSuccessors

protected boolean hasAtLeastNSuccessors(Node blocker,
                                        int n,
                                        Role r,
                                        LiteralConcept filler)

isInABox

protected boolean isInABox(Role r,
                           Node first,
                           Node second)

isInABox

protected boolean isInABox(LiteralConcept c,
                           Node node)

getLabel

protected java.util.Set<AtomicConcept> getLabel(Node node)

getEdgeLabel

protected java.util.Set<Role> getEdgeLabel(Node from,
                                           Node to)

isPermanentAssertion

public boolean isPermanentAssertion(Concept concept,
                                    Node node)
Specified by:
isPermanentAssertion in interface BlockingStrategy

assertionAdded

public void assertionAdded(Concept concept,
                           Node node,
                           boolean isCore)
Specified by:
assertionAdded in interface BlockingStrategy

assertionCoreSet

public void assertionCoreSet(Concept concept,
                             Node node)
Specified by:
assertionCoreSet in interface BlockingStrategy

assertionRemoved

public void assertionRemoved(Concept concept,
                             Node node,
                             boolean isCore)
Specified by:
assertionRemoved in interface BlockingStrategy

assertionAdded

public void assertionAdded(AtomicRole atomicRole,
                           Node nodeFrom,
                           Node nodeTo,
                           boolean isCore)
Specified by:
assertionAdded in interface BlockingStrategy

assertionCoreSet

public void assertionCoreSet(AtomicRole atomicRole,
                             Node nodeFrom,
                             Node nodeTo)
Specified by:
assertionCoreSet in interface BlockingStrategy

assertionRemoved

public void assertionRemoved(AtomicRole atomicRole,
                             Node nodeFrom,
                             Node nodeTo,
                             boolean isCore)
Specified by:
assertionRemoved in interface BlockingStrategy

nodeStatusChanged

public void nodeStatusChanged(Node node)
Specified by:
nodeStatusChanged in interface BlockingStrategy

updateNodeChange

protected final void updateNodeChange(Node node)

updateSmallestNodeToValidate

protected final void updateSmallestNodeToValidate(Node node)

nodeInitialized

public void nodeInitialized(Node node)
Specified by:
nodeInitialized in interface BlockingStrategy

nodeDestroyed

public void nodeDestroyed(Node node)
Specified by:
nodeDestroyed in interface BlockingStrategy

modelFound

public void modelFound()
Specified by:
modelFound in interface BlockingStrategy

printStatistics

protected void printStatistics(boolean intermediate)

printHeader

protected void printHeader()

sd

protected java.lang.String sd(double d)

isExact

public boolean isExact()
Specified by:
isExact in interface BlockingStrategy

dlClauseBodyCompiled

public void dlClauseBodyCompiled(java.util.List<DLClauseEvaluator.Worker> workers,
                                 DLClause dlClause,
                                 java.util.List<Variable> variables,
                                 java.lang.Object[] valuesBuffer,
                                 boolean[] coreVariables)
Specified by:
dlClauseBodyCompiled in interface BlockingStrategy

doSanityCheck

public void doSanityCheck()