6 Runtime View

This chapter shows how the parts of the machine act in time order in normal operation. Each scenario names the contracts from Contracts that its steps rely on, and lists what is still open. Faults have their own page, Fault Scenarios. For the software details, see the Station runtime view.

Switching On

The Operator switches the main switch on. The Station starts, finds its Pods and corrects the fill levels from the weights that the Pods report.

Switching on
Figure 1. Switching on

Which parts start in which order, and how does the Station find its Pods?

Contracts

  • IF-04, IF-04-R01: The main switch is the one labeled point that connects the machine to the mains, and the Power Grid supplies 230 V AC behind it.

  • IF-02: The Power Management Unit supplies the 5 V DC of the Station.

  • IF-03, IF-03-R04: The Power Management Unit supplies the 24 V DC of every Pod, and no actuator may move before the Station has started the Pod.

  • IF-01, IF-01-R04, IF-01-R09: The Station finds each Pod over its own USB CDC device, tells the Pods apart and uses only a Pod on its own protocol release.

  • IF-02-R03: The Station starts again from the state files on disk.

Open

  • What a Pod actuator does while the Pod starts, and who guarantees that none moves before the Station has started the Pod (IF-03-R04).

Details

A Drink End to End

A Guest orders a drink, and the Station plans it and sends each ingredient to the Pod that holds it. The ingredients flow through the Station fluid hub into the glass, and the Guest sees a success screen.

A drink end to end
Figure 2. A drink end to end

How does the order of a Guest become a drink in a glass, across the Station, the Pod and the fluid path?

Contracts

  • IF-01, IF-01-R08: The Station starts every dispense, and the Pod reports the amount that really came out.

  • IF-05, IF-05-R05: The ingredient flows from the bottle into the pump, the load cell weighs the bottle, and an empty bottle is noticed.

  • IF-06, IF-06-R05: The ingredient leaves the Pod through the Station fluid hub into the glass, and a pour should start only when a glass stands in place.

Open

  • How the machine knows that a glass stands in the glass placement area, and when the Guest places it (IF-06-R05).

  • The Station fluid hub is not designed, so the path from the dispenser outlet to the glass has no tubing, material or outlet position yet, and whether it merges all ingredients is open (IF-06-R02, IF-06-R03).

Details

Refilling

An Operator tops up a bottle or replaces it, and tells the Station. The Station reads the weight again, and the fill level and the weighing carry on from the new weight.

Refilling
Figure 3. Refilling

How does the Station notice a refilled or replaced bottle, and what does the Operator have to do?

Contracts

  • IF-05, IF-05-R03, IF-05-R04: An Operator refills a bottle from the top while the Pod keeps weighing it, and replaces a bottle without tools.

  • IF-08, IF-08-R03: The Operator reaches every point that service needs with the Pod installed.

  • IF-01, IF-01-R09: The Station reads the weight of the right dispenser of the right Pod.

Open

  • How the Operator reaches the bottle, whether the Pod must be opened for it and whether the Pod must be at rest first (IF-05-R04, IF-08-R03, IF-08-R04).

  • What a bottle holder, a supply line and a changed bottle look like, because the bottle side of the line is not designed (IF-05-R04).

  • The Station does not notice an Operator who puts the wrong ingredient into a bottle (IF-05-R02).

Details

Switching Off

The Operator switches the main switch off, and the machine loses all power at once. The state files on the Station stay whole, and the Pods keep their calibration.

Switching off
Figure 4. Switching off

What happens to the Station, the Pods and the stored state when the Operator switches the machine off?

Contracts

  • IF-04, IF-04-R01: One labeled main switch disconnects the machine from the mains.

  • IF-02, IF-02-R03: A power cut leaves the Station able to start again with its data intact.

  • IF-03: The Pods take all their power from the one 24 V rail, so they stop with it.

Open

  • Whether the Station gets a warning or a short run-on time before the 5 V stops, so that it ends orderly (IF-02).

  • What happens to a drink that is running when the Operator switches off, which the fault scenario "power fails during a pour" covers (IF-03).

Details