Replication Selecting Sink
A filtering AnimationSink that forwards events and lifecycle callbacks to delegate only during the replications named in capturedReplications.
Animating an entire multi-replication experiment is rarely wanted; a modeler typically animates one replication. This decorator restricts capture to the chosen replication number(s). During any non-selected replication isActive is false, so — by the usual if (sink.isActive) sink.emit(...) rule — no event objects are constructed and that replication costs nothing.
The delegate sees a clean lifecycle for the selected replications only: its onReplicationStart/onReplicationEnd fire just for those, so a buffering delegate flushes exactly one batch per selected replication and is never asked to flush an empty non-selected one. onExperimentEnd is always forwarded so a delegate that owns an experiment-scoped resource (e.g. an open file) can close it.
Parameters
the downstream sink that records events for selected replications
the 1-based replication numbers to capture (non-empty)
Properties
Functions
Called once after the final replication of the experiment.
Called at the end of replication replicationNumber (1-based).
Called at the start of replication replicationNumber (1-based).