Package elki.application
Class GeneratorXMLSpec
- java.lang.Object
-
- elki.application.AbstractApplication
-
- elki.application.GeneratorXMLSpec
-
public class GeneratorXMLSpec extends AbstractApplication
Generate a data set based on a specified model (using an XML specification)- Since:
- 0.2
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GeneratorXMLSpec.Par
Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description private GeneratorXMLDatabaseConnection
generator
The original data source.static java.lang.String
LINE_SEPARATOR
Line separator for outputprivate static Logging
LOG
The logger for this class.private java.nio.file.Path
outputFile
Output file.-
Fields inherited from class elki.application.AbstractApplication
REFERENCE, VERSION
-
-
Constructor Summary
Constructors Constructor Description GeneratorXMLSpec(java.nio.file.Path output, GeneratorXMLDatabaseConnection generator)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
Main method to run this application.void
run()
Runs the application.void
writeClusters(java.io.BufferedWriter outStream, MultipleObjectsBundle data)
Write the resulting clusters to an output stream.-
Methods inherited from class elki.application.AbstractApplication
printErrorMessage, runCLIApplication, usage
-
-
-
-
Field Detail
-
LOG
private static final Logging LOG
The logger for this class.
-
LINE_SEPARATOR
public static final java.lang.String LINE_SEPARATOR
Line separator for output
-
outputFile
private java.nio.file.Path outputFile
Output file.
-
generator
private GeneratorXMLDatabaseConnection generator
The original data source.
-
-
Constructor Detail
-
GeneratorXMLSpec
public GeneratorXMLSpec(java.nio.file.Path output, GeneratorXMLDatabaseConnection generator)
Constructor.- Parameters:
output
- Output filegenerator
- GeneratorXMLDatabaseConnection
-
-
Method Detail
-
run
public void run()
Description copied from class:AbstractApplication
Runs the application.- Specified by:
run
in classAbstractApplication
-
writeClusters
public void writeClusters(java.io.BufferedWriter outStream, MultipleObjectsBundle data) throws java.io.IOException
Write the resulting clusters to an output stream.- Parameters:
outStream
- output streamdata
- Generated data- Throws:
java.io.IOException
- thrown on write errors
-
main
public static void main(java.lang.String[] args)
Main method to run this application.- Parameters:
args
- the arguments to run this application
-
-