statechart
Declare and install this resource's statechart in one step. May be called at most once; a second call throws. Use buildStatechart + useStatechart for the multi-variant / design-comparison case. See AgentModel.Statechart for the DSL and semantics. Throws when the resource has a behavior: a resource has a statechart or a behavior, not both.
Optional statechart governing this resource's reactive behavior. Configured via statechart and started automatically at replication initialization by this resource's own initialize() hook.