Mediator: The Hub in the Middle
When the front door has to turn off the alarm, turn on the hallway light and stop the music itself, every device knows several others and every new rule means opening a device's class; a Mediator lets each device tell the hub what happened, and only the hub knows who reacts.
Updated

- Category
- Data Structures
- Level
- Journeyman
- Tags
- coupling, Facade Pattern, Mediator Pattern, OOP