checkBehaviorAllowed

protected open fun checkBehaviorAllowed()(source)

Called by cyclicBehavior and behavior before a behavior is stored. A subclass that cannot have a behavior in some state (an agent resource with a statechart) throws here.