Files
Obsidian/01学习/软件类/软件操作/Flexsim/Flexscript/stop使用方法.md
2026-02-04 17:04:00 +08:00

12 lines
929 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
使一个processer停止当前任何工作
使用方法Object.stop(state[将要进入的状态],id[STOP的编号],priority[STOP的优先级],stateProfile[状态记录])
stateProfile用于记录停止状态
- 告诉对象停止它正在做的任何事情,进入指定的状态(如果指定,则在状态配置文件中)并等待调用resume()。
- Stop()调用是累积的这意味着如果Stop()被调用两次或同一个对象对象将不会恢复其操作直到resume())也被调用两次。
- id值应该与稍后添加到resume()调用的id值相匹配。
- stop仅能够记住一个状态如果一个对象被状态为12的实体A请求停止之后又被状态为14的实体B请求停止它将进入状态14并忘记状态12。即使实体B在实体A之前恢复该对象该对象将保持状态14直到所有停止请求恢复。
例如Current.centerobject[1].stop(STATE_BLOCKER,1);