5 ms·
Troupe:multi-role finite state machine
- goless 11mo agoMulti-role finite state machine, used for multithreaded programs or distributed programs. The behaviors of multiple characters are orchestrated into a state machine. Imagine a theater with many characters performing a play. The behaviors of all characters are arranged as a whole in the script. When a certain message is sent, everyone will complete their performance according to the script.