Get the root state. Returns: The root state.
(cls)
| 1041 | @classmethod |
| 1042 | @functools.lru_cache |
| 1043 | def get_root_state(cls) -> type[BaseState]: |
| 1044 | """Get the root state. |
| 1045 | |
| 1046 | Returns: |
| 1047 | The root state. |
| 1048 | """ |
| 1049 | parent_state = cls.get_parent_state() |
| 1050 | return cls if parent_state is None else parent_state.get_root_state() |
| 1051 | |
| 1052 | @classmethod |
| 1053 | def get_substates(cls) -> set[type[BaseState]]: |