The Mediator
Centralizing telepathic communication between warring hospital wards.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Mediator
ARCANUM SCHOOL: Enchantment // Mind-Linking
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
MEDIATOR ; Mediator Pattern in MUMPS
;
BROADCAST(SENDER, MSG) ;
; The Mediator function routing messages
W "[",SENDER,"] broadcasts: ",MSG,!
I SENDER="ICU" D SEND("MORGUE", "Prepare for incoming.")
I SENDER="MORGUE" D SEND("ICU", "We are full. Stop dying.")
Q
;
SEND(TARGET, MSG) ;
W " -> Message delivered to ",TARGET,": ",MSG,!
Q
Runic Tags:
#behavioral
#mediator
#mumps
#necromancy