Class GraphCloneGenerator<U>
java.lang.Object
es.uam.eps.ir.relison.graph.generator.GraphCloneGenerator<U>
- Type Parameters:
U
- Type of the users
- All Implemented Interfaces:
GraphGenerator<U>
public class GraphCloneGenerator<U> extends java.lang.Object implements GraphGenerator<U>
Class for cloning graphs.
-
Field Summary
Fields Modifier and Type Field Description private boolean
configured
Indicates if the graph has been generatedprivate Graph<U>
graph
Graph to clone -
Constructor Summary
Constructors Constructor Description GraphCloneGenerator()
-
Method Summary
-
Field Details
-
graph
Graph to clone -
configured
private boolean configuredIndicates if the graph has been generated
-
-
Constructor Details
-
GraphCloneGenerator
public GraphCloneGenerator()
-
-
Method Details
-
configure
Configure the graph generator- Parameters:
graph
- the graph 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.
-