First commit

This commit is contained in:
Yorick Barbanneau 2023-03-01 21:40:15 +01:00
commit b7a1213f91
29 changed files with 1312 additions and 0 deletions

16
Alt/Tank.alt Normal file
View file

@ -0,0 +1,16 @@
node Tank
state level : [0,nbSensors] : public;
init level := nbSensors/2;
flow input : [0,4];
output : [0,2];
event time;
trans input>output |- time -> level := level + 1;
input<output |- time -> level := level - 1;
input=output & input=0 |- time -> ;
input=output & input>0 |- time -> level := level - 1;
input=output & input>0 |- time -> ;
input=output & input>0 |- time -> level := level + 1;
/* To avoid deadlocks */
input>output & level=nbSensors |- time -> ;
input<output & level=0 |- time -> ;
edon