Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.data.cluster
Interface HierarchyInterface<C>

Type Parameters:
C - Object type in hierarchy
All Known Implementing Classes:
Cluster

public interface HierarchyInterface<C>

Interface to access hierarchies.

Author:
Erich Schubert

Method Summary
<T extends Collection<C>>
T
getAncestors(T collection)
          Collect ancestors (recursive parents)
 List<C> getChildren()
          Get children list.
<T extends Collection<C>>
T
getDescendants(T collection)
          Collect descendants (recursive children)
 List<C> getParents()
          Get parents list.
 boolean isHierarchical()
          Test for hierarchical properties
 int numChildren()
          Get number of children
 int numParents()
          Get number of parents
 

Method Detail

isHierarchical

boolean isHierarchical()
Test for hierarchical properties

Returns:
hierarchical data model.

numChildren

int numChildren()
Get number of children

Returns:
number of children

getChildren

List<C> getChildren()
Get children list. Resulting list MAY be modified. Result MAY be null, if the model is not hierarchical.

Returns:
list of children

getDescendants

<T extends Collection<C>> T getDescendants(T collection)
Collect descendants (recursive children)

Type Parameters:
T - collection type
Parameters:
collection - Collection to fill
Returns:
filled collection

numParents

int numParents()
Get number of parents

Returns:
number of parents

getParents

List<C> getParents()
Get parents list. Resulting list MAY be modified. Result MAY be null, if the model is not hierarchical.

Returns:
list of parents

getAncestors

<T extends Collection<C>> T getAncestors(T collection)
Collect ancestors (recursive parents)

Type Parameters:
T - collection type
Parameters:
collection - Collection to fill.
Returns:
filled collection

Release 0.2.1 (2009-07-13_1605)