Class ControlAlgorithmViewModel

ViewModel for ControlAlgorithm block.

Inheritance
ControlAlgorithmViewModel
Namespace: MOSAIC.ViewModels
Assembly: MOSAIC.dll
Syntax
public class ControlAlgorithmViewModel : ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging

Constructors

ControlAlgorithmViewModel(ControlAlgorithm)

Declaration
public ControlAlgorithmViewModel(ControlAlgorithm model)
Parameters
Type Name Description
ControlAlgorithm model

Fields

_model

Declaration
private readonly ControlAlgorithm _model
Field Value
Type Description
ControlAlgorithm

resetCommand

The backing field for ResetCommand.

Declaration
private RelayCommand? resetCommand
Field Value
Type Description
RelayCommand

Properties

AlgorithmDescription

Declaration
public string AlgorithmDescription { get; }
Property Value
Type Description
string

AvailableAlgorithms

Declaration
public IReadOnlyList<string> AvailableAlgorithms { get; }
Property Value
Type Description
IReadOnlyList<string>

FingerDeadband

Finger deadband [0..1]. Values below this threshold produce 0 actuation. Only meaningful when DLControl is active.

Declaration
public double FingerDeadband { get; set; }
Property Value
Type Description
double

FrequencyText

Declaration
public string FrequencyText { get; }
Property Value
Type Description
string

IsDLControl

True when the active strategy is DLControlStrategy. Used by the CardView to show/hide DL-specific controls.

Declaration
public bool IsDLControl { get; }
Property Value
Type Description
bool

ResetCommand

Gets an IRelayCommand instance wrapping Reset().

Declaration
[ExcludeFromCodeCoverage]
public IRelayCommand ResetCommand { get; }
Property Value
Type Description
IRelayCommand

SelectedAlgorithm

Declaration
public string SelectedAlgorithm { get; set; }
Property Value
Type Description
string

WristDeadband

Wrist deadband [0..1]. Absolute bipolar values below this snap to neutral. Only meaningful when DLControl is active.

Declaration
public double WristDeadband { get; set; }
Property Value
Type Description
double

Methods

Reset()

Declaration
[RelayCommand]
private void Reset()

Implements

INotifyPropertyChanged
INotifyPropertyChanging

Search documentation

Start typing to search the documentation.