TaggedReplayBufferModel<DataType extends Object> class

Software model of replay payloads and scheduling sidecars.

The model keeps occupancy, eligibility, and backoff state independent from payload storage and exposes the same logical image used for snapshot and restore.

Mixed-in types

Constructors

TaggedReplayBufferModel({required int tagCount, int backoffCycles = 0})
Creates an empty replay buffer model.

Properties

capabilities → StateTransactionCapabilities
Static software transaction behavior.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
image → TaggedReplayBufferImage<DataType>
Current replay payload and scheduling-sidecar image.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stateTransactions → StateTransactionEndpoint<TaggedReplayBufferImage<DataType>>
This model's software transaction endpoint.
no setterinherited

Methods

cancel(int tag) → bool
Cancels a retained replay and reports whether one existed.
load(covariant TaggedReplayBufferImage<DataType> image) → void
Restores a validated payload and scheduling-sidecar image.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
offer(int tag, DataType data, int reason) → bool
Offers a replay when its tag is not already occupied.
reset() → void
Clears all payload and scheduling state.
select(int tag) → TaggedReplayModelEntry<DataType>?
Accepts and removes an eligible replay, or returns null.
tick() → void
Advances one clock cycle of backoff scheduling.
toString() → String
A string representation of this object.
inherited
transact(StateTransactionRequest<TaggedReplayBufferImage<DataType>> request, {bool quiescent = false}) → StateTransactionCompletion<TaggedReplayBufferImage<DataType>>
Accepts a request and returns its completion.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited