org.semanticweb.HermiT.blocking.old
Class AnywhereValidatedBlocking

java.lang.Object
  extended by org.semanticweb.HermiT.blocking.old.AnywhereValidatedBlocking
All Implemented Interfaces:
BlockingStrategy

public class AnywhereValidatedBlocking
extends java.lang.Object
implements BlockingStrategy


Nested Class Summary
static class AnywhereValidatedBlocking.BlockingViolation
           
static class AnywhereValidatedBlocking.BlockingViolationType
           
 
Field Summary
protected  boolean debuggingMode
           
protected  java.lang.Object[] m_auxiliaryTuple
           
protected  BlockingSignatureCache m_blockingSignatureCache
           
protected  java.util.Map<AnywhereValidatedBlocking.BlockingViolationType,java.lang.Integer> m_causesCount
           
protected  org.semanticweb.HermiT.blocking.old.ValidatedBlockersCache 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_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 numDirectlyBlocked
           
protected  int numIndirectlyBlocked
           
 
Constructor Summary
AnywhereValidatedBlocking(DirectBlockingChecker directBlockingChecker, BlockingSignatureCache blockingSignatureCache, 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(AnywhereValidatedBlocking.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)
           
protected  java.util.Map<java.util.Set<Concept>,java.util.Map<Concept,AnywhereValidatedBlocking.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,AnywhereValidatedBlocking.BlockingViolationType>> getBlockerViolations(java.util.Set<java.util.Set<Concept>> conclusions, Node blocker, Node blocked)
           
protected  Node getValidBlocker(Node blocked)
           
protected  boolean hasAtLeastNSuccessors(Node blocker, int n, Role r, LiteralConcept filler)
           
 void initialize(Tableau tableau)
           
 boolean isExact()
           
protected  boolean isInLabel(LiteralConcept c, Node node)
           
protected  boolean isInLabelFromNodeToParent(Role r, Node node)
           
protected  boolean isInLabelFromParentToNode(Role r, Node node)
           
 boolean isPermanentAssertion(Concept concept, Node node)
           
 void modelFound()
           
 void nodeDestroyed(Node node)
           
 void nodeInitialized(Node node)
           
 void nodeStatusChanged(Node node)
           
protected  void updateNodeChange(Node node)
           
 void validateBlocks()
           
protected  void validationInfoChanged(Node node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_directBlockingChecker

protected final DirectBlockingChecker m_directBlockingChecker

m_currentBlockersCache

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

m_blockingSignatureCache

protected final BlockingSignatureCache m_blockingSignatureCache

m_tableau

protected Tableau m_tableau

m_firstChangedNode

protected Node m_firstChangedNode

m_lastValidatedUnchangedNode

protected Node m_lastValidatedUnchangedNode

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_extensionManager

protected ExtensionManager m_extensionManager

m_ternaryTableSearchZeroOneBound

protected ExtensionTable.Retrieval m_ternaryTableSearchZeroOneBound

m_ternaryTableSearchZeroTwoBound

protected ExtensionTable.Retrieval m_ternaryTableSearchZeroTwoBound

m_auxiliaryTuple

protected final java.lang.Object[] m_auxiliaryTuple

m_hasInverses

protected final boolean m_hasInverses

m_immediatelyValidateBlocks

protected boolean m_immediatelyValidateBlocks

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<AnywhereValidatedBlocking.BlockingViolationType,java.lang.Integer> m_causesCount
Constructor Detail

AnywhereValidatedBlocking

public AnywhereValidatedBlocking(DirectBlockingChecker directBlockingChecker,
                                 BlockingSignatureCache blockingSignatureCache,
                                 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)

getBlockedParentViolations

protected java.util.Map<java.util.Set<Concept>,java.util.Map<Concept,AnywhereValidatedBlocking.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,AnywhereValidatedBlocking.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)

isInLabelFromParentToNode

protected boolean isInLabelFromParentToNode(Role r,
                                            Node node)

isInLabelFromNodeToParent

protected boolean isInLabelFromNodeToParent(Role r,
                                            Node node)

isInLabel

protected boolean isInLabel(LiteralConcept c,
                            Node node)

isPermanentAssertion

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

validationInfoChanged

protected void validationInfoChanged(Node node)

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)

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

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

addViolation

protected void addViolation(AnywhereValidatedBlocking.BlockingViolation violation)