) n$ t8 P$ Z: w+ `! \& ]7 n0 ]* v6 E7 Q % e4 j9 A, s" O! b1 B; u: Q& i* p u+ f } . m6 J+ f( [% b% t2 F // Return the results.% R8 ?/ @: T" g) J
return returnValue / u: D7 R* H% Y: L$ w- s" b$ `. ~. a, l- A5 ]$ \: w' L% F
}! P& A8 V) Z6 P0 {! u
5 e: A7 |- d/ d P /** ; y# y& F* T) U *2 Z" f/ l# m, J9 f, D* {5 }3 b& |1 x
* This is the step behavior.2 d( T/ x% d# a) }* X# @
* @method step8 N9 Z4 e: V% t9 ~) k% w
* & p+ A7 r$ j: @ */' d2 ~( Y% _% d' \, n! F) X: r8 }% D
@ScheduledMethod( 5 t( s# W4 q4 c% I9 b* k- q start = 1d, ! `+ h$ j8 O) N2 O. q interval = 1d, + M9 ]' W: a- p% Z shuffle = false * V8 b( w& S" b) n$ U+ e )' R- p" y2 a- A8 s
public void step() {1 `' s2 V/ `+ @ C; m
C/ w. s/ f' M" R
// Note the simulation time. # x. P% y* f; x def time = GetTickCountInTimeUnits()! a# s6 V1 K) p! i m- _* C% D. u* t* X
% X7 w/ f; F6 T( i // This is a task. $ m3 G5 o% `& Q9 H3 i% z. e measurePressure=pressure+ RandomDraw(-20.0, 20.0) * |: S D6 D1 L7 P$ E // End the method. % J* _! J$ S* h6 k5 }: v+ q' \ return# P1 g1 W" q4 o
8 E! o" Z N, G! {- y4 A
}