我要怎么样操作才能让singleproc根据我设置的method语句来操作?我把singleproc中时间选项里面的处理时间改成0,然后应用,系统就会按照我设置的method中的语句的第一句话的时间来操作。我在method中设置的语句是这样的。
0 t5 l' S6 c1 X% d' W; V' E/ G( e/ Kis
1 q! i) @6 I& \3 o- }& m rand:real;6 |# y' N9 O# S. B* l
do
0 b* x9 @0 @& J1 m0 e- u) T @.serverTime:=Labelpretrial.ProcTime;' v$ T+ v: M2 X- y4 T9 w
rand:=Z_uniform(1,0,1);
( Z! O* L# ^4 ?# o if rand>0.0 and rand<=0.15 then ; F7 L! u. O! ]3 H$ q
Labelpretrial.ProcTime:=60*3;* `/ f W$ y! H8 |6 ^. N- ~
elseif rand>0.15 and rand<=0.5 then U- V* q# a7 e1 x
Labelpretrial.ProcTime:=60*4;
, M( K* d7 G; _& l1 K/ S elseif rand>0.5 and rand<=0.8 then : M% j( s0 D9 }/ S0 ~- g
Labelpretrial.ProcTime:=60*5;; u" T5 G* l" M4 e, A
elseif rand>0.8 and rand<=0.95 then - p; J3 j6 u1 J' ?2 ]' K
Labelpretrial.ProcTime:=60*6;
" Y" T# ?" Q' Q7 h- C6 I$ I elseif rand>0.95 and rand<=1 then 2 g1 Q7 ]; X5 s2 I+ @8 b6 ?
Labelpretrial.ProcTime:=60*7;
3 C5 ~/ ^6 ` k2 _( x3 R
. H4 l# h% x6 S3 _2 t' g/ ?, a" D. c end;( O9 l4 s# |: P7 l( C
end;* Y7 @# C% [3 \; _
系统就会按照第一个时间3分钟来自动生成处理时间,我该怎么办? |