Package openllet.core.tableau.cache
Class AbstractConceptCache
- java.lang.Object
-
- openllet.core.tableau.cache.AbstractConceptCache
-
- All Implemented Interfaces:
java.util.Map<openllet.aterm.ATermAppl,CachedNode>,ConceptCache
- Direct Known Subclasses:
ConceptCacheLRU
public abstract class AbstractConceptCache extends java.lang.Object implements ConceptCache
Copyright: Copyright (c) 2007
Company: Clark & Parsia, LLC.
- Author:
- Evren Sirin
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.logging.Logger_logger
-
Constructor Summary
Constructors Constructor Description AbstractConceptCache(int maxSize)Creates an empty _cache with at most_maxSizeelements which are neither named or negations of names.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BoolcheckNominalEdges(KnowledgeBase kb, CachedNode pNode, CachedNode cNode)intgetMaxSize()BoolgetSat(openllet.aterm.ATermAppl c)BoolisMergable(KnowledgeBase kb, CachedNode root1, CachedNode root2)booleanputSat(openllet.aterm.ATermAppl c, boolean isSatisfiable)Put an incompletevoidsetMaxSize(int maxSize)Set the maximum number of non-primitive concepts allowed in the cache-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface openllet.core.tableau.cache.ConceptCache
getSafety
-
-
-
-
Method Detail
-
getSat
public Bool getSat(openllet.aterm.ATermAppl c)
- Specified by:
getSatin interfaceConceptCache- Parameters:
c- is the concept- Returns:
- the satisfiability status of a concept as a three-value boolean.
-
putSat
public boolean putSat(openllet.aterm.ATermAppl c, boolean isSatisfiable)Description copied from interface:ConceptCachePut an incomplete- Specified by:
putSatin interfaceConceptCache- Returns:
- true if put is success
-
getMaxSize
public int getMaxSize()
- Specified by:
getMaxSizein interfaceConceptCache- Returns:
- the maximum number of non-primitive concepts allowed in the _cache
-
setMaxSize
public void setMaxSize(int maxSize)
Description copied from interface:ConceptCacheSet the maximum number of non-primitive concepts allowed in the cache- Specified by:
setMaxSizein interfaceConceptCache
-
isMergable
public Bool isMergable(KnowledgeBase kb, CachedNode root1, CachedNode root2)
- Specified by:
isMergablein interfaceConceptCache- Returns:
- true if mergable
-
checkNominalEdges
public Bool checkNominalEdges(KnowledgeBase kb, CachedNode pNode, CachedNode cNode)
- Specified by:
checkNominalEdgesin interfaceConceptCache- Returns:
- true if nominal
-
-