Class DlrAdcBtInfo

Observable status model for the DlrAdcBt block.

Inheritance
DlrAdcBtInfo
Namespace: MOSAIC.Models.Devices
Assembly: MOSAIC.dll
Syntax
public class DlrAdcBtInfo : ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging

Fields

_flag

Current status flag (e.g. "Streaming", "Overflow", "Disconnected").

Declaration
[ObservableProperty]
private string _flag
Field Value
Type Description
string

_frameErrors

Running count of parser faults (overflow, missing start marker, bad length, bad trailer).

Declaration
[ObservableProperty]
private int _frameErrors
Field Value
Type Description
int
Remarks

Flag is overwritten on every decoded frame, so an error state survives roughly one tick and a UI poll almost never observes it. This counter is monotonic, so a poll can compare it against its previous reading.

_framesProcessed

Running count of frames successfully decoded.

Declaration
[ObservableProperty]
private int _framesProcessed
Field Value
Type Description
int

Properties

Flag

Current status flag (e.g. "Streaming", "Overflow", "Disconnected").

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

FrameErrors

Running count of parser faults (overflow, missing start marker, bad length, bad trailer).

Declaration
[ExcludeFromCodeCoverage]
public int FrameErrors { get; set; }
Property Value
Type Description
int
Remarks

Flag is overwritten on every decoded frame, so an error state survives roughly one tick and a UI poll almost never observes it. This counter is monotonic, so a poll can compare it against its previous reading.

FramesProcessed

Running count of frames successfully decoded.

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

Methods

OnFlagChanged(string)

Executes the logic for when Flag just changed.

Declaration
private void OnFlagChanged(string value)
Parameters
Type Name Description
string value

The new property value that was set.

Remarks

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

OnFlagChanged(string?, string)

Executes the logic for when Flag just changed.

Declaration
private void OnFlagChanged(string? oldValue, string newValue)
Parameters
Type Name Description
string oldValue

The previous property value that was replaced.

string newValue

The new property value that was set.

Remarks

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

OnFlagChanging(string)

Executes the logic for when Flag is changing.

Declaration
private void OnFlagChanging(string value)
Parameters
Type Name Description
string value

The new property value being set.

Remarks

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

OnFlagChanging(string?, string)

Executes the logic for when Flag is changing.

Declaration
private void OnFlagChanging(string? oldValue, string newValue)
Parameters
Type Name Description
string oldValue

The previous property value that is being replaced.

string newValue

The new property value being set.

Remarks

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

OnFrameErrorsChanged(int)

Executes the logic for when FrameErrors just changed.

Declaration
private void OnFrameErrorsChanged(int value)
Parameters
Type Name Description
int value

The new property value that was set.

Remarks

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

OnFrameErrorsChanged(int, int)

Executes the logic for when FrameErrors just changed.

Declaration
private void OnFrameErrorsChanged(int oldValue, int newValue)
Parameters
Type Name Description
int oldValue

The previous property value that was replaced.

int newValue

The new property value that was set.

Remarks

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

OnFrameErrorsChanging(int)

Executes the logic for when FrameErrors is changing.

Declaration
private void OnFrameErrorsChanging(int value)
Parameters
Type Name Description
int value

The new property value being set.

Remarks

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

OnFrameErrorsChanging(int, int)

Executes the logic for when FrameErrors is changing.

Declaration
private void OnFrameErrorsChanging(int oldValue, int newValue)
Parameters
Type Name Description
int oldValue

The previous property value that is being replaced.

int newValue

The new property value being set.

Remarks

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

OnFramesProcessedChanged(int)

Executes the logic for when FramesProcessed just changed.

Declaration
private void OnFramesProcessedChanged(int value)
Parameters
Type Name Description
int value

The new property value that was set.

Remarks

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

OnFramesProcessedChanged(int, int)

Executes the logic for when FramesProcessed just changed.

Declaration
private void OnFramesProcessedChanged(int oldValue, int newValue)
Parameters
Type Name Description
int oldValue

The previous property value that was replaced.

int newValue

The new property value that was set.

Remarks

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

OnFramesProcessedChanging(int)

Executes the logic for when FramesProcessed is changing.

Declaration
private void OnFramesProcessedChanging(int value)
Parameters
Type Name Description
int value

The new property value being set.

Remarks

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

OnFramesProcessedChanging(int, int)

Executes the logic for when FramesProcessed is changing.

Declaration
private void OnFramesProcessedChanging(int oldValue, int newValue)
Parameters
Type Name Description
int oldValue

The previous property value that is being replaced.

int newValue

The new property value being set.

Remarks

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

Implements

INotifyPropertyChanged
INotifyPropertyChanging

Search documentation

Start typing to search the documentation.