@PortedFrom(file="modelCacheIan.h", name="modelCacheIan") public class ModelCacheIan extends ModelCacheInterface
| Constructor and Description |
|---|
ModelCacheIan(boolean flagNominals,
int nC,
int nR,
JFactReasonerConfiguration simpleRules) |
ModelCacheIan(DLDag heap,
DlCompletionTree p,
boolean flagNominals,
int nC,
int nR,
JFactReasonerConfiguration simpleRules)
Create cache model of given CompletionTree using given HEAP
|
| Modifier and Type | Method and Description |
|---|---|
ModelCacheState |
canMerge(ModelCacheInterface p)
check whether two caches can be merged;
|
void |
clear()
clear the cache
|
ModelCacheType |
getCacheType()
Get the tag identifying the cache type
|
ModelCacheState |
getState() |
void |
initRolesFromArcs(DlCompletionTree pCT)
init existRoles from arcs; can be used to create pseudo-cache with deps
of CT edges
|
ModelCacheState |
isMergableIan(ModelCacheIan q) |
ModelCacheState |
isMergableSingleton(int singleton,
boolean pos) |
void |
logCacheEntry(int level,
LogAdapter l)
log this cache entry (with given level)
|
ModelCacheState |
merge(ModelCacheInterface p) |
void |
processAutomaton(DLVertex cur) |
void |
processConcept(DLVertex cur,
boolean pos,
boolean det) |
boolean |
shallowCache()
get type of cache (deep or shallow)
|
hasNominalClash, isHasNominalNode, setHasNominalNode, updateNominalStatuspublic ModelCacheIan(DLDag heap, DlCompletionTree p, boolean flagNominals, int nC, int nR, JFactReasonerConfiguration simpleRules)
heap - heapp - pflagNominals - flagNominalsnC - nCnR - nRsimpleRules - simpleRulespublic ModelCacheIan(boolean flagNominals,
int nC,
int nR,
JFactReasonerConfiguration simpleRules)
flagNominals - flagNominalsnC - nCnR - nRsimpleRules - simpleRules@PortedFrom(file="modelCacheIan.h", name="getState") public ModelCacheState getState()
getState in class ModelCacheInterface@PortedFrom(file="modelCacheIan.h", name="initRolesFromArcs") public void initRolesFromArcs(DlCompletionTree pCT)
pCT - pCT@PortedFrom(file="modelCacheIan.h", name="getCacheType") public ModelCacheType getCacheType()
getCacheType in class ModelCacheInterface@PortedFrom(file="modelCacheIan.h", name="shallowCache") public boolean shallowCache()
shallowCache in class ModelCacheInterface@PortedFrom(file="modelCacheIan.h", name="clear") public void clear()
@PortedFrom(file="modelCacheIan.h", name="processConcept") public void processConcept(DLVertex cur, boolean pos, boolean det)
cur - curpos - posdet - det@PortedFrom(file="modelCacheIan.h", name="processAutomaton") public void processAutomaton(DLVertex cur)
cur - cur@PortedFrom(file="modelCacheIan.h", name="canMerge") public ModelCacheState canMerge(ModelCacheInterface p)
ModelCacheInterfacecanMerge in class ModelCacheInterfacep - p@PortedFrom(file="modelCacheIan.h", name="isMergableSingleton") public ModelCacheState isMergableSingleton(int singleton, boolean pos)
singleton - Singletonpos - pos@PortedFrom(file="modelCacheIan.h", name="isMergableIan") public ModelCacheState isMergableIan(ModelCacheIan q)
q - q@PortedFrom(file="modelCacheIan.h", name="merge") public ModelCacheState merge(ModelCacheInterface p)
p - p@PortedFrom(file="modelCacheIan.h", name="logCacheEntry") public void logCacheEntry(int level, LogAdapter l)
ModelCacheInterfacelogCacheEntry in class ModelCacheInterfacelevel - levell - lCopyright © 2016 The University of Manchester. All rights reserved.