check Behavior Allowed
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.
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.