⚙️ ALLOY RUNE DIFFICULTY: Adept Creational

The Abstract Factory: Matrix of Creation

Define a family of polymorphic relations without specifying their concrete instantiations.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Abstract Factory
ARCANUM SCHOOL: Conjuration // Meta-Synthesis
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// ALLOY PATTERN //
abstract sig ConstructA {}
abstract sig ConstructB {}

sig CyberConstructA1, CyberConstructA2 extends ConstructA {}
sig NeonConstructB1, NeonConstructB2 extends ConstructB {}

abstract sig AbstractForge {
  createA: one ConstructA,
  createB: one ConstructB
}

sig CorpForgeAlpha extends AbstractForge {}
{
  createA in CyberConstructA1
  createB in NeonConstructB1
}

sig CorpForgeBeta extends AbstractForge {}
{
  createA in CyberConstructA2
  createB in NeonConstructB2
}

pred generate_constructs {}
run generate_constructs for 3

The Abstract Factory: Matrix of Creation

In the sprawling relational nets of Alloy, we do not instantiate objects—we forge constraints and define multiplicities. The Abstract Forge establishes a nexus of interrelated constructs. By relying on abstract sig, we declare our interfaces, whereas our concrete forges bind subsets of the cosmos to specific forms.

Runic Tags: #creational #factories #sigils