设为首页收藏本站

最大的系统仿真与系统优化公益交流社区

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2278|回复: 1

函数 getitemstate 的用法

[复制链接]
发表于 2010-3-12 10:38:13 | 显示全部楼层 |阅读模式
在学习过程中,碰到函数getitemstate:if( getitemstate(theitem) == FRSTATE_INQUEUE )。查了command后:
Description:  Returns the FixedResource state of the flowitem. This will be one of 3 values:
FRSTATE_INQUEUE: The flowitem is in-process; it has not been released yet.
FRSTATE_READY: The flowitem has been release, but has not found a downstream object that is ready to receive it.
FRSTATE_MOVEREQUESTED: The flowitem has been released, and a downstream object is ready to receive it, but the item is waiting to get picked up by a transport.
For more information, refer to the FixedResource documentation.
那么,getitemstate(theitem) == FRSTATE_INQUEUE 是判断是否被释放。不明白的是:theitem什么情况是叫释放了?
新手新手,请多多关照!!!
发表于 2010-3-15 09:04:53 | 显示全部楼层
不懂,高手指教一下吧·
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|SimulWay 道于仿真   

GMT+8, 2024-5-5 09:25 , Processed in 0.011896 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表