Skip to content

ScalarReadablePort

export interface ScalarReadablePort extends SnapshotPort {
readonly scalar: number; // unbounded continuous
}

A port providing an unbounded continuous numeric value.

PropertyDescription
scalarAn unbounded continuous value

Must inherit from SnapshotPort. When snapshot() is called, the port must capture the value at that moment and maintain it internally, ensuring that scalar does not change until the next snapshot().