org.graffiti.plugins.algorithms.mnn
Class SweeplineAlgorithm

java.lang.Object
  extended by org.graffiti.plugin.AbstractParametrizable
      extended by org.graffiti.plugin.algorithm.AbstractAlgorithm
          extended by org.graffiti.plugins.algorithms.mnn.SweeplineAlgorithm
All Implemented Interfaces:
Algorithm, Parametrizable

public class SweeplineAlgorithm
extends AbstractAlgorithm

This class implements a Sweepline Algorithm that compacts a graph that was drawn with the algorithm of Miura, Nakano and Nishiszeki

Version:
$Revision: 5766 $ $Date: 2010-05-07 19:21:40 +0200 (Fr, 07 Mai 2010) $
Author:
Thomas Ortmeier

Field Summary
static String COMPLETE_WITHOUT_STEP_VIEW
          If user clicks complete without step view.
static String NEXT_STEP
          If user clicks the next iteration step.
 
Constructor Summary
SweeplineAlgorithm()
          Constructor
 
Method Summary
 void check()
          Checks the preconditions for the sweepline algorithm.
 void execute()
          Executes the sweepline algorithm.
 Parameter<?>[] getAlgorithmParameters()
           
 String getName()
          Returns the Name of the Algorithm
 void reset()
          Resets the algorithm
 void setAlgorithmParameters(Parameter<?>[] parameters)
           
 
Methods inherited from class org.graffiti.plugin.algorithm.AbstractAlgorithm
attach, getAnimation, supportsAnimation
 
Methods inherited from class org.graffiti.plugin.AbstractParametrizable
copyParameters, getDefaultParameters, getParameters, getUserParameters, saveUserParameters, saveUserParameters, setParameters
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.graffiti.plugin.Parametrizable
getDefaultParameters, getParameters, setParameters
 

Field Detail

NEXT_STEP

public static final String NEXT_STEP
If user clicks the next iteration step.

See Also:
Constant Field Values

COMPLETE_WITHOUT_STEP_VIEW

public static final String COMPLETE_WITHOUT_STEP_VIEW
If user clicks complete without step view. Algorithm runs without the rest steps.

See Also:
Constant Field Values
Constructor Detail

SweeplineAlgorithm

public SweeplineAlgorithm()
Constructor

Method Detail

getName

public String getName()
Returns the Name of the Algorithm

Returns:
DOCUMENT ME!

getAlgorithmParameters

public Parameter<?>[] getAlgorithmParameters()
Overrides:
getAlgorithmParameters in class AbstractParametrizable
See Also:
AbstractParametrizable.getAlgorithmParameters()

setAlgorithmParameters

public void setAlgorithmParameters(Parameter<?>[] parameters)
Overrides:
setAlgorithmParameters in class AbstractParametrizable
See Also:
(org.graffiti.plugin.parameter.Parameter[])

check

public void check()
           throws PreconditionException
Checks the preconditions for the sweepline algorithm.

Specified by:
check in interface Algorithm
Overrides:
check in class AbstractAlgorithm
Throws:
PreconditionException - if the preconditions of the current graph are not satisfied.
See Also:
Algorithm.check()

reset

public void reset()
Resets the algorithm

Specified by:
reset in interface Algorithm
Overrides:
reset in class AbstractAlgorithm
See Also:
Algorithm.reset()

execute

public void execute()
Executes the sweepline algorithm.



Generated at 2012-05-30 11:01:25 PM CEST