de.fuberlin.wiwiss.semmf.taxon
Class ConceptPosition

java.lang.Object
  extended by 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.
 
Constructor Summary
ConceptPosition(int level, SuperConcept sc)
          Constructor.
 
Method Summary
 int getLevel()
           
 SuperConcept getSuperConcept()
           
 boolean isRoot()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.

Constructor Detail

ConceptPosition

public ConceptPosition(int level,
                       SuperConcept sc)
Constructor.

Parameters:
level - taxonomy level
sc - reference to a SuperConcept of a concept having this position in the taxonomy tree.
Method Detail

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