Of course, the sequence of messages can be initiated by a controller that sends a value-changing message to the aspect adapter by way of the button click simulator defined in Segment 812:
Workspace C := ControllerSubclass new. C model: A. C simulateClick. Transcript Button click simulated Sample viewer receiving #value update message Value, determined in viewer, is 28
The message sequence is longer than the one reported in
Segment 817: First, the controller sends value:
to the
aspect adapter, which sends fCalories:
to the food instance. Then,
fCalories:
sends changed:
to the food instance, which sends
update:
to the aspect adapter, which sends update:
to the
viewer, which sends value
back to the aspect adapter, which sends
fCalories
to the food instance.