de.lmu.ifi.dbs.elki.application
Class GeneratorXMLSpec

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.application.AbstractApplication
      extended by de.lmu.ifi.dbs.elki.application.GeneratorXMLSpec
All Implemented Interfaces:
InspectionUtilFrequentlyScanned, Parameterizable

public class GeneratorXMLSpec
extends AbstractApplication

Generate a data set based on a specified model (using an XML specification)


Nested Class Summary
static class GeneratorXMLSpec.Parameterizer
          Parameterization class.
 
Field Summary
private  GeneratorXMLDatabaseConnection generator
          The original data source.
static String LINE_SEPARATOR
          Line separator for output
private static Logging logger
          The logger for this class.
private  File outputFile
          Output file.
 
Fields inherited from class de.lmu.ifi.dbs.elki.application.AbstractApplication
INFORMATION, INPUT_ID, OUTPUT_ID, STATIC_LOGGER
 
Constructor Summary
GeneratorXMLSpec(boolean verbose, File output, GeneratorXMLDatabaseConnection generator)
          Constructor.
 
Method Summary
static void main(String[] args)
          Main method to run this application.
 void run()
          Runs the wrapper with the specified arguments.
 void writeClusters(OutputStreamWriter outStream, MultipleObjectsBundle data)
          Write the resulting clusters to an output stream.
 
Methods inherited from class de.lmu.ifi.dbs.elki.application.AbstractApplication
isVerbose, printErrorMessage, runCLIApplication, usage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final Logging logger
The logger for this class.


LINE_SEPARATOR

public static final String LINE_SEPARATOR
Line separator for output


outputFile

private File outputFile
Output file.


generator

private GeneratorXMLDatabaseConnection generator
The original data source.

Constructor Detail

GeneratorXMLSpec

public GeneratorXMLSpec(boolean verbose,
                        File output,
                        GeneratorXMLDatabaseConnection generator)
Constructor.

Parameters:
verbose - Verbose flag
output - Output file
generator - GeneratorXMLDatabaseConnection
Method Detail

run

public void run()
         throws UnableToComplyException
Runs the wrapper with the specified arguments.

Specified by:
run in class AbstractApplication
Throws:
UnableToComplyException - if an error occurs during running the application

writeClusters

public void writeClusters(OutputStreamWriter outStream,
                          MultipleObjectsBundle data)
                   throws IOException
Write the resulting clusters to an output stream.

Parameters:
outStream - output stream
data - Generated data
Throws:
IOException - thrown on write errors

main

public static void main(String[] args)
Main method to run this application.

Parameters:
args - the arguments to run this application

Release 0.4.0 (2011-09-20_1324)