When dispatched, it tells the workers to annouce for their existence
GatherCompleteEvent:
States that the gathering is over
PresentEvent:
An event that a worker announce it's existence
- GatherEvent is dispatched. after a time period, the GatherCompleteEvent will be dispatched
- Worker 1 received GatherEvent, now he knows someone quit the job. So he erase all the worker from his note
- Worker 1 feels good, dispatching PresentEvent
- Worker 2 received GatherEvent, now he knows someone quit the job. So he erase all the worker from his note
- Worker 2 feels good, dispatching PresentEvent
- Worker 3, 4 also feels good, dispatching PresentEvent
- Worker 1 received a PresentEvent from Worker 2. He jot down that worker 2 is present
- Worker 3 received a PresentEvent from worker 2. He also jot down that worker 2 is present
- worker 4 jot down worker 2's presence
- Worker 2, 3, 4 jot down worker 1's presence respectively
- The GatherCompleteEvent is dispatched
- Worker 5-9 misses their chance. But they could still announcet their presence. So worker 1-4 knows that they are here. But they not in the candidate list for doing their job next.
- Now worker 1, 2, 3, 4 knows each others presence, from the look of it, the first worker who do the job seems to be worker 1
- Suddenly, Worker 1 is abducted by the aliens!
- Worker 2, just staring with his mouth wide open. Wondering wtf is going on.
- Worker 3 doesn't care
- Worker 4 is popping the glorious bubble wrap
- Worker 5-9 are having a pillow war
- Since worker 1 is abducted by the aliens, he cant do his job
- After some time, Worker 2-9 noticed the problem, the GatherEvent must be dispatched again
- Worker 2-9 dispatch the GatherEvent simultaneously
- Worker 2 received the GatherEvent, now he clear his note, ready for jotting others presence
- Worker 2 received the GatherEvent 7 more times, but he already cleared his note, so he is doing nothing
- Worker 3-9 are doing the same thing
- After sometime, the GatherCompleteEvent is dispatched, 8 times.
- Worker 2 is now the next one who do the job
- Time is passed
- Worker 2 found a peculiar precious ring in the bunker. He disappeared.
- Worker 3 is overwhelmed by problem of the origin of the vast Universe
- Worker 4 thinks it's time to become a chicken
- Worker 5-9 are at the theatre
- Repeat 19