The Mediator
A central ley-line nexus routing energy between discrete magical towers.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Mediator
ARCANUM SCHOOL: Enchantment // Nexus Routing
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
coclass 'Nexus'
create =: 3 : 'towers =: 0$0'
register =: 3 : 'towers =: towers , y'
broadcast =: 3 : 0
'sender msg' =. y
for_t. towers do.
if. t ~: sender do.
receive__t msg
end.
end.
)
coclass 'Tower'
create =: 3 : 'id =: y'
set_nexus =: 3 : 'nexus =: y'
send =: 3 : 'broadcast__nexus id ; y'
receive =: 3 : 'smoutput id , '' received: '' , y'
The Nexus mediates communication between Towers, preventing tight coupling.
Runic Tags:
#mediator
#objects
#broadcasting
#nexus