设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4359|回复: 2

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

  [复制链接]
发表于 2014-6-5 00:07:09 | 显示全部楼层 |阅读模式
我要怎么样操作才能让singleproc根据我设置的method语句来操作?我把singleproc中时间选项里面的处理时间改成0,然后应用,系统就会按照我设置的method中的语句的第一句话的时间来操作。我在method中设置的语句是这样的。$ }; c# ~/ o8 Q0 |4 ^4 o+ @
is  I* ]  R/ q5 |- j( z
        rand:real;4 r( N+ T" W  N) T
do1 t" P& J, G4 f- \3 }3 t
   @.serverTime:=Labelpretrial.ProcTime;5 J- H, E, r  D1 f& }1 h6 M" J
        rand:=Z_uniform(1,0,1);
" m1 F: c, X( x+ H7 s: o+ B% z  p+ O       if rand>0.0 and rand<=0.15 then
0 C8 d' Q/ c8 M# {, O( G0 G; L                   Labelpretrial.ProcTime:=60*3;; I: u- k, F! f' r' b: h& H
           elseif rand>0.15 and rand<=0.5 then
( t3 G1 Q8 g# Z                   Labelpretrial.ProcTime:=60*4;
" w, S" C, G. V9 {* p6 }# |           elseif rand>0.5 and rand<=0.8 then - l1 v: ~# e, x- p8 W" K
                   Labelpretrial.ProcTime:=60*5;* e7 t' k! C- O( |) H( r. ?
           elseif rand>0.8 and rand<=0.95 then
) Y5 f8 n/ d8 _                   Labelpretrial.ProcTime:=60*6;
- @2 P. v3 r6 L( k9 d% b) T& f           elseif rand>0.95 and rand<=1 then
; Y) B) s# Z# z/ c! F/ ^3 f, ~' T9 o7 P                   Labelpretrial.ProcTime:=60*7;
6 D$ z, E  U9 R: g5 ?         4 T+ |) a5 a5 |; {% w' Y9 B* I& N5 a
       end;0 g  @9 _, P6 l! `
end;+ Z) T( v6 ]2 j; X0 q' f, A
系统就会按照第一个时间3分钟来自动生成处理时间,我该怎么办?
发表于 2014-10-23 16:00:48 | 显示全部楼层
发表于 2014-10-23 16:00:56 | 显示全部楼层
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-9-16 00:40 , Processed in 0.015336 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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