( ** Go back to PARENTPAGE ../Tying-to-Oscillators-with-Cyclic-Containment.html)
( ** Go back to HOMESITE https://www.tcnd.com)
( ** Go back to SetSphere https://www.setsphere.com)

from UNIX urandom by tying a group attributes to UNIX device

ASPL set variables can have their attributes tied to lambda code that is executed in real time whenever a set variable is sourced ... When a set variable has its attributes tied to the UNIX urandom device, then it is updated everytime it is sourced. Furthermore, if an attribute is tied to lambda code, then it is being updated with the value returned upong executing the code.

ASPL 1> attributes
print attributes

ASPL 2> W1 = ggtiewaves(grp1,Waves1,points,100,frequency,1,resetcycle,0,aggregate,1,tiesess,W1)
get a wave in W1

ASPL 3> sleep 1
sleep 1 second

ASPL 4> ?3,1 W1
interrogate W1 to get subsequent waves, since resetcycle is 0, then continue with ASPL tied containment incrementing the number with each period

ASPL 5> W2 = ggtiewaves(grp1,Waves2,points,100,frequency,1,resetcycle,0,aggregate,1,tiesess,W2,resetaggg,1)
get a wave in W2

ASPL 6> sleep 1
sleep 1 second

ASPL 7> ?3,1 W2
interrogate W1 to get subsequent waves, since resetcycle is 0, then continue with ASPL tied containment incrementing the number with each period

ASPL 8> W3 = ggtiewaves(grp1,Waves3,points,100,frequency,1,resetcycle,1,tiesess,W3)
get a wave in W3

ASPL 9> sleep 1
sleep 1 second

ASPL 10> ?3,1 W3
will not update any new wave in W3 since resetcycle = 1

ASPL 11> W4 = ggtiewaves(grp1,Waves4,points,100,frequency,1,tiesess,W4)
get wave in W4

ASPL 12> sleep 1

ASPL 13> ?3,1 W4

ASPL 14> @ W1
show all waves instances in differential group variable W1

ASPL 15> @ W2
show all waves instances in differential group variable W2

ASPL 16> @ W3

ASPL 17> @ W4

ASPL 18> ks

ASPL 19> gU,`ks= @W1

ASPL 20> gU,`ks= @W2

ASPL 21> ks sin cos sumarea1 sumarea2 aelm

ASPL 22> gU,`ks= @W1

ASPL 23> gU,`ks= @W2

ASPL 24> bye