org.semanticweb.HermiT.existentials
Class IndividualReuseStrategy
java.lang.Object
org.semanticweb.HermiT.existentials.StrategyBase
org.semanticweb.HermiT.existentials.IndividualReuseStrategy
- All Implemented Interfaces:
- java.io.Serializable, ExpansionStrategy
public class IndividualReuseStrategy
- extends StrategyBase
- implements java.io.Serializable
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
expander
protected final StrategyBase.Expander expander
reusedNodes
protected final java.util.Map<LiteralConcept,IndividualReuseStrategy.NodeBranchingPointPair> reusedNodes
doReuseConceptsAlways
protected final java.util.Set<LiteralConcept> doReuseConceptsAlways
dontReuseConceptsThisRun
protected final java.util.Set<LiteralConcept> dontReuseConceptsThisRun
dontReuseConceptsEver
protected final java.util.Set<LiteralConcept> dontReuseConceptsEver
reuseBacktrackingTable
protected final TupleTable reuseBacktrackingTable
auxiliaryBuffer
protected final java.lang.Object[] auxiliaryBuffer
indicesByBranchingPoint
protected int[] indicesByBranchingPoint
isDeterministic
protected final boolean isDeterministic
IndividualReuseStrategy
public IndividualReuseStrategy(BlockingStrategy strategy,
boolean isDeterministic)
initialize
public void initialize(Tableau tableau)
- Specified by:
initialize in interface ExpansionStrategy- Overrides:
initialize in class StrategyBase
clear
public void clear()
- Specified by:
clear in interface ExpansionStrategy- Overrides:
clear in class StrategyBase
expandExistentials
public boolean expandExistentials()
- Description copied from interface:
ExpansionStrategy
- The main workhorse of the interface: pick some existential in the current tableau and expand it.
- Specified by:
expandExistentials in interface ExpansionStrategy
- Returns:
- true if at least one of the extensions changed as the result of the expansion
tryParentReuse
protected boolean tryParentReuse(AtLeastAbstractRoleConcept atLeastAbstractConcept,
Node node)
expandWithModelReuse
protected boolean expandWithModelReuse(AtLeastAbstractRoleConcept atLeastAbstractConcept,
Node node)
branchingPointPushed
public void branchingPointPushed()
- Specified by:
branchingPointPushed in interface ExpansionStrategy- Overrides:
branchingPointPushed in class StrategyBase
backtrack
public void backtrack()
- Specified by:
backtrack in interface ExpansionStrategy- Overrides:
backtrack in class StrategyBase
modelFound
public void modelFound()
- Specified by:
modelFound in interface ExpansionStrategy- Overrides:
modelFound in class StrategyBase
isDeterministic
public boolean isDeterministic()
- Specified by:
isDeterministic in interface ExpansionStrategy- Overrides:
isDeterministic in class StrategyBase
getConceptForNode
public LiteralConcept getConceptForNode(Node node)
getDontReuseConceptsEver
public java.util.Set<LiteralConcept> getDontReuseConceptsEver()