OperationGenerator

fun interface OperationGenerator<S>

Strategy for generating an operation against a model state, producing the next state.

Functions

Link copied to clipboard
abstract fun applyRandomOp(state: S, replicaIndex: Int, random: Random): S

Pick and apply an op against state using random for choices. Returns the new state (post-mutation).