Class EmptyTreeGenerator<U>
java.lang.Object
es.uam.eps.ir.relison.graph.generator.EmptyTreeGenerator<U>
- Type Parameters:
U
- Type of the users
- All Implemented Interfaces:
GraphGenerator<U>
public class EmptyTreeGenerator<U> extends java.lang.Object implements GraphGenerator<U>
Empty tree generator.
-
Field Summary
Fields Modifier and Type Field Description private boolean
configured
Indicates if the graph generator has been configured.private boolean
weighted
Indicates if the tree has weights. -
Constructor Summary
Constructors Constructor Description EmptyTreeGenerator()
-
Method Summary
-
Field Details
-
configured
private boolean configuredIndicates if the graph generator has been configured. -
weighted
private boolean weightedIndicates if the tree has weights.
-
-
Constructor Details
-
EmptyTreeGenerator
public EmptyTreeGenerator()
-
-
Method Details
-
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.
-
configure
public void configure(boolean weighted)Configures the tree generator- Parameters:
weighted
- if the tree is going to be weighted.
-
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.
-