5 Building Block View
The Station is the host block in the System building block view. This page shows the blocks inside the Station.
Level 1: Station Building Blocks
Which blocks make up the Station, and which block uses which?
-
Owns the recipe, ingredient, and glass catalogs, the persisted ingredient-to-dispenser mapping, the persisted active pour volumes of each glass, and the persisted fill level of each dispenser.
-
Tracks which Pods are connected and what each one reports about itself.
-
Turns a selected recipe into a sequence of dispensing actions and coordinates their execution.
-
Discovers Pods, whether physically connected or simulated for development, behind one common interface.
-
Speaks the Station side of the shared wire protocol (System protocol concept), independent of which Pods are actually present.
-
Presents the Guest ordering flow and the Operator UI behind the same window.
-
Reflects live domain and Pod state without owning any of it itself, and forwards user actions back into the Domain Model.
-
Is planned and not built yet (SYS-016).
-
Computes every effect of the show front from pour started, pour finished, ingredient, recipe, idle and fault, and sends direct commands to it (System contract IF-09).
-
Never blocks the execution context, and a fault in it never stops or delays a drink.
-
Provides logging, strong domain identifiers, unit-safe physical quantities, and retry and timeout helpers shared by every other building block.
Level 2: Domain Model & Application
-
Catalogs: the recipe, ingredient, and glass data loaded from the local data files described in 3 Context and Scope.
-
Station configuration and state: the persisted ingredient-to-dispenser mapping, glass pour volumes and fill levels, and the live, in-memory state of each connected Pod that the UI observes.
-
Pod registry and dispatch: tracks connected Pods and routes a command to the right one.
-
Recipe execution: scales and adjusts a recipe for the chosen glass, and executes it as a sequence of commands dispatched to the owning Pods, reporting progress as it goes. A single pour asks for a refill and pours the rest when it comes up short, and leaves the dialog itself to the UI.
-
Fill level: works out what is in each bottle from the weight readings, corrects that when a Pod connects, and persists it. It also says which ingredients may not be enough for a drink.
Level 2: User Interface
The UI never owns domain or Pod state itself. A small set of dedicated components sits between the declarative UI and the Domain Model, each responsible for one concern: it reflects the relevant part of the live domain or Pod state into the UI, and translates user actions back into calls on the Domain Model.
| Concern | Responsibility |
|---|---|
Navigation & Pod Status |
Owns which screen is active, tracks live Pod connection state and fill levels for display, and gates the Operator UI behind PIN authentication. |
Recipe Browsing & Mixing |
Publishes the recipe and ingredient catalog to the Guest UI, warns when a drink may not fit, and drives recipe execution when a Guest starts a mix. |
Glass Configuration |
Exposes which glasses and pour volumes a Guest may currently choose from, and lets an Operator change that set. |
Dispenser Calibration |
Drives load-cell taring, reference-weight calibration, and the timed dispenser calibration for a specific dispenser, for the Operator maintenance flow. |
Operator authentication itself, PIN verification and attempt-based lockout, is a small policy consumed by Navigation & Pod Status rather than a concern of its own.
Continue with 6 Runtime View.