Package dev.dokimos.core.export
Class ExperimentResultExporter
java.lang.Object
dev.dokimos.core.export.ExperimentResultExporter
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 Summary
Modifier and TypeMethodDescriptionstatic voidexportCsv(ExperimentResult result, Path path) Exports the experiment result to a CSV file.static voidexportHtml(ExperimentResult result, Path path) Exports the experiment result to an HTML file.static voidexportJson(ExperimentResult result, Path path) Exports the experiment result to a JSON file.static voidexportMarkdown(ExperimentResult result, Path path) Exports the experiment result to a Markdown file.static StringtoCsv(ExperimentResult result) Exports the experiment result to a CSV string.static StringtoHtml(ExperimentResult result) Exports the experiment result to an HTML string.static StringtoJson(ExperimentResult result) Exports the experiment result to a JSON string.static StringtoMarkdown(ExperimentResult result) Exports the experiment result to a Markdown string.
-
Method Details
-
toJson
Exports the experiment result to a JSON string.- Parameters:
result- the experiment result to export- Returns:
- JSON string representation
-
exportJson
Exports the experiment result to a JSON file.- Parameters:
result- the experiment result to exportpath- the file path to write to
-
toHtml
Exports the experiment result to an HTML string.- Parameters:
result- the experiment result to export- Returns:
- HTML string representation
-
exportHtml
Exports the experiment result to an HTML file.- Parameters:
result- the experiment result to exportpath- the file path to write to
-
toMarkdown
Exports the experiment result to a Markdown string.- Parameters:
result- the experiment result to export- Returns:
- Markdown string representation
-
exportMarkdown
Exports the experiment result to a Markdown file.- Parameters:
result- the experiment result to exportpath- the file path to write to
-
toCsv
Exports the experiment result to a CSV string.- Parameters:
result- the experiment result to export- Returns:
- CSV string representation
-
exportCsv
Exports the experiment result to a CSV file.- Parameters:
result- the experiment result to exportpath- the file path to write to
-