是有.numMU这个属性的,我刚刚查帮助找到了9 Y2 f" c0 k W& Z
numMu , h+ O2 l: ^. V% jUsage: <mu_path>.numMu; , F, r& I4 E) L9 m
( N* `1 Z3 u- ~# F3 wThe method numMu returns the number of MUs located on the loading space of the MU designated by <mu_path>. , d# Z5 X# Y2 B* `; y, l' ]
2 r! G( q" U6 w; x
The return value is of type integer. 8 j# m+ }( R; V9 u- E 6 i8 X) o) {, @Example: .MUs.transporter:1.numMu;
对于kaly,我大概了解你的意思,请问你的ac指的是eventcontroller的当前时间吗?; V/ r( |/ A+ M( \8 s3 X8 A
是不是定义ac:=Eventcontroller.simtime;啊?" C- Z. d. b) i% x; g3 g# b- i1 A, ~
如果ac指的是eventcontroller的当前时间,, o" U& W2 h6 ~! A
那你认为的平均队长=每一个物件在buffer的逗留时间的总和/仿真的总时间。 # E, |4 b6 B3 E% k. _% Y这是和我们的生产系统仿真课的老师上课讲的平均队长的计算一样。- c4 W. f' n+ A4 i- j R
我后来查看上课的笔记,才发现的,按这种思路来算,但我是用一个tablefile来记录的。$ _; a4 V8 v( d
但如果用你的方法,建一个method,来算是方便很多。