FlowInstructionMixin<C extends Cell, I extends Pulse, O extends Pulse> mixin
Synthesizes a Materialization Engine—a specialized mixin designed to bridge stateless instructions with live reactive topographies.
FlowInstructionMixin provides the essential machinery required to transform a FlowInstruction blueprint into a functional FlowHandle. It orchestrates the creation of the underlying Nucleus and Receptor, anchoring the instruction's logic to a concrete Cell within the graph.
When to use
- Custom Orchestrators: When defining new instruction subtypes that
must support fluent composition via the
+operator. - Materialization Logic: When the standard behavior for binding an instruction to a source cell needs to be inherited by a specialized gate.
How it works
- Receptor Synthesis: The mixin wraps the instruction logic in a high-efficiency Receptor.
- Nucleus Anchoring: It initializes a Nucleus to manage the lifecycle, synapses, and integrity rules of the new node.
- Handle Generation: It produces a FlowHandle record, exposing methods for both synchronous and asynchronous stimulus ingress.
Non‑obvious
- Composition Logic: This mixin provides the concrete implementation
for the
+operator, enabling the serial chaining of instructions into a single evolution pipeline. - Lock Integration: It automatically detects if the underlying nucleus requires a Conactive Lock for serialized execution.
See Also
- FlowInstruction: The abstract blueprint for reactive logic.
- FlowHandle: The materialized interface for topographical ingress.
- Superclass constraints
- Instruction<
C, I, O>
- Instruction<
- Mixin applications
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
call(
I pulse, {C? cell, void future({required Pulse? result, required dynamic token})?, dynamic token}) → O? -
Executes the transformation logic of this instruction synchronously.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toHandle(
{Cell? source, TestCell< Cell> testRule = TestCell.allowAll, Synapses<Pulse, Cell> synapses = Synapses.enabled}) → FlowHandle - Materializes the blueprint into a live Topographical Gateway.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator +(
covariant FlowInstruction< Cell, Pulse, Pulse> other) → FlowInstruction<C, I, O> -
Combines this instruction with another to create an InstructionChain.
override
-
operator ==(
Object other) → bool -
The equality operator.
inherited