Class GeneratorXMLSpec


  • public class GeneratorXMLSpec
    extends elki.application.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 output
      private static elki.logging.Logging LOG
      The logger for this class.
      private java.nio.file.Path outputFile
      Output file.
      • Fields inherited from class elki.application.AbstractApplication

        REFERENCE, VERSION
    • 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()  
      void writeClusters​(java.io.BufferedWriter outStream, elki.datasource.bundle.MultipleObjectsBundle data)
      Write the resulting clusters to an output stream.
      • Methods inherited from class elki.application.AbstractApplication

        printErrorMessage, runCLIApplication, usage
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOG

        private static final elki.logging.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.
    • Constructor Detail

      • GeneratorXMLSpec

        public GeneratorXMLSpec​(java.nio.file.Path output,
                                GeneratorXMLDatabaseConnection generator)
        Constructor.
        Parameters:
        output - Output file
        generator - GeneratorXMLDatabaseConnection
    • Method Detail

      • run

        public void run()
        Specified by:
        run in class elki.application.AbstractApplication
      • writeClusters

        public void writeClusters​(java.io.BufferedWriter outStream,
                                  elki.datasource.bundle.MultipleObjectsBundle data)
                           throws java.io.IOException
        Write the resulting clusters to an output stream.
        Parameters:
        outStream - output stream
        data - 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