Template

class Template(val id: String, val instances: Int, val variants: List<Map<String, String>>, val draw: Map<String, List<String>>, body: JsonObject)(source)

A hand-maintained scenario template. variants are rows of placeholder values (a seeded shuffle picks instances of them), draw placeholders are drawn independently per instance.

Constructors

Link copied to clipboard
constructor(id: String, instances: Int, variants: List<Map<String, String>>, draw: Map<String, List<String>>, body: JsonObject)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun build(index: Int, vars: Map<String, String>, salt: Long): Scenario