public class GeneratorMain extends Object
UnableToComplyException
is
thrown when the maximum number of retries is exceeded.
On the other hand, the model might not be exactly as specified. When the
generator reports an "Density correction factor estimation" that differs from
1.0 this is an indication that the result is not exact.
On the third hand, rejecting points introduces effects where one generator
can influence others, so random generator results will not be stable with
respect to the addition of new dimensions and similar if there are any
rejects involved. So this generator is not entirely optimal for generating
data sets for scalability tests on the number of dimensions, although if
clusters overlap little enough (so that no rejects happen) the results should
be as expected.Modifier and Type | Field and Description |
---|---|
private LinkedList<GeneratorInterface> |
generators
List of clusters to generate
|
private boolean |
testAgainstModel
Controls whether points are tested against the model during generation
|
Constructor and Description |
---|
GeneratorMain() |
Modifier and Type | Method and Description |
---|---|
void |
addCluster(GeneratorInterface c)
Add a cluster to the cluster list.
|
void |
generate()
Main loop to generate data set.
|
MultipleObjectsBundle |
getBundle()
Get the objects bundle
|
List<GeneratorInterface> |
getGenerators()
Access the generators.
|
boolean |
isTestAgainstModel()
Return value of the
testAgainstModel flag |
void |
setTestAgainstModel(boolean testAgainstModel)
Set the value of the
testAgainstModel flag |
private LinkedList<GeneratorInterface> generators
private boolean testAgainstModel
public void addCluster(GeneratorInterface c)
c
- cluster to addpublic void generate() throws UnableToComplyException
UnableToComplyException
- when model not satisfiable or no clusters
specified.public boolean isTestAgainstModel()
testAgainstModel
flagpublic void setTestAgainstModel(boolean testAgainstModel)
testAgainstModel
flagtestAgainstModel
- New valuepublic List<GeneratorInterface> getGenerators()
public MultipleObjectsBundle getBundle()