我要怎么样操作才能让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分钟来自动生成处理时间,我该怎么办? |