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 booleanconfiguredIndicates if the graph generator has been configured.private booleanweightedIndicates 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:GraphGeneratorConfigures the generator.- Specified by:
configurein 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:GraphGeneratorGenerates a graph.- Specified by:
generatein interfaceGraphGenerator<U>- Returns:
- the generated graph.
- Throws:
GeneratorNotConfiguredException- The generator is not configured.
-