First commit
This commit is contained in:
commit
b7a1213f91
29 changed files with 1312 additions and 0 deletions
16
Alt/Tank.alt
Normal file
16
Alt/Tank.alt
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue