The Facade Incantation
Providing a unified interface to a complex set of subsystem wards.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Facade
ARCANUM SCHOOL: Abjuration // Macro Control
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// ADA PATTERN //
package Ward_Facades is
package Subsystem_Alpha is
procedure Initialize_Plasma;
end Subsystem_Alpha;
package Subsystem_Beta is
procedure Calibrate_Harmonics;
end Subsystem_Beta;
type Fortress_Facade is tagged null record;
procedure Lockdown (F : in Fortress_Facade);
end Ward_Facades;
package body Ward_Facades is
package body Subsystem_Alpha is
procedure Initialize_Plasma is begin null; end;
end Subsystem_Alpha;
package body Subsystem_Beta is
procedure Calibrate_Harmonics is begin null; end;
end Subsystem_Beta;
procedure Lockdown (F : in Fortress_Facade) is
begin
Subsystem_Alpha.Initialize_Plasma;
Subsystem_Beta.Calibrate_Harmonics;
end Lockdown;
end Ward_Facades;
Managing the labyrinthine subroutines of a DoD compound’s magical defense is impossible under fire. The Facade provides a single, high-level Lockdown procedure that elegantly orchestrates the chaos below.
Runic Tags:
#ada
#abjuration
#facade