我要怎么样操作才能让singleproc根据我设置的method语句来操作?我把singleproc中时间选项里面的处理时间改成0,然后应用,系统就会按照我设置的method中的语句的第一句话的时间来操作。我在method中设置的语句是这样的。
+ i) m0 H% s6 X2 s7 E% u: cis* x: {5 ]* D# `$ P
rand:real;, x# P+ V0 T/ P+ y& i
do
% ~+ v/ R) C | @.serverTime:=Labelpretrial.ProcTime;$ _! X/ a6 @1 x+ ]4 E$ h2 T
rand:=Z_uniform(1,0,1);+ y& y) i! z# D, i* [9 Y" w
if rand>0.0 and rand<=0.15 then
% L I6 k* `5 `0 Z8 G Labelpretrial.ProcTime:=60*3;4 a2 r- a9 G( P7 P+ i
elseif rand>0.15 and rand<=0.5 then ! n7 u2 d; W9 N% H U2 Y
Labelpretrial.ProcTime:=60*4;
+ n2 @3 z( B5 S* e. B+ r! k: u5 a elseif rand>0.5 and rand<=0.8 then ' @0 g/ W3 I, F2 T( j
Labelpretrial.ProcTime:=60*5;
1 r6 Y. C3 L0 v5 T0 x" O. I7 d elseif rand>0.8 and rand<=0.95 then
2 r' Q4 r$ @) a! H% j% s& _ Labelpretrial.ProcTime:=60*6;" j& F9 U2 h) E! k2 u; h5 P
elseif rand>0.95 and rand<=1 then ' q! w7 D& V5 y1 r
Labelpretrial.ProcTime:=60*7;& ?; u- L, L7 ?1 q+ o
/ I" T* ^ M7 x% B* t e end; o# [( u' }8 J- g, {
end;: F" g$ i% b- P9 Z$ B* [0 G
系统就会按照第一个时间3分钟来自动生成处理时间,我该怎么办? |