设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3868|回复: 2

[求助] emplant处理时间的设置问题

  [复制链接]
发表于 2014-6-5 00:07:09 | 显示全部楼层 |阅读模式
我要怎么样操作才能让singleproc根据我设置的method语句来操作?我把singleproc中时间选项里面的处理时间改成0,然后应用,系统就会按照我设置的method中的语句的第一句话的时间来操作。我在method中设置的语句是这样的。+ q3 l) Q/ z9 W( [9 t, o8 i) R
is5 l; D; y7 U( R* k- L
        rand:real;' E( C, ?3 Y  k+ b
do% O" B6 M  i- _9 k& a
   @.serverTime:=Labelpretrial.ProcTime;
9 i- Q0 m3 U, m' B        rand:=Z_uniform(1,0,1);
( S" `* G2 K  U2 e5 |0 l1 j0 t       if rand>0.0 and rand<=0.15 then & E5 [, J' }/ H. u  c, P8 g8 w. \
                   Labelpretrial.ProcTime:=60*3;
( U- `! \! u9 f  w           elseif rand>0.15 and rand<=0.5 then # b9 s( N. \/ M0 C. C0 n! K
                   Labelpretrial.ProcTime:=60*4;7 C6 Z3 b' x+ z
           elseif rand>0.5 and rand<=0.8 then
. {2 j" D0 r0 ]5 Z8 ^& C- Q1 C$ Q                   Labelpretrial.ProcTime:=60*5;
& Q# Q5 n; e5 |& m' [5 n8 r8 D           elseif rand>0.8 and rand<=0.95 then 0 M# d& Q* D* p# y
                   Labelpretrial.ProcTime:=60*6;
; N* o1 G& ^4 Y7 y' p6 S2 O6 q1 Z           elseif rand>0.95 and rand<=1 then 2 H" w/ _( S. X9 W; `. P6 a
                   Labelpretrial.ProcTime:=60*7;) c! g; J/ J2 A8 j! V& R
         
' I- w, I, Z/ v: H8 K; k& T       end;( L) Q5 j, `0 F
end;
) i7 W. U8 Z' m8 k* ~" n0 j% [系统就会按照第一个时间3分钟来自动生成处理时间,我该怎么办?
发表于 2014-10-23 16:00:48 | 显示全部楼层
发表于 2014-10-23 16:00:56 | 显示全部楼层
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-4-17 18:58 , Processed in 0.019569 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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