@PortedFrom(file="dlDag.h", name="DLDag") public class DLDag extends Object
| Constructor and Description |
|---|
DLDag(JFactReasonerConfiguration Options) |
| Modifier and Type | Method and Description |
|---|---|
int |
add(DLVertex v) |
void |
determineSorts(RoleMaster ORM,
RoleMaster DRM)
build the sort system for given TBox
|
int |
directAdd(DLVertex v)
add vertex to the end of DAG and calculate it's statistic if necessary
|
int |
directAddAndCache(DLVertex v)
add vertex to the end of DAG and calculate it's statistic if necessary;
put it into cache
|
void |
gatherStatistic() |
DLVertex |
get(int i)
access by index
|
ModelCacheInterface |
getCache(int p)
get cache for given BiPointer (may return null if no cache defined)
|
boolean |
haveSameSort(int p,
int q)
check if two BPs are of the same sort
|
int |
index(NamedEntry c) |
boolean |
isLast(int p)
check if given index points to the last DAG entry
|
boolean |
less(int p1,
int p2) |
int |
maxSize()
get approximation of the size after query is added
|
void |
merge(MergableLabel ml,
int p)
merge two given DAG entries
|
void |
printDAGUsage(LogAdapter o) |
void |
printStat(LogAdapter o)
print DAG size and number of cache hits, together with DAG usage
|
void |
removeQuery() |
void |
replaceVertex(int i,
DLVertex v,
NamedEntry C)
replace existing vertex at index I with a vertex V
|
void |
setCache(int p,
ModelCacheInterface cache)
set cache for given BiPointer; @return given cache
|
void |
setExpressionCache(boolean val)
whether to use cache for nodes
|
void |
setFinalSize()
set the DAG size
|
void |
setOrderDefaults(String defSat,
String defSub) |
void |
setOrderOptions(String opt) |
void |
setSatOrder()
use SAT options to OR ordering;
|
void |
setSubOrder()
use SUB options to OR ordering
|
int |
size()
get size of DAG
|
String |
toString() |
void |
updateIndex(DagTag tag,
int value)
update index corresponding to DLVertex's tag
|
void |
updateSorts(int a,
Role R,
int b)
update sorts for :R construction
|
public DLDag(JFactReasonerConfiguration Options)
@PortedFrom(file="dlDag.h", name="replaceVertex") public void replaceVertex(int i, DLVertex v, NamedEntry C)
@PortedFrom(file="dlDag.h", name="index") public int index(NamedEntry c)
@PortedFrom(file="dlDag.h", name="updateIndex") public void updateIndex(DagTag tag, int value)
@PortedFrom(file="dlDag.h", name="directAdd") public int directAdd(DLVertex v)
@PortedFrom(file="dlDag.h", name="directAddAndCache") public int directAddAndCache(DLVertex v)
@PortedFrom(file="dlDag.h", name="isLast") public boolean isLast(int p)
@PortedFrom(file="dlDag.h", name="setExpressionCache") public void setExpressionCache(boolean val)
@PortedFrom(file="dlDag.h", name="get") public DLVertex get(int i)
@PortedFrom(file="dlDag.h", name="size") public int size()
@PortedFrom(file="dlDag.h", name="maxSize") public int maxSize()
@PortedFrom(file="dlDag.h", name="setSubOrder") public void setSubOrder()
@PortedFrom(file="dlDag.h", name="setSatOrder") public void setSatOrder()
@PortedFrom(file="dlDag.h", name="getCache") public ModelCacheInterface getCache(int p)
@PortedFrom(file="dlDag.h", name="setCache") public void setCache(int p, ModelCacheInterface cache)
@PortedFrom(file="dlDag.h", name="merge") public void merge(MergableLabel ml, int p)
@PortedFrom(file="dlDag.h", name="haveSameSort") public boolean haveSameSort(int p, int q)
@PortedFrom(file="dlDag.h", name="PrintStat") public void printStat(LogAdapter o)
@PortedFrom(file="dlDag.h", name="add") public int add(DLVertex v)
@PortedFrom(file="dlDag.h", name="setFinalSize") public void setFinalSize()
@PortedFrom(file="dlDag.h", name="removeQuery") public void removeQuery()
@PortedFrom(file="dlDag.h", name="setOrderDefaults") public void setOrderDefaults(String defSat, String defSub)
@PortedFrom(file="dlDag.h", name="setOrderOptions") public void setOrderOptions(String opt)
@PortedFrom(file="dlDag.h", name="gatherStatistic") public void gatherStatistic()
@PortedFrom(file="dlDag.h", name="less") public boolean less(int p1, int p2)
@PortedFrom(file="dlDag.h", name="PrintDAGUsage") public void printDAGUsage(LogAdapter o)
@PortedFrom(file="dlDag.h", name="determineSorts") public void determineSorts(RoleMaster ORM, RoleMaster DRM)
@PortedFrom(file="dlDag.h", name="updateSorts") public void updateSorts(int a, Role R, int b)
Copyright © 2013 The University of Manchester. All Rights Reserved.