Table of Contents

Class Replay

Namespace
Pamoja.Sim
Assembly
Pamoja.Sim.dll

A sensor that reads back a recorded series.

public sealed class Replay : IDisposable
Inheritance
Replay
Implements
Inherited Members

Remarks

This is how a caller replays a real capture, so a test asks what the code does with readings that actually happened rather than ones it invented.

Constructors

Replay(ReadOnlySpan<float>, bool)

Creates a replay over a recorded series.

public Replay(ReadOnlySpan<float> readings, bool repeating = false)

Parameters

readings ReadOnlySpan<float>

The series to read back.

repeating bool

Start again at the beginning once exhausted, rather than holding the last reading.

Exceptions

PamojaException

The native replay could not be created.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

ReadAsync()

Takes the next reading.

public Task<float> ReadAsync()

Returns

Task<float>

The reading.

Exceptions

PamojaException

The native call failed.