stop

fun stop()(source)

Tear down all pending triggers across every active level and deregister from the AgentModel active-statechart registry. Leaves currentStateName reporting the last leaf for post-simulation inspection. Idempotent. Safe to call while the model is running (graceful stop) or between runs.