|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dllearner.utilities.datastructures.DescriptionSubsumptionTree.Node
public class DescriptionSubsumptionTree.Node
Datastructure for the tree
| Field Summary | |
|---|---|
double |
accuracy
|
SortedSet<EvaluatedDescription> |
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 Summary | |
|---|---|
DescriptionSubsumptionTree.Node(EvaluatedDescription ed)
|
|
DescriptionSubsumptionTree.Node(EvaluatedDescription ed,
boolean root)
|
|
| Method Summary | |
|---|---|
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()
|
Description |
getDesc()
|
EvaluatedDescription |
getEvalDesc()
|
List<EvaluatedDescription> |
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()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public double accuracy
public boolean root
public SortedSet<EvaluatedDescription> equivalents
public SortedSet<DescriptionSubsumptionTree.Node> subClasses
| Constructor Detail |
|---|
public DescriptionSubsumptionTree.Node(EvaluatedDescription ed,
boolean root)
public DescriptionSubsumptionTree.Node(EvaluatedDescription ed)
| Method Detail |
|---|
public void insert(DescriptionSubsumptionTree.Node node)
node - public EvaluatedDescription getEvalDesc()
public Description getDesc()
public String toString()
toString in class Objectpublic String _toString(String tab)
tab -
public List<EvaluatedDescription> getOrderedBySubsumptionAndAccuracy(boolean distinct)
public double getAccuracy()
public int compareTo(DescriptionSubsumptionTree.Node node)
compareTo in interface Comparable<DescriptionSubsumptionTree.Node>public boolean equals(DescriptionSubsumptionTree.Node node)
node -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||