|
我同意楼上对inputopen和ipopen的理解,但ipavailable是判断上游实体的端口状态,不是自身,有点区别% n7 B- Q% _: v# c) r K6 x
shiningcz 发表于 2015-10-8 14:45  ! i8 j9 F3 P/ X; Z
非常正确,我在原帖子中没有说太清楚。
+ P6 a: J8 B4 w. d P( M[size=1.1em]ipavailable [size=1.1em](obj object, num inputportnum)
" a8 _ ]0 ` j9 d" QDescription( @9 y5 x1 ?- _5 g; l% }
Returns a 1 if the upstream object through the specified object's input port is available. Particularly, it checks if the upstream object exists, if it is stopped, if its output is open, and if the connected output port is open. This function returns 0 if the upstream object isn't available.8 A6 v4 U" n7 i) j
) W8 Z$ H: k0 x, z6 i0 IExample, c' f$ [( g5 k
ipavailable(current,1) |
|