@PortedFrom(file="Taxonomy.h", name="Taxonomy") public class Taxonomy extends Object implements Serializable
| Constructor and Description |
|---|
Taxonomy(ClassifiableEntry pTop,
ClassifiableEntry pBottom,
JFactReasonerConfiguration c) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCurrentToSynonym(TaxonomyVertex syn) |
void |
clearLabels() |
void |
deFinalise()
unlink the bottom from the taxonomy
|
void |
finalise()
call this method after taxonomy is built
|
void |
finishCurrentNode()
insert current node either directly or as a synonym
|
TaxonomyVertex |
getBottomVertex() |
TaxonomyVertex |
getCurrent() |
TaxonomyVertex |
getFreshVertex(ClassifiableEntry e) |
JFactReasonerConfiguration |
getOptions() |
void |
getRelativesInfo(TaxonomyVertex node,
Actor actor,
boolean needCurrent,
boolean onlyDirect,
boolean upDirection)
apply ACTOR to subgraph starting from NODE as defined by flags;
|
boolean |
getRelativesInfo(TaxonomyVertex node,
SupConceptActor actor,
boolean needCurrent,
boolean onlyDirect,
boolean upDirection)
apply ACTOR to subgraph starting from NODE as defined by flags; this
version is intended to work only with SupConceptActor, which requires the
method to return as soon as the apply() method returns false
|
TaxonomyVertex |
getTopVertex() |
boolean |
isVisited(TaxonomyVertex node) |
boolean |
queryMode() |
void |
removeNode(TaxonomyVertex node)
remove node from the taxonomy; assume no references to the node
|
void |
setAllVisited(TaxonomyVertex node,
boolean direction,
Set<TaxonomyVertex> pastBoundary) |
void |
setCurrent(TaxonomyVertex cur)
set current to a given node
|
void |
setVisited(TaxonomyVertex node)
set node NODE as checked within taxonomy
|
String |
toString() |
public Taxonomy(ClassifiableEntry pTop, ClassifiableEntry pBottom, JFactReasonerConfiguration c)
pTop - pToppBottom - pBottomc - c@PortedFrom(file="Taxonomy.h", name="getCurrent") public TaxonomyVertex getCurrent()
@PortedFrom(file="Taxonomy.h", name="setCurrent") public void setCurrent(TaxonomyVertex cur)
cur - cur@PortedFrom(file="Taxonomy.h", name="getRelativesInfo") public boolean getRelativesInfo(TaxonomyVertex node, SupConceptActor actor, boolean needCurrent, boolean onlyDirect, boolean upDirection)
node - nodeactor - actorneedCurrent - needCurrentonlyDirect - onlyDirectupDirection - upDirection@PortedFrom(file="Taxonomy.h", name="getRelativesInfo") public void getRelativesInfo(TaxonomyVertex node, Actor actor, boolean needCurrent, boolean onlyDirect, boolean upDirection)
node - nodeactor - actorneedCurrent - needCurrentonlyDirect - onlyDirectupDirection - upDirection@PortedFrom(file="Taxonomy.h", name="setVisited") public void setVisited(TaxonomyVertex node)
node - nodepublic void setAllVisited(TaxonomyVertex node, boolean direction, Set<TaxonomyVertex> pastBoundary)
node - node to visitdirection - up or downpastBoundary - set of vertexes past the boundary@PortedFrom(file="Taxonomy.h", name="isVisited") public boolean isVisited(TaxonomyVertex node)
node - nodepublic JFactReasonerConfiguration getOptions()
@PortedFrom(file="Taxonomy.h", name="getTopVertex") public TaxonomyVertex getTopVertex()
@PortedFrom(file="Taxonomy.h", name="getBottomVertex") public TaxonomyVertex getBottomVertex()
@PortedFrom(file="Taxonomy.h", name="getFreshVertex") public TaxonomyVertex getFreshVertex(ClassifiableEntry e)
e - e@PortedFrom(file="Taxonomy.h", name="removeNode") public void removeNode(TaxonomyVertex node)
node - node@PortedFrom(file="Taxonomy.h", name="queryMode") public boolean queryMode()
@PortedFrom(file="Taxonomy.h", name="finalise") public void finalise()
@PortedFrom(file="Taxonomy.h", name="deFinalise") public void deFinalise()
@PortedFrom(file="Taxonomy.h", name="addCurrentToSynonym") public void addCurrentToSynonym(TaxonomyVertex syn)
syn - syn@PortedFrom(file="Taxonomy.h", name="finishCurrentNode") public void finishCurrentNode()
public void clearLabels()
Copyright © 2016 The University of Manchester. All rights reserved.