设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4005|回复: 2

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

  [复制链接]
发表于 2014-6-5 00:07:09 | 显示全部楼层 |阅读模式
我要怎么样操作才能让singleproc根据我设置的method语句来操作?我把singleproc中时间选项里面的处理时间改成0,然后应用,系统就会按照我设置的method中的语句的第一句话的时间来操作。我在method中设置的语句是这样的。
7 y) y+ I) Q+ }7 Cis' ~7 w3 _& y  A4 t8 H5 N1 Q/ u- o
        rand:real;$ C8 @! J: b- l# ?
do+ z) a/ S0 J3 u3 F
   @.serverTime:=Labelpretrial.ProcTime;
( O0 G6 B* I  a% h        rand:=Z_uniform(1,0,1);; x# s+ M: a1 D0 Q4 U
       if rand>0.0 and rand<=0.15 then   k0 J' ~, A2 l' d2 E0 U
                   Labelpretrial.ProcTime:=60*3;
& D# T$ Y! o+ c" H5 x- ]4 r           elseif rand>0.15 and rand<=0.5 then ) [4 J; V: x/ w  K: s
                   Labelpretrial.ProcTime:=60*4;
3 I5 e1 e) o+ E' y4 @) ]0 [           elseif rand>0.5 and rand<=0.8 then : h5 j3 a8 t2 G8 ]+ H+ Y
                   Labelpretrial.ProcTime:=60*5;
- @0 q: \6 Y% ?4 o           elseif rand>0.8 and rand<=0.95 then ! O4 y& @) C" z  y* g% [/ R$ v
                   Labelpretrial.ProcTime:=60*6;
" a: Z. l" f% Z# K           elseif rand>0.95 and rand<=1 then 1 d) C% p# s% _  F8 S9 ?
                   Labelpretrial.ProcTime:=60*7;
" q7 k. {- h& o' t) _         2 k7 l1 z. o2 a4 }' ~
       end;
; q) J8 t! R9 ]end;
+ v% L. y! |! q系统就会按照第一个时间3分钟来自动生成处理时间,我该怎么办?
发表于 2014-10-23 16:00:48 | 显示全部楼层
发表于 2014-10-23 16:00:56 | 显示全部楼层
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-5-26 08:23 , Processed in 0.013377 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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