The Factory Method
Defer the instantiation of extraterrestrial probes to crystalline subclasses.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Factory Method
ARCANUM SCHOOL: Conjuration // Probe-Spawning
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// APL PATTERN //
:Class AlienProbeSpawner
∇ R←SpawnProbe
:Access Public Shared
⍝ Override in subclasses
R←'Generic Probe ⍰'
∇
∇ R←Deploy
:Access Public
R←'Deploying: ', SpawnProbe
∇
:EndClass
:Class AlphaCentauriSpawner : AlienProbeSpawner
∇ R←SpawnProbe
:Access Public Shared
R←'Silicate Probe ⌹'
∇
:EndClass
:Class SiriusSpawner : AlienProbeSpawner
∇ R←SpawnProbe
:Access Public Shared
R←'Plasma Probe ⌾'
∇
:EndClass
When the ancient star-spawners need to deploy probes across the cosmic void, they utilize the Factory Method. The base spawner defines the deployment ritual (Deploy), but delegates the exact manifestation of the probe (SpawnProbe) to the specific star-system spawner. ⌹ and ⌾ represent the silicates and plasmas woven by the localized alien geometries.
Runic Tags:
#apl
#creational
#alien
#factory-method
#probes