/ Y' o) r% ]6 T 3 U& \- K- I2 `" u- b@Parameter (displayName = "Measured Pressure", usageName = "measured pressure")5 ]& @& v7 f' J! b8 U
public double getMeasured pressure() { : T7 e- y) X, |, A8 b0 } return measured pressure( p. Q. z& X1 u
} & g; E% V7 z: G& ?- h5 k public void setMeasured pressure(double newValue) {% b8 p. [; B \ V. j5 v) b
measured pressure = newValue $ ]( R6 D" X. v: i( q, |9 p* }* }2 C4 i c0 K }8 j8 k4 f' c. l) I1 _- g! P$ C
public double measured pressure = 0 # o! F8 b: n6 o A. I0 f5 R0 c# {- Z2 x! F. I. h
/** % S& h/ E; T' j6 t. k. O% u *1 o' U/ n8 ^0 ^1 \& N4 }
* This value is used to automatically generate agent identifiers.# T- j3 g+ N' \( ?. D R' _
* @field serialVersionUID ! b c v) d) }6 j* { * % n! `# B: J( ~% c7 j3 p' e */# L3 g9 @( p4 @- D- N
private static final long serialVersionUID = 1L 4 d; n7 j& _1 @ c6 u - d- X( P U# a9 [) p: b /**7 U- \- Q! R- H# x& d7 Z
* . n0 R. J' v. L% Y! W3 {4 K * This value is used to automatically generate agent identifiers.! Z( A3 z% `+ H5 I8 x7 Q
* @field agentIDCounter # m0 `: l# O2 R+ g. x9 S7 j x *9 s8 `! s" K3 @. l
*/ j+ S2 |: a5 f% ]/ p
protected static long agentIDCounter = 1+ U& n* N. C( q0 U2 x) l
& [2 u& g2 k* z0 Z2 _! E0 } /** ! P8 I% q: _; S: ~ *$ C; c9 X5 `4 S" O
* This value is the agent's identifier.* v! @2 B+ E; `# J* d4 o: {
* @field agentID $ [4 k- G! U% E' @' |- t- [ * 4 h1 \+ i0 _- O. n4 w */ * r' o4 @5 I% w* @3 w protected String agentID = "GasNode " + (agentIDCounter++) ' A7 @8 L2 D( ?2 P2 H9 ?. q- m: h: N0 s' w d4 J) w+ w
/**: T) M0 I4 I) M& y4 |, a
*9 e' n. I0 n4 k( O3 D& X0 e
* This is the step behavior.) K8 \/ y7 ^, j5 E6 U) a
* @method step ) t: Q1 E; V4 T * ( G2 |( ^. v) D& ]7 v7 ` */ # W: f$ ~9 ?5 u; n @Watch( % V. L# a5 j& E watcheeClassName = 'infrastructuredemo.GasNode', 7 ^' N, ]- F6 z- k6 C: z watcheeFieldNames = 'pressure', 5 `9 @, F; x5 _/ D: O% j query = 'linked_from',; L+ M; w# g# B0 P$ ~' g6 j
whenToTrigger = WatcherTriggerSchedule.LATER,/ _6 A- c5 K, H# f3 x
scheduleTriggerDelta = 10d6 }/ U" d) X6 n8 T
)+ m( U3 v& g+ w$ d
public def step(infrastructuredemo.GasNode watchedAgent) {$ S3 e1 y8 S4 g: f0 V/ u' U& a5 V+ A0 m
7 {- w6 o' Y- E# V // Define the return value variable.+ L8 @5 [0 W; w( K1 E
def returnValue/ j% \$ I0 O$ [8 P! `