Class CrossCorrelationViewModel

A base class for objects of which the properties must be observable.

Inheritance
CrossCorrelationViewModel
Namespace: MOSAIC.ViewModels.SignalProcessing
Assembly: MOSAIC.dll
Syntax
public class CrossCorrelationViewModel : ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging, IDisposable

Constructors

CrossCorrelationViewModel(CrossCorrelation)

Declaration
public CrossCorrelationViewModel(CrossCorrelation block)
Parameters
Type Name Description
CrossCorrelation block

Fields

_block

Declaration
private readonly CrossCorrelation _block
Field Value
Type Description
CrossCorrelation

_blockStatus

Declaration
[ObservableProperty]
private BlockStatus _blockStatus
Field Value
Type Description
BlockStatus

_disposed

Declaration
private bool _disposed
Field Value
Type Description
bool

Properties

Block

Declaration
public CrossCorrelation Block { get; }
Property Value
Type Description
CrossCorrelation

BlockStatus

Declaration
[ExcludeFromCodeCoverage]
public BlockStatus BlockStatus { get; set; }
Property Value
Type Description
BlockStatus

BufferLen

Declaration
public int BufferLen { get; }
Property Value
Type Description
int

ChannelOptions

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

MaxLag

Declaration
public int MaxLag { get; }
Property Value
Type Description
int

Name

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

SelectedChannelOption1

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

SelectedChannelOption2

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

Methods

Dispose()

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

Declaration
public void Dispose()

OnBlockPropertyChanged(object?, PropertyChangedEventArgs)

Declaration
private void OnBlockPropertyChanged(object? sender, PropertyChangedEventArgs e)
Parameters
Type Name Description
object sender
PropertyChangedEventArgs e

OnBlockStatusChanged(BlockStatus)

Executes the logic for when BlockStatus just changed.

Declaration
private void OnBlockStatusChanged(BlockStatus value)
Parameters
Type Name Description
BlockStatus value

The new property value that was set.

Remarks

This method is invoked right after the value of BlockStatus is changed.

OnBlockStatusChanged(BlockStatus, BlockStatus)

Executes the logic for when BlockStatus just changed.

Declaration
private void OnBlockStatusChanged(BlockStatus oldValue, BlockStatus newValue)
Parameters
Type Name Description
BlockStatus oldValue

The previous property value that was replaced.

BlockStatus newValue

The new property value that was set.

Remarks

This method is invoked right after the value of BlockStatus is changed.

OnBlockStatusChanging(BlockStatus)

Executes the logic for when BlockStatus is changing.

Declaration
private void OnBlockStatusChanging(BlockStatus value)
Parameters
Type Name Description
BlockStatus value

The new property value being set.

Remarks

This method is invoked right before the value of BlockStatus is changed.

OnBlockStatusChanging(BlockStatus, BlockStatus)

Executes the logic for when BlockStatus is changing.

Declaration
private void OnBlockStatusChanging(BlockStatus oldValue, BlockStatus newValue)
Parameters
Type Name Description
BlockStatus oldValue

The previous property value that is being replaced.

BlockStatus newValue

The new property value being set.

Remarks

This method is invoked right before the value of BlockStatus is changed.

Implements

INotifyPropertyChanged
INotifyPropertyChanging
IDisposable

Search documentation

Start typing to search the documentation.