TrajectoryWriter class

Serializes typed trajectory records to JSONL via a TrajectorySink.

PRD §14 requires per-record recovery: every write is followed by flush() so a crashed session preserves progress through the last fully-written record. close() always emits the footer (even on harness_error) and is idempotent; the loop driver wraps its outermost try/finally around close().

Constructors

TrajectoryWriter(TrajectorySink _sink)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close(SessionFooter footer) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
writeExtensionDisabled(ExtensionDisabledEvent e) Future<void>
writeHeader(SessionHeader h) Future<void>
writeTurn(TurnRecord t) Future<void>

Operators

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