πŸ—Ό EIFFEL CONTRACT DIFFICULTY: Archmage Behavioral

The Visitor Astral Projection

Walking a tree of elements to perform operations externally.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Visitor
ARCANUM SCHOOL: Necromancy // Soul-Walking
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// EIFFEL PATTERN //
deferred class
    ASTRAL_VISITOR

feature
    visit_fire_node (f: FIRE_NODE)
        deferred
        end

    visit_ice_node (i: ICE_NODE)
        deferred
        end
end

deferred class
    ELEMENT_NODE

feature
    accept (v: ASTRAL_VISITOR)
        deferred
        end
end

The Astral Visitor projects itself through the nodes of an elemental matrix, extracting or altering data without tainting the original node’s structure.

Runic Tags: #behavioral #visitor #eiffel