CheckpointRetention

sealed interface CheckpointRetention

Behavior for retaining generated checkpoints in memory.

Checkpoints can be very large; for large models maybe only a few can fit in memory at a time.

Inheritors

Types

Link copied to clipboard
data object All : CheckpointRetention

Retain all checkpoints.

Link copied to clipboard
data class DurationFromPresent(val dur: Duration) : CheckpointRetention

Retain all checkpoints in within a range from the current simulation time.

Link copied to clipboard

Retain only the latest checkpoint. Replace it with each new checkpoint.