pedviz.algorithms
Class FamilySplitter

java.lang.Object
  extended by pedviz.algorithms.FamilySplitter
All Implemented Interfaces:
java.lang.Runnable, Algorithm

public class FamilySplitter
extends java.lang.Object
implements Algorithm

This algorithm splits the given Graph object in single families.

Version:
0.1
Author:
Lukas Forer

Constructor Summary
FamilySplitter(Graph graph)
          Creates the FamilySplitter algorithm with the given graph.
 
Method Summary
 void addChangeListener(javax.swing.event.ChangeListener l)
          Registers a ChangeListener.
 java.util.ArrayList<Graph> getFamilies()
          Returns the single families as a collection of Graph objects.
 java.lang.String getMessage()
          Returns a short description of the algorithm.
 int getPercentComplete()
          Returns the progress in percents from 0 to 100
 void run()
          Starts the algorithm.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FamilySplitter

public FamilySplitter(Graph graph)
Creates the FamilySplitter algorithm with the given graph.

Parameters:
graph - Graph object
Method Detail

getMessage

public java.lang.String getMessage()
Description copied from interface: Algorithm
Returns a short description of the algorithm.

Specified by:
getMessage in interface Algorithm
Returns:
a short description of the algorithm

run

public void run()
Description copied from interface: Algorithm
Starts the algorithm.

Specified by:
run in interface java.lang.Runnable
Specified by:
run in interface Algorithm

getFamilies

public java.util.ArrayList<Graph> getFamilies()
Returns the single families as a collection of Graph objects.

Returns:
single families

getPercentComplete

public int getPercentComplete()
Description copied from interface: Algorithm
Returns the progress in percents from 0 to 100

Specified by:
getPercentComplete in interface Algorithm
Returns:
the progress in percents

addChangeListener

public void addChangeListener(javax.swing.event.ChangeListener l)
Description copied from interface: Algorithm
Registers a ChangeListener. It will be notified about the progress of the algorithm.

Specified by:
addChangeListener in interface Algorithm
Parameters:
l - Change