org.graffiti.plugins.algorithms.generators
Class CompletePentaTreeGraphGenerator

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

public class CompletePentaTreeGraphGenerator
extends AbstractGenerator

This generator creates a graph with n nodes. The nodes and edges build a complete tree of degree 5.


Field Summary
 
Fields inherited from class org.graffiti.plugins.algorithms.generators.AbstractGenerator
DYNAMIC_CIRCLE, RANDOM, STATIC_CIRCLE
 
Constructor Summary
CompletePentaTreeGraphGenerator(Graph graph, int numberOfNodes, boolean directed)
          Constructs a new instance.
 
Method Summary
 void execute()
          Executes the whole algorithm.
 String getName()
          Returns the name (id) of this Parametrizable.
 
Methods inherited from class org.graffiti.plugins.algorithms.generators.AbstractGenerator
getAlgorithmParameters, reset
 
Methods inherited from class org.graffiti.plugin.algorithm.AbstractAlgorithm
attach, check, 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
 

Constructor Detail

CompletePentaTreeGraphGenerator

public CompletePentaTreeGraphGenerator(Graph graph,
                                       int numberOfNodes,
                                       boolean directed)
Constructs a new instance.

Method Detail

getName

public String getName()
Description copied from interface: org.graffiti.plugin.Parametrizable
Returns the name (id) of this Parametrizable.

Returns:
DOCUMENT ME!
See Also:
Parametrizable.getName()

execute

public void execute()
Description copied from interface: org.graffiti.plugin.algorithm.Algorithm
Executes the whole algorithm.

See Also:
Algorithm.execute()


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