TaggedReplayBufferImage<DataType extends Object> class

A replay-buffer image with payload and scheduling sidecars explicit.

Payloads and reasons are retained independently from occupancy, eligibility, and backoff state. Unoccupied entries may contain stale or omitted payloads, but every occupied tag must have both payload and reason state.

Constructors

TaggedReplayBufferImage({required Iterable<DataType?> payloads, required Iterable<int?> reasons, required Iterable<int> occupiedTags, required Iterable<int> eligibleTags, required Iterable<int> backoffRemaining})
Creates an explicit replay payload and sidecar image.

Properties

backoffRemaining → List<int>
Remaining backoff cycles at each tag.
final
capacity → int
Number of addressable replay tags.
no setter
eligibleTags → Set<int>
Occupied tags currently eligible for selection.
final
hashCode → int
The hash code for this object.
no setterinherited
occupancy → int
Number of retained replay entries.
no setter
occupiedTags → Set<int>
Tags with retained replay payloads.
final
payloads → List<DataType?>
Payload value at each replay tag.
final
reasons → List<int?>
Replay reason at each tag.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson(StateValueEncoder<DataType> encodeData) → Map<String, Object?>
Encodes payload and scheduling sidecars independently.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson<DataType extends Object>(Map<String, Object?> json, StateValueDecoder<DataType> decodeData) → TaggedReplayBufferImage<DataType>
Decodes an explicit replay payload and sidecar image.

Constants

kind → const String
Stable schema identifier.
version → const int
Current schema version.