设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3184|回复: 2

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

  [复制链接]
发表于 2014-6-5 00:07:09 | 显示全部楼层 |阅读模式
我要怎么样操作才能让singleproc根据我设置的method语句来操作?我把singleproc中时间选项里面的处理时间改成0,然后应用,系统就会按照我设置的method中的语句的第一句话的时间来操作。我在method中设置的语句是这样的。3 N0 |7 ?+ _8 R, a
is
! B. v0 f% m+ S2 z- Y" u. x        rand:real;, k" O. B; d# ?6 y8 K* s
do
' q7 e4 ~, I) k   @.serverTime:=Labelpretrial.ProcTime;
3 v$ @" M9 u0 Y, c% p( p        rand:=Z_uniform(1,0,1);
( ]& i4 Q6 H, j! F       if rand>0.0 and rand<=0.15 then # E' y6 x; y( f4 O+ }
                   Labelpretrial.ProcTime:=60*3;3 k, k( `  L" f5 O
           elseif rand>0.15 and rand<=0.5 then
! O' ~2 c" {% ]/ Q1 t8 l                   Labelpretrial.ProcTime:=60*4;
5 i8 X7 `; m( [/ |9 B( N0 E' ^) A           elseif rand>0.5 and rand<=0.8 then # u3 ]3 ^+ q+ h* y
                   Labelpretrial.ProcTime:=60*5;' Z( t! D4 ?2 \, e2 {1 i- n
           elseif rand>0.8 and rand<=0.95 then 7 e' K, b, O, Q3 [1 @% O% t& P
                   Labelpretrial.ProcTime:=60*6;6 W, S3 f5 u. B, M$ F5 Y
           elseif rand>0.95 and rand<=1 then 3 [6 \5 M' q+ W9 {! b
                   Labelpretrial.ProcTime:=60*7;0 l% i* o9 s' u4 R
         
* {- h1 w7 o4 Z- ]8 W- \2 j       end;  W7 }/ e7 v/ q6 b
end;
9 J) F1 n5 r6 q1 ]3 E3 k系统就会按照第一个时间3分钟来自动生成处理时间,我该怎么办?
发表于 2014-10-23 16:00:48 | 显示全部楼层
发表于 2014-10-23 16:00:56 | 显示全部楼层
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-10-31 09:52 , Processed in 0.014513 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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