Class ExperimentResultExporter

java.lang.Object
dev.dokimos.core.export.ExperimentResultExporter

public final class ExperimentResultExporter extends Object
Utility class for exporting ExperimentResult to various formats.

Supported formats are: JSON, HTML, Markdown, and CSV. Each format can be exported to a file or be returned as string.

  • Method Details

    • toJson

      public static String toJson(ExperimentResult result)
      Exports the experiment result to a JSON string.
      Parameters:
      result - the experiment result to export
      Returns:
      JSON string representation
    • exportJson

      public static void exportJson(ExperimentResult result, Path path)
      Exports the experiment result to a JSON file.
      Parameters:
      result - the experiment result to export
      path - the file path to write to
    • toHtml

      public static String toHtml(ExperimentResult result)
      Exports the experiment result to an HTML string.
      Parameters:
      result - the experiment result to export
      Returns:
      HTML string representation
    • exportHtml

      public static void exportHtml(ExperimentResult result, Path path)
      Exports the experiment result to an HTML file.
      Parameters:
      result - the experiment result to export
      path - the file path to write to
    • toMarkdown

      public static String toMarkdown(ExperimentResult result)
      Exports the experiment result to a Markdown string.
      Parameters:
      result - the experiment result to export
      Returns:
      Markdown string representation
    • exportMarkdown

      public static void exportMarkdown(ExperimentResult result, Path path)
      Exports the experiment result to a Markdown file.
      Parameters:
      result - the experiment result to export
      path - the file path to write to
    • toCsv

      public static String toCsv(ExperimentResult result)
      Exports the experiment result to a CSV string.
      Parameters:
      result - the experiment result to export
      Returns:
      CSV string representation
    • exportCsv

      public static void exportCsv(ExperimentResult result, Path path)
      Exports the experiment result to a CSV file.
      Parameters:
      result - the experiment result to export
      path - the file path to write to