TaggedStateTableModel<DataType extends Object> class
Independent software model of direct-index tagged state.
applyCycle reproduces CombinationalTaggedStateTable's range checks, overwrite reporting, double-release reporting, and same-tag collision policy. The model stores only logical allocated payloads and applies equally to flop-backed and synchronous-memory-backed hardware.
- Mixed-in types
Constructors
- TaggedStateTableModel({required int capacity, TaggedStateCollisionPolicy collisionPolicy = TaggedStateCollisionPolicy.writeWins})
- Creates an empty tagged-state model.
Properties
- allocatedCount → int
-
Number of allocated entries.
no setter
- capabilities → StateTransactionCapabilities
-
Static software transaction behavior.
no setterinherited
- capacity → int
-
Number of addressable transaction tags.
final
- collisionPolicy → TaggedStateCollisionPolicy
-
Same-tag write/release behavior.
final
- empty → bool
-
Whether no entries are allocated.
no setter
- full → bool
-
Whether every entry is allocated.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
image
→ TaggedStateTableImage<
DataType> -
Current immutable logical image.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stateTransactions
→ StateTransactionEndpoint<
TaggedStateTableImage< DataType> > -
This model's software transaction endpoint.
no setterinherited
Methods
-
applyCycle(
{TaggedStateModelWrite< DataType> ? write, int? releaseTag}) → TaggedStateModelCycleResult - Applies one hardware-equivalent cycle of optional write and release.
-
load(
covariant TaggedStateTableImage< DataType> image) → void -
Replaces model state from a compatible logical image.
override
-
lookup(
int tag) → DataType? -
Returns the payload at
tag, ornullfor invalid or unallocated tags. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void - Clears all logical allocations.
-
toString(
) → String -
A string representation of this object.
inherited
-
transact(
StateTransactionRequest< TaggedStateTableImage< request, {bool quiescent = false}) → StateTransactionCompletion<DataType> >TaggedStateTableImage< DataType> > -
Accepts a request and returns its completion.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited