onBehaviorStopped

fun onBehaviorStopped(action: () -> Unit)(source)

Declares what to do after the behavior is stopped by stopBehavior, to put back what it changed, for example bringing the resource back on shift when a break was cut short. It does not suspend. It does not run when the behavior ends on its own or when a replication ends. A second call replaces the first. Declared while the model is not running.

Parameters

action

what to do after a stop