Statechart State
A configured state within a statechart. Created by the StatechartBuilder DSL; users do not instantiate this class directly. The actual statechart runtime that consumes these is AgentModel.Statechart.
Hierarchical states: a state may be composite (contain substates) or leaf (no substates). substateNames lists the names of immediate children; initialSubstate designates which substate is entered first when this composite is entered. parent is null for top-level states and references the containing composite for substates; it is set by the StatechartBuilder at build time.