Package io.github.ai4ci.flow
Class StateExporter
java.lang.Object
io.github.ai4ci.flow.StateExporter
- All Implemented Interfaces:
Closeable
,AutoCloseable
This manages the various files that are being exported to so and their
respective threads that the outbreak simulation doesn't have to. It has a
single method, export(outbreak, stage), that is called at the different
lifecycle
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
close()
<X extends CSVWriter.Writeable>
Outbreak<X extends CSVWriter.Writeable>
Outbreakexport
(Export.Stage stage, Outbreak outbreak) void
void
joinAll()
static StateExporter
of
(Path directory, StateExporter.ExportSelector<?>... config) static StateExporter
of
(Path directory, List<StateExporter.ExportSelector<?>> config) protected String
report()
void
-
Method Details
-
of
-
of
-
export
-
export
-
allWaiting
public boolean allWaiting() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
finalise
-
writeInputConfiguration
-
joinAll
- Throws:
InterruptedException
-
report
-