设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2963|回复: 2

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

  [复制链接]
发表于 2014-6-5 00:07:09 | 显示全部楼层 |阅读模式
我要怎么样操作才能让singleproc根据我设置的method语句来操作?我把singleproc中时间选项里面的处理时间改成0,然后应用,系统就会按照我设置的method中的语句的第一句话的时间来操作。我在method中设置的语句是这样的。
" i. h: |, Y( @$ z  o; Q8 e' `3 z1 r7 Bis
% h7 q0 S2 h& W        rand:real;
3 \- l9 ~- x$ N9 y* q9 Vdo. R" `; J6 G* }, ?
   @.serverTime:=Labelpretrial.ProcTime;
: _/ b% e4 U" t5 H5 W; K2 V        rand:=Z_uniform(1,0,1);6 |" Z$ }& \! K5 |2 u
       if rand>0.0 and rand<=0.15 then
$ o3 M: [* A4 I; M                   Labelpretrial.ProcTime:=60*3;
* o$ \1 {  {' e           elseif rand>0.15 and rand<=0.5 then
0 b  O- X/ p4 \/ M                   Labelpretrial.ProcTime:=60*4;
# ]% {% v# ^7 |8 B. V! E) `9 Z2 W           elseif rand>0.5 and rand<=0.8 then
7 O0 Z8 v1 Q1 @% @                   Labelpretrial.ProcTime:=60*5;
8 P& V5 d- D+ C+ U$ H           elseif rand>0.8 and rand<=0.95 then
* D: c3 {+ i+ C" {+ y* e% a' X                   Labelpretrial.ProcTime:=60*6;& `  R) e) o, H* a, V
           elseif rand>0.95 and rand<=1 then
/ ~" p; V1 x' K* b+ f! w                   Labelpretrial.ProcTime:=60*7;
2 Z# k4 p: w5 f! _3 }9 u         ! b# I% ?/ i% j: m% y* r
       end;
$ H1 y* V: r) J1 tend;6 d' \/ a: x* ~% H. Z
系统就会按照第一个时间3分钟来自动生成处理时间,我该怎么办?
发表于 2014-10-23 16:00:48 | 显示全部楼层
发表于 2014-10-23 16:00:56 | 显示全部楼层
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-9-14 07:50 , Processed in 0.017038 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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