public class DescriptionSubsumptionTree.Node extends Object implements Comparable<DescriptionSubsumptionTree.Node>
Modifier and Type | Field and Description |
---|---|
double |
accuracy |
SortedSet<EvaluatedDescription<? extends Score>> |
equivalents
holds descriptions of nodes with equivalent classes
should be ordered by length
|
boolean |
root |
SortedSet<DescriptionSubsumptionTree.Node> |
subClasses
holds the nodes that are subclasses of this node.
|
Constructor and Description |
---|
Node(EvaluatedDescription ed) |
Node(EvaluatedDescription<? extends Score> ed,
boolean root) |
Modifier and Type | Method and Description |
---|---|
String |
_toString(String tab)
a simple recursive implementation of a tree to string conversion
|
int |
compareTo(DescriptionSubsumptionTree.Node node) |
boolean |
equals(DescriptionSubsumptionTree.Node node)
== is used, important, when removing nodes from subClasses SortedSet
|
double |
getAccuracy() |
org.semanticweb.owlapi.model.OWLClassExpression |
getDesc() |
EvaluatedDescription<?> |
getEvalDesc() |
List<EvaluatedDescription<? extends Score>> |
getOrderedBySubsumptionAndAccuracy(boolean distinct) |
void |
insert(DescriptionSubsumptionTree.Node node)
insert a node into the tree
only used if node is sure to be a subClass of this node
|
String |
toString() |
public double accuracy
public boolean root
public SortedSet<EvaluatedDescription<? extends Score>> equivalents
public SortedSet<DescriptionSubsumptionTree.Node> subClasses
public Node(EvaluatedDescription<? extends Score> ed, boolean root)
public Node(EvaluatedDescription ed)
public void insert(DescriptionSubsumptionTree.Node node)
node
- public EvaluatedDescription<?> getEvalDesc()
public org.semanticweb.owlapi.model.OWLClassExpression getDesc()
public String _toString(String tab)
tab
- public List<EvaluatedDescription<? extends Score>> getOrderedBySubsumptionAndAccuracy(boolean distinct)
public double getAccuracy()
public int compareTo(@Nonnull DescriptionSubsumptionTree.Node node)
compareTo
in interface Comparable<DescriptionSubsumptionTree.Node>
public boolean equals(DescriptionSubsumptionTree.Node node)
node
- DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann