Table of Contents

Class RecordingActuator

Namespace
Pamoja.Sim
Assembly
Pamoja.Sim.dll

An actuator that records every command instead of acting on one.

public sealed class RecordingActuator : IDisposable
Inheritance
RecordingActuator
Implements
Inherited Members

Constructors

RecordingActuator()

Creates an actuator with nothing recorded yet.

public RecordingActuator()

Exceptions

PamojaException

The native actuator could not be created.

Properties

Commands

Gets the commands recorded so far, oldest first.

public float[] Commands { get; }

Property Value

float[]

Count

Gets how many commands have been recorded.

public int Count { get; }

Property Value

int

Methods

ApplyAsync(float)

Applies a command, which is recorded rather than acted on.

public Task ApplyAsync(float command)

Parameters

command float

The value commanded.

Returns

Task

Exceptions

PamojaException

The native call failed.

Dispose()

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

public void Dispose()