WorkspaceManager class
Manages the Global Workspace — the central broadcast medium.
Key constraints (mirroring cognitive science findings):
- Capacity limited to capacity concepts (default 7 ± 2, Miller 1956).
- Concepts decay in activation if not reinforced.
- The most salient concept always wins the "spotlight".
Constructors
- WorkspaceManager({int capacity = 7, double decayRate = 0.05, ConsciousnessLogger? logger})
Properties
-
activationSnapshot
→ Map<
String, double> -
Returns a snapshot map: conceptId → activation level.
no setter
- capacity → int
-
Maximum number of concepts held simultaneously (Miller's 7 ± 2).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFull → bool
-
True if the workspace is at maximum capacity.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int
-
Number of concepts currently in the workspace.
no setter
Methods
-
broadcast(
Concept concept) → void -
Broadcasts a
conceptinto the global workspace. -
clear(
) → void - Clears the entire workspace (global reset).
-
computeCoherence(
) → double - Computes the overall coherence of the current workspace.
-
computeInteractions(
) → Map< String, double> - Computes pairwise interaction strengths between active concepts.
-
contains(
String conceptId) → bool - Whether the workspace contains a concept with the given ID.
-
getActiveWorkspace(
) → List< Concept> - Returns the currently active concepts, sorted by salience descending.
-
getSpotlightFocus(
) → Concept? - Returns the concept with the highest salience — the "spotlight" focus.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
suppress(
String conceptId) → void - Suppresses and removes a concept from the workspace.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited