@PortedFrom(file="modelCacheIan.h", name="modelCacheIan") public class ModelCacheIan extends ModelCacheInterface
| Modifier and Type | Field and Description |
|---|---|
ModelCacheState |
curState
current state of cache model; recalculates on every change
|
FastSet |
existsRoles
role names that are labels of the outgoing edges from the root node
|
FastSet |
extraDConcepts
extra det-lly concepts that are (partial) Simple Rule applications
|
FastSet |
extraNConcepts
extra non-det concepts that are (partial) Simple Rule applications
|
FastSet |
forallRoles
role names that appears in the \A restrictions in the root node
|
FastSet |
funcRoles
role names that appears in the atmost restrictions in the root node
|
int |
nC |
BitSet |
negDConcepts
named concepts that appears negatively det-lly in a root node of a cache
|
BitSet |
negNConcepts
named concepts that appears negatively non-det in a root node of a cache
|
int |
nR |
BitSet |
posDConcepts
named concepts that appears positively det-lly in a root node of a cache
|
BitSet |
posNConcepts
named concepts that appears positively non-det in a root node of a cache
|
| Constructor and Description |
|---|
ModelCacheIan(boolean flagNominals,
int nC,
int nR,
boolean simpleRules)
empty c'tor
|
ModelCacheIan(DLDag heap,
DlCompletionTree p,
boolean flagNominals,
int nC,
int nR,
boolean 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; @return state of "merged" model
|
void |
clear()
clear the cache
|
ModelCacheType |
getCacheType()
Get the tag identifying the cache type
|
ModelCacheState |
getState()
Check the model cache internal state.
|
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, updateNominalStatus@PortedFrom(file="modelCacheIan.h", name="posDConcepts") public BitSet posDConcepts
@PortedFrom(file="modelCacheIan.h", name="posNConcepts") public BitSet posNConcepts
@PortedFrom(file="modelCacheIan.h", name="negDConcepts") public BitSet negDConcepts
@PortedFrom(file="modelCacheIan.h", name="negNConcepts") public BitSet negNConcepts
@PortedFrom(file="modelCacheIan.h", name="extraDConcepts") public FastSet extraDConcepts
@PortedFrom(file="modelCacheIan.h", name="extraNConcepts") public FastSet extraNConcepts
@PortedFrom(file="modelCacheIan.h", name="existsRoles") public FastSet existsRoles
@PortedFrom(file="modelCacheIan.h", name="forallRoles") public FastSet forallRoles
@PortedFrom(file="modelCacheIan.h", name="funcRoles") public FastSet funcRoles
@PortedFrom(file="modelCacheIan.h", name="curState") public ModelCacheState curState
public int nC
public int nR
public ModelCacheIan(DLDag heap, DlCompletionTree p, boolean flagNominals, int nC, int nR, boolean simpleRules)
public ModelCacheIan(boolean flagNominals,
int nC,
int nR,
boolean simpleRules)
@PortedFrom(file="modelCacheIan.h", name="getState") public ModelCacheState getState()
ModelCacheInterfacegetState in class ModelCacheInterface@PortedFrom(file="modelCacheIan.h", name="initRolesFromArcs") public void initRolesFromArcs(DlCompletionTree 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)
@PortedFrom(file="modelCacheIan.h", name="processAutomaton") public void processAutomaton(DLVertex cur)
@PortedFrom(file="modelCacheIan.h", name="canMerge") public ModelCacheState canMerge(ModelCacheInterface p)
ModelCacheInterfacecanMerge in class ModelCacheInterface@PortedFrom(file="modelCacheIan.h", name="isMergableSingleton") public ModelCacheState isMergableSingleton(int Singleton, boolean pos)
@PortedFrom(file="modelCacheIan.h", name="isMergableIan") public ModelCacheState isMergableIan(ModelCacheIan q)
@PortedFrom(file="modelCacheIan.h", name="merge") public ModelCacheState merge(ModelCacheInterface p)
@PortedFrom(file="modelCacheIan.h", name="logCacheEntry") public void logCacheEntry(int level, LogAdapter l)
ModelCacheInterfacelogCacheEntry in class ModelCacheInterfaceCopyright © 2013 The University of Manchester. All Rights Reserved.