build Statechart
fun buildStatechart(name: String, block: StatechartBuilder.() -> Unit): AgentModel.Statechart(source)
Build a statechart without installing it. See Agent.buildStatechart. For a PermanentAgent, alternatives are typically selected via a control parameter between runs to compare designs without reconstructing the model.