OpenCell<C extends Cell, L extends Cell, I extends Signal, O extends Signal> class
abstract
interface
An extended Cell with open receptor and linking capabilities for enhanced reactivity.
This specialized cell type provides:
- Direct access to signal reception through receptor
- Explicit link management via link/unlink
- Additional mutability points for framework extensions
Key Differences from Base Cell:
- Open Reception: Public
receptor
method for direct signal processing - Explicit Linking: Managed link operations appear in modifiable set
- Framework Use: Designed for internal framework extensions
Example Usage:
final openCell = OpenCell<MyCell, MyLink, InputSig, OutputSig>(
receptor: Receptor(({cell, signal}) => transform(signal)),
bind: parentCell,
synapses: Synapses([existingLinks])
);
// Direct signal processing:
final result = openCell.receptor(inputSignal);
// Managed linking:
openCell.link(otherCell);
Type Parameters:
C
: The concrete cell typeL
: The type of linkable cellsI
: Input signal typeO
: Output signal type
- Implemented types
- Implementers
Constructors
Properties
-
async
→ OpenCellAsync<
C, L, I, O> -
Provides asynchronous access to this cell's operations.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
-
modifiable
→ Iterable<
Function> -
Returns an iterable containing modifiable functions.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
test
→ TestObject<
Cell> -
Gets the test object associated with the cell.
no setterinherited
- unmodifiable → Cell
-
Creates an unmodifiable view of this cell.
no setterinherited
Methods
-
apply(
Function function, List? positionalArguments, [Map< Symbol, dynamic> ? namedArguments]) → dynamic -
Applies a function with controlled validation.
inherited
-
deputy(
{covariant TestObject< Cell> ? test, covariant MapObject? mapObject}) → OpenCell<C, L, I, O> -
Creates an deputy (view) of this open cell with modified validation.
override
-
link(
L cell) → bool - Links another cell to this one
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
receptor(
I signal) → dynamic - Processes an incoming signal
-
toString(
) → String -
A string representation of this object.
inherited
-
unlink(
L cell) → bool - Unlinks a previously linked cell
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited