|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
de.dfki.mycbr.core.similarity.Taxonomy
public class Taxonomy
Represents the data structure used for taxonomy similarity functions. Each symbol known for a given SymbolDescription represents one node in the tree. The SymbolDescription is the root. We associate to each node a similarity which tells how similar the direct children of that symbol are. By default all of the symbols are direct children of the root. The default similarity for the root node is 0.00. Leaves have similarity 1.00 by default
| Method Summary | |
|---|---|
java.util.List<TaxonomyNode> |
getChildren(TaxonomyNode node)
Returns the children of the given node. |
java.util.List<TaxonomyNode> |
getLeaves()
|
TaxonomyNode |
getParent(TaxonomyNode currentNode)
Returns the parent node of the given node. |
java.util.HashMap<TaxonomyNode,TaxonomyNode> |
getParentMap()
|
Similarity |
getSimilarity(TaxonomyNode obj)
Returns the Similarity object that corresponds to obj. |
java.util.HashMap<TaxonomyNode,Similarity> |
getSimilarityMap()
|
TaxonomyNode |
getTopSymbol()
Gets the top symbol of this taxonomy |
void |
update(java.util.Observable o,
java.lang.Object arg)
|
| Methods inherited from class java.util.Observable |
|---|
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Similarity getSimilarity(TaxonomyNode obj)
obj - the object for which the similarity is returned
public TaxonomyNode getTopSymbol()
public TaxonomyNode getParent(TaxonomyNode currentNode)
currentNode - the node whose parent should be returned
public java.util.List<TaxonomyNode> getChildren(TaxonomyNode node)
node - the node whose children should be returned
public java.util.HashMap<TaxonomyNode,Similarity> getSimilarityMap()
public java.util.HashMap<TaxonomyNode,TaxonomyNode> getParentMap()
public java.util.List<TaxonomyNode> getLeaves()
public void update(java.util.Observable o,
java.lang.Object arg)
update in interface java.util.Observer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||