@PortedFrom(file="dlDag.h", name="DLDag") public class DLDag extends Object implements Serializable
| Constructor and Description |
|---|
DLDag(JFactReasonerConfiguration options) |
| Modifier and Type | Method and Description |
|---|---|
int |
add(DLVertex v) |
int |
compare(int p1,
int p2) |
void |
determineSorts(RoleMaster orm,
RoleMaster drm)
build the sort system for given TBox
|
int |
directAdd(DLVertex v,
boolean knownNew)
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()
stats collection
|
DLVertex |
get(int i) |
ModelCacheInterface |
getCache(int p) |
boolean |
haveSameSort(int p,
int q) |
int |
index(NamedEntry c) |
boolean |
isLast(int p) |
int |
maxSize() |
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()
clean query
|
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;
|
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() |
String |
toString() |
void |
updateIndex(DagTag tag,
int value)
update index corresponding to DLVertex's tag
|
void |
updateSorts(int a,
Role d,
int b)
update sorts for (a,b):R construction
|
public DLDag(JFactReasonerConfiguration options)
options - Options@PortedFrom(file="dlDag.h", name="replaceVertex") public void replaceVertex(int i, DLVertex v, NamedEntry c)
i - iv - vc - C@PortedFrom(file="dlDag.h", name="index") public int index(NamedEntry c)
c - c@PortedFrom(file="dlDag.h", name="updateIndex") public void updateIndex(DagTag tag, int value)
tag - tagvalue - value@PortedFrom(file="dlDag.h", name="directAdd") public int directAdd(DLVertex v, boolean knownNew)
v - vknownNew - true if new object is known to be required@PortedFrom(file="dlDag.h", name="directAddAndCache") public int directAddAndCache(DLVertex v)
v - v@PortedFrom(file="dlDag.h", name="isLast") public boolean isLast(int p)
p - p@PortedFrom(file="dlDag.h", name="setExpressionCache") public void setExpressionCache(boolean val)
val - val@PortedFrom(file="dlDag.h", name="get") public DLVertex get(int i)
i - 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()
@Nullable @PortedFrom(file="dlDag.h", name="getCache") public ModelCacheInterface getCache(int p)
p - p@PortedFrom(file="dlDag.h", name="setCache") public void setCache(int p, ModelCacheInterface cache)
p - pcache - cache@PortedFrom(file="dlDag.h", name="merge") public void merge(MergableLabel ml, int p)
ml - mlp - p@PortedFrom(file="dlDag.h", name="haveSameSort") public boolean haveSameSort(int p, int q)
p - pq - q@PortedFrom(file="dlDag.h", name="PrintStat") public void printStat(LogAdapter o)
o - o@PortedFrom(file="dlDag.h", name="add") public int add(DLVertex v)
v - 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)
defSat - defSatdefSub - defSub@PortedFrom(file="dlDag.h", name="setOrderOptions") public void setOrderOptions(String opt)
opt - opt@PortedFrom(file="dlDag.h", name="gatherStatistic") public void gatherStatistic()
@PortedFrom(file="dlDag.h", name="less") public int compare(int p1, int p2)
p1 - p1p2 - p2@PortedFrom(file="dlDag.h", name="PrintDAGUsage") public void printDAGUsage(LogAdapter o)
o - debug dag usage@PortedFrom(file="dlDag.h", name="determineSorts") public void determineSorts(RoleMaster orm, RoleMaster drm)
orm - ORMdrm - DRM@PortedFrom(file="dlDag.h", name="updateSorts") public void updateSorts(int a, Role d, int b)
a - ad - Rb - bCopyright © 2018 The University of Manchester. All rights reserved.