Package openllet.core.tableau.branch
Class Branch
- java.lang.Object
-
- openllet.core.tableau.branch.Branch
-
- All Implemented Interfaces:
java.lang.Comparable<Branch>
- Direct Known Subclasses:
DisjunctionBranch,IndividualBranch,RuleBranch
public abstract class Branch extends java.lang.Object implements java.lang.Comparable<Branch>
Copyright: Copyright (c) 2009
Company: Clark & Parsia, LLC.
- Author:
- Evren Sirin
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.logging.Logger_logger
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intcompareTo(Branch that)abstract BranchcopyTo(ABox abox)intgetAnonCount()intgetBranchIndexInABox()DependencySetgetCombinedClash()abstract NodegetNode()intgetNodeCount()DependencySetgetTermDepends()intgetTryCount()intgetTryNext()voidsetLastClash(DependencySet ds)voidsetNodeCount(int nodeCount)voidsetStrategy(CompletionStrategy strategy)voidsetTermDepends(DependencySet termDepends)voidsetTryCount(int tryCount)voidsetTryNext(int tryNext)abstract voidshiftTryNext(int branchIndex)Added for to re-open closed branches.java.lang.StringtoString()booleantryNext()
-
-
-
Method Detail
-
setLastClash
public void setLastClash(DependencySet ds)
-
getCombinedClash
public DependencySet getCombinedClash()
-
setStrategy
public void setStrategy(CompletionStrategy strategy)
-
tryNext
public boolean tryNext()
-
getNode
public abstract Node getNode()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
shiftTryNext
public abstract void shiftTryNext(int branchIndex)
Added for to re-open closed branches. This is needed for incremental reasoning through deletions- Parameters:
branchIndex- The shift _index
-
setNodeCount
public void setNodeCount(int nodeCount)
- Parameters:
nodeCount- the _nodeCount to set
-
getNodeCount
public int getNodeCount()
- Returns:
- the _nodeCount
-
getBranchIndexInABox
public int getBranchIndexInABox()
- Returns:
- the _branch
-
getAnonCount
public int getAnonCount()
- Returns:
- the _anonCount
-
setTryNext
public void setTryNext(int tryNext)
- Parameters:
tryNext- the _tryNext to set
-
getTryNext
public int getTryNext()
- Returns:
- the _tryNext
-
setTryCount
public void setTryCount(int tryCount)
- Parameters:
tryCount- the _tryCount to set
-
getTryCount
public int getTryCount()
- Returns:
- the _tryCount
-
setTermDepends
public void setTermDepends(DependencySet termDepends)
- Parameters:
termDepends- the _termDepends to set
-
getTermDepends
public DependencySet getTermDepends()
- Returns:
- the _termDepends
-
-