The Abstract Factory: Scrying Multiple Dimensions
Conjuring families of divination matrices in the R arcane syntax.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Abstract Factory
ARCANUM SCHOOL: Divination // Matrix Haruspex
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// R PATTERN //
library(R6)
# Abstract Products
DivinationMatrix <- R6Class("DivinationMatrix",
public = list(
scry = function() stop("Not implemented")
)
)
AstrologicalVector <- R6Class("AstrologicalVector",
public = list(
align = function() stop("Not implemented")
)
)
# Concrete Products
TarotMatrix <- R6Class("TarotMatrix", inherit = DivinationMatrix,
public = list(
scry = function() "Scrying through the Tarot matrices..."
)
)
TarotVector <- R6Class("TarotVector", inherit = AstrologicalVector,
public = list(
align = function() "Aligning the major arcana vectors."
)
)
RuneMatrix <- R6Class("RuneMatrix", inherit = DivinationMatrix,
public = list(
scry = function() "Casting the elder runes through the grid..."
)
)
RuneVector <- R6Class("RuneVector", inherit = AstrologicalVector,
public = list(
align = function() "Aligning runic ley lines."
)
)
# Abstract Factory
HaruspexFactory <- R6Class("HaruspexFactory",
public = list(
create_matrix = function() stop("Not implemented"),
create_vector = function() stop("Not implemented")
)
)
# Concrete Factories
TarotFactory <- R6Class("TarotFactory", inherit = HaruspexFactory,
public = list(
create_matrix = function() TarotMatrix$new(),
create_vector = function() TarotVector$new()
)
)
RuneFactory <- R6Class("RuneFactory", inherit = HaruspexFactory,
public = list(
create_matrix = function() RuneMatrix$new(),
create_vector = function() RuneVector$new()
)
)
The Data Haruspex uses the Abstract Factory to generate entire families of divination matrices and alignment vectors, ensuring compatibility across different scrying schools.
Runic Tags:
#R6
#Divination
#Creational
#Abstract Factory