explain Statechart API in Japanese