de.fuberlin.wiwiss.semmf.taxon
Class ConceptPosition
java.lang.Object
de.fuberlin.wiwiss.semmf.taxon.ConceptPosition
public class ConceptPosition
- extends java.lang.Object
This class describes the position of a concept in the concept hierarchy.
The concept position is indicated by the level in a concept hierarchy
(the level is used to calculate the milestone of a given concept) and
by a reference to the super concept (in this way all concepts create a
taxonomy tree, allowing the matching engine to traverse along the path
to the root concept and by these means to determine the closest common
parent of two given concepts as the intersection of their paths).
Note that a particular concept (at this time it only refers to BottomConcepts)
may have more than one position in the hierarchy
e.g. to have more than one super concept.
- Version:
- 1.1
last modified 29.11.2006
- Author:
- Radoslaw Oldakowski
Field Summary |
private int |
level
Taxonomy level at which a concept is located |
private SuperConcept |
superConcept
Reference to a super concpet of a concept having his position. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
level
private int level
- Taxonomy level at which a concept is located
superConcept
private SuperConcept superConcept
- Reference to a super concpet of a concept having his position.
ConceptPosition
public ConceptPosition(int level,
SuperConcept sc)
- Constructor.
- Parameters:
level
- taxonomy levelsc
- reference to a SuperConcept of a concept having this
position in the taxonomy tree.
isRoot
public boolean isRoot()
- Returns:
- true if this position is a position of a root concept.
A root concept is located at level=0 and has not SuperConcepts.
getLevel
public int getLevel()
- Returns:
- the level of this concept position
getSuperConcept
public SuperConcept getSuperConcept()
- Returns:
- the reference to a SuperConcept of this concept position