OMComponentState 类用于定义影响状态图中的组件状态的方法。
这个类是在头文件 state.h 中定义的。
active 将组件状态标记为“活动”。其定义如下所示:
OMState* active;