Class TreeCloneGenerator<U>
java.lang.Object
es.uam.eps.ir.relison.graph.generator.TreeCloneGenerator<U>
- Type Parameters:
U- Type of the users
- All Implemented Interfaces:
GraphGenerator<U>
public class TreeCloneGenerator<U> extends java.lang.Object implements GraphGenerator<U>
Class for cloning trees.
-
Field Summary
Fields Modifier and Type Field Description private booleanconfiguredIndicates if the tree has been configuredprivate Tree<U>treeTree to clone -
Constructor Summary
Constructors Constructor Description TreeCloneGenerator() -
Method Summary
-
Field Details
-
tree
Tree to clone -
configured
private boolean configuredIndicates if the tree has been configured
-
-
Constructor Details
-
TreeCloneGenerator
public TreeCloneGenerator()
-
-
Method Details
-
configure
Configure the tree generator- Parameters:
tree- the tree to clone
-
configure
public void configure(java.lang.Object... configuration)Description copied from interface:GraphGeneratorConfigures the generator.- Specified by:
configurein interfaceGraphGenerator<U>- Parameters:
configuration- An array containing the configuration parameters.
-
generate
Description copied from interface:GraphGeneratorGenerates a graph.- Specified by:
generatein interfaceGraphGenerator<U>- Returns:
- the generated graph.
- Throws:
GeneratorNotConfiguredException- The generator is not configured.GeneratorBadConfiguredException- The generator parameters are incorretct.
-