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 booleanconfiguredIndicates if the graph has been generatedprivate Graph<U>graphGraph 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: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.
-