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 boolean
configured
Indicates if the tree has been configuredprivate Tree<U>
tree
Tree 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:GraphGenerator
Configures the generator.- Specified by:
configure
in interfaceGraphGenerator<U>
- Parameters:
configuration
- An array containing the configuration parameters.
-
generate
Description copied from interface:GraphGenerator
Generates a graph.- Specified by:
generate
in interfaceGraphGenerator<U>
- Returns:
- the generated graph.
- Throws:
GeneratorNotConfiguredException
- The generator is not configured.GeneratorBadConfiguredException
- The generator parameters are incorretct.
-