aboutsummaryrefslogtreecommitdiffstats
path: root/research/experiments/027-apps-sending/src.aup
blob: 6ec7c4c0245c2eec603694cf645965001234935d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
record Item {
  k = 0
}
state items: list of Item
input fill = message { k: u32 }
input burst = message { step: u32 }
output out = message { k: u32 }
on fill {
  items.append(Item { k: fill.k })
}
on burst {
  for i in items {
    send out { k: i.k + burst.step }
  }
}
view count = count(i in items where i.k > 0)