设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3735|回复: 2

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

  [复制链接]
发表于 2014-6-5 00:07:09 | 显示全部楼层 |阅读模式
我要怎么样操作才能让singleproc根据我设置的method语句来操作?我把singleproc中时间选项里面的处理时间改成0,然后应用,系统就会按照我设置的method中的语句的第一句话的时间来操作。我在method中设置的语句是这样的。
; K3 g/ I0 g5 V2 M& x, ]is4 l  h) h( w4 k. K6 F
        rand:real;
2 a7 g. ~/ h! V8 q- ~, s0 hdo& ?! l+ ?6 o8 T# U8 `
   @.serverTime:=Labelpretrial.ProcTime;$ D. o$ N0 k2 I( I6 x
        rand:=Z_uniform(1,0,1);: O. ^% c" a# y; t
       if rand>0.0 and rand<=0.15 then / G  B$ d' g! A, L8 w/ J) Q$ r( Q
                   Labelpretrial.ProcTime:=60*3;( S; q  Q2 Q+ {& o- ~
           elseif rand>0.15 and rand<=0.5 then 1 I% j! m$ Y1 A) ^0 Q9 a) [3 o
                   Labelpretrial.ProcTime:=60*4;
) F* A2 A, J0 O* b           elseif rand>0.5 and rand<=0.8 then
, L- @5 \/ f; R                   Labelpretrial.ProcTime:=60*5;) A- R! p- `9 ^) E' R( n7 Q) A
           elseif rand>0.8 and rand<=0.95 then
! y( ]- M, }4 k                   Labelpretrial.ProcTime:=60*6;* r* H9 y' J! M8 s! G8 A% \1 U
           elseif rand>0.95 and rand<=1 then
4 g9 p2 a. l+ f                   Labelpretrial.ProcTime:=60*7;( k! D; l0 P  Y7 I* ~9 I  s5 ]- Y- I
         
. _; C, B$ ]8 S. f: Y# h: _       end;5 X2 U6 I( _( u& F9 G. Z6 E2 w3 c
end;
. q' a5 F! r  R. [) O3 }4 m系统就会按照第一个时间3分钟来自动生成处理时间,我该怎么办?
发表于 2014-10-23 16:00:48 | 显示全部楼层
发表于 2014-10-23 16:00:56 | 显示全部楼层
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-3-13 14:14 , Processed in 0.014414 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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