public abstract class AbstractConceptCache extends Object implements ConceptCache
Title:
Description:
Copyright: Copyright (c) 2007
Company: Clark & Parsia, LLC.
| Constructor and Description |
|---|
AbstractConceptCache(int maxSize)
Creates an empty cache with at most
maxSize elements which
are neither named or negations of names. |
| Modifier and Type | Method and Description |
|---|---|
Bool |
checkNominalEdges(KnowledgeBase kb,
CachedNode pNode,
CachedNode cNode) |
int |
getMaxSize()
Get the maximum number of non-primitive concepts allowed in the cache
|
Bool |
getSat(aterm.ATermAppl c)
Get the satisfiability status of a concept as a three-value boolean.
|
protected boolean |
isFull() |
Bool |
isMergable(KnowledgeBase kb,
CachedNode root1,
CachedNode root2) |
boolean |
putSat(aterm.ATermAppl c,
boolean isSatisfiable)
Put an incomplete
|
void |
setMaxSize(int maxSize)
Set the maximum number of non-primitive concepts allowed in the cache
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSafetyclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic static final Logger log
public AbstractConceptCache(int maxSize)
maxSize elements which
are neither named or negations of names.maxSize - protected boolean isFull()
public Bool getSat(aterm.ATermAppl c)
ConceptCachegetSat in interface ConceptCachepublic boolean putSat(aterm.ATermAppl c,
boolean isSatisfiable)
ConceptCacheputSat in interface ConceptCachepublic int getMaxSize()
ConceptCachegetMaxSize in interface ConceptCachepublic void setMaxSize(int maxSize)
ConceptCachesetMaxSize in interface ConceptCachepublic Bool isMergable(KnowledgeBase kb, CachedNode root1, CachedNode root2)
isMergable in interface ConceptCachepublic Bool checkNominalEdges(KnowledgeBase kb, CachedNode pNode, CachedNode cNode)
checkNominalEdges in interface ConceptCacheCopyright © 2019. All rights reserved.