我要怎么样操作才能让singleproc根据我设置的method语句来操作?我把singleproc中时间选项里面的处理时间改成0,然后应用,系统就会按照我设置的method中的语句的第一句话的时间来操作。我在method中设置的语句是这样的。
# r& y6 v$ i. p1 h5 cis
3 j- [0 t$ J; d, y rand:real;9 x, _+ f( W3 g+ Q( Y# p
do }, O/ x0 I" V& H5 H
@.serverTime:=Labelpretrial.ProcTime;
9 I- O" s4 z- v" h3 z8 e* D rand:=Z_uniform(1,0,1);
" n$ x0 i( p! I0 r3 ~ if rand>0.0 and rand<=0.15 then . J& b9 Z/ f G+ `8 ]
Labelpretrial.ProcTime:=60*3;- w* g3 W: g" B& Z# |
elseif rand>0.15 and rand<=0.5 then
3 S, w; G, Y% h% q& {. ?+ C1 _ Labelpretrial.ProcTime:=60*4;
8 P/ ~) x4 f$ g% q elseif rand>0.5 and rand<=0.8 then
. n6 N: u: k M+ I: g Labelpretrial.ProcTime:=60*5;
, Q# m$ F' Q+ T" N4 ] elseif rand>0.8 and rand<=0.95 then ; @) C7 v8 P7 k0 H4 p; ?; r
Labelpretrial.ProcTime:=60*6;) ^9 Q7 p. t# k
elseif rand>0.95 and rand<=1 then
2 b5 A+ f/ ?+ d, @& B5 [ Labelpretrial.ProcTime:=60*7;4 |: B3 `& Y3 C
1 m7 `; O' f" l1 t' X! ^7 }* ]0 R end;2 T$ \3 G) q0 f$ y- S2 a
end;6 V3 {, G# v0 O2 h8 {
系统就会按照第一个时间3分钟来自动生成处理时间,我该怎么办? |