Animation Capture
constructor(model: Model, output: JsonLinesAnimationOutput, mode: AnimationCapture.Mode = Mode.MEMORY, capturedReplications: Set<Int>? = setOf(1), captureSpec: CaptureSpec = CaptureSpec(), overlays: OverlaySpec = OverlaySpec.OFF, asyncCapacity: Int = AsyncAnimationSink.DEFAULT_CAPACITY, description: String? = null)(source)
Parameters
model
the model to capture
output
the destination writer; its header is written on construction and it is closed by close
mode
the base sink strategy; defaults to Mode.MEMORY
captured Replications
replication numbers to capture; null captures all. Defaults to replication 1 — the usual choice for an animation run.
capture Spec
selective-capture spec (elements to include/exclude, and an optional time window)
overlays
overlay-capture spec passed to the agent coordinators
async Capacity
bounded-queue capacity used in Mode.ASYNC
description
optional label written into the trace header (defaults to the model name)