Class QuattrocentoStreamInfo
Observable telemetry and status information for a Quattrocento streaming session. Bind directly to this object from a device card view.
Inherited Members
Namespace: MOSAIC.Components.Devices.Quattrocento
Assembly: MOSAIC.dll
Syntax
public sealed class QuattrocentoStreamInfo : ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging
Remarks
All properties are ObservablePropertyAttribute-backed and raise PropertyChanged automatically.
The reader thread updates these values; the UI thread observes them via data binding. Thread safety is handled through Interlocked operations in the block and periodic UI-thread marshalling.
Fields
_bioChannelCount
Number of bioelectrical (EMG/EEG) channels.
Declaration
[ObservableProperty]
private int _bioChannelCount
Field Value
| Type | Description |
|---|---|
| int |
_bufferUsage
Device internal buffer usage indicator (accessory ch 4). Values near zero signal the device buffer is nearly full — the PC must read faster.
Declaration
[ObservableProperty]
private int _bufferUsage
Field Value
| Type | Description |
|---|---|
| int |
_connectionStatus
Human-readable connection status string (e.g. "Disconnected", "Connected — 384 bio + 16 aux @ 10240 Hz").
Declaration
[ObservableProperty]
private string _connectionStatus
Field Value
| Type | Description |
|---|---|
| string |
_dataLoss
Transient flag — true when the most recent ramp check detected a gap. Resets to false on the next clean sample.
Declaration
[ObservableProperty]
private bool _dataLoss
Field Value
| Type | Description |
|---|---|
| bool |
_droppedSamples
Cumulative number of detected dropped samples (ramp counter gaps).
Declaration
[ObservableProperty]
private long _droppedSamples
Field Value
| Type | Description |
|---|---|
| long |
_framesPublished
Total matrix batches published since streaming started.
Declaration
[ObservableProperty]
private long _framesPublished
Field Value
| Type | Description |
|---|---|
| long |
_isConnected
Whether the device is currently connected over TCP.
Declaration
[ObservableProperty]
private bool _isConnected
Field Value
| Type | Description |
|---|---|
| bool |
_isStreaming
Whether the device is actively streaming data.
Declaration
[ObservableProperty]
private bool _isStreaming
Field Value
| Type | Description |
|---|---|
| bool |
_nominalRate
Nominal sample rate of the device in Hz (e.g. 10240).
Declaration
[ObservableProperty]
private int _nominalRate
Field Value
| Type | Description |
|---|---|
| int |
_samplesPerBatch
Number of samples per published matrix batch.
Declaration
[ObservableProperty]
private int _samplesPerBatch
Field Value
| Type | Description |
|---|---|
| int |
_samplesReceived
Total individual samples received since streaming started.
Declaration
[ObservableProperty]
private long _samplesReceived
Field Value
| Type | Description |
|---|---|
| long |
_signalChannelCount
Number of signal channels in the output matrix (bio + aux, excluding accessory).
Declaration
[ObservableProperty]
private int _signalChannelCount
Field Value
| Type | Description |
|---|---|
| int |
_totalChannels
Total channels per frame including accessory (e.g. 408).
Declaration
[ObservableProperty]
private int _totalChannels
Field Value
| Type | Description |
|---|---|
| int |
Properties
BioChannelCount
Number of bioelectrical (EMG/EEG) channels.
Declaration
[ExcludeFromCodeCoverage]
public int BioChannelCount { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
BufferUsage
Device internal buffer usage indicator (accessory ch 4). Values near zero signal the device buffer is nearly full — the PC must read faster.
Declaration
[ExcludeFromCodeCoverage]
public int BufferUsage { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
ConnectionStatus
Human-readable connection status string (e.g. "Disconnected", "Connected — 384 bio + 16 aux @ 10240 Hz").
Declaration
[ExcludeFromCodeCoverage]
public string ConnectionStatus { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
DataLoss
Transient flag — true when the most recent ramp check detected a gap. Resets to false on the next clean sample.
Declaration
[ExcludeFromCodeCoverage]
public bool DataLoss { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
DroppedSamples
Cumulative number of detected dropped samples (ramp counter gaps).
Declaration
[ExcludeFromCodeCoverage]
public long DroppedSamples { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
FramesPublished
Total matrix batches published since streaming started.
Declaration
[ExcludeFromCodeCoverage]
public long FramesPublished { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
IsConnected
Whether the device is currently connected over TCP.
Declaration
[ExcludeFromCodeCoverage]
public bool IsConnected { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsStreaming
Whether the device is actively streaming data.
Declaration
[ExcludeFromCodeCoverage]
public bool IsStreaming { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
NominalRate
Nominal sample rate of the device in Hz (e.g. 10240).
Declaration
[ExcludeFromCodeCoverage]
public int NominalRate { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
SamplesPerBatch
Number of samples per published matrix batch.
Declaration
[ExcludeFromCodeCoverage]
public int SamplesPerBatch { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
SamplesReceived
Total individual samples received since streaming started.
Declaration
[ExcludeFromCodeCoverage]
public long SamplesReceived { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
SignalChannelCount
Number of signal channels in the output matrix (bio + aux, excluding accessory).
Declaration
[ExcludeFromCodeCoverage]
public int SignalChannelCount { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
TotalChannels
Total channels per frame including accessory (e.g. 408).
Declaration
[ExcludeFromCodeCoverage]
public int TotalChannels { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
OnBioChannelCountChanged(int)
Executes the logic for when BioChannelCount just changed.
Declaration
private void OnBioChannelCountChanged(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 BioChannelCount is changed.
OnBioChannelCountChanged(int, int)
Executes the logic for when BioChannelCount just changed.
Declaration
private void OnBioChannelCountChanged(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 BioChannelCount is changed.
OnBioChannelCountChanging(int)
Executes the logic for when BioChannelCount is changing.
Declaration
private void OnBioChannelCountChanging(int value)
Parameters
| Type | Name | Description |
|---|---|---|
| int | value | The new property value being set. |
Remarks
This method is invoked right before the value of BioChannelCount is changed.
OnBioChannelCountChanging(int, int)
Executes the logic for when BioChannelCount is changing.
Declaration
private void OnBioChannelCountChanging(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 BioChannelCount is changed.
OnBufferUsageChanged(int)
Executes the logic for when BufferUsage just changed.
Declaration
private void OnBufferUsageChanged(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 BufferUsage is changed.
OnBufferUsageChanged(int, int)
Executes the logic for when BufferUsage just changed.
Declaration
private void OnBufferUsageChanged(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 BufferUsage is changed.
OnBufferUsageChanging(int)
Executes the logic for when BufferUsage is changing.
Declaration
private void OnBufferUsageChanging(int value)
Parameters
| Type | Name | Description |
|---|---|---|
| int | value | The new property value being set. |
Remarks
This method is invoked right before the value of BufferUsage is changed.
OnBufferUsageChanging(int, int)
Executes the logic for when BufferUsage is changing.
Declaration
private void OnBufferUsageChanging(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 BufferUsage is changed.
OnConnectionStatusChanged(string)
Executes the logic for when ConnectionStatus just changed.
Declaration
private void OnConnectionStatusChanged(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 ConnectionStatus is changed.
OnConnectionStatusChanged(string?, string)
Executes the logic for when ConnectionStatus just changed.
Declaration
private void OnConnectionStatusChanged(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 ConnectionStatus is changed.
OnConnectionStatusChanging(string)
Executes the logic for when ConnectionStatus is changing.
Declaration
private void OnConnectionStatusChanging(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | The new property value being set. |
Remarks
This method is invoked right before the value of ConnectionStatus is changed.
OnConnectionStatusChanging(string?, string)
Executes the logic for when ConnectionStatus is changing.
Declaration
private void OnConnectionStatusChanging(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 ConnectionStatus is changed.
OnDataLossChanged(bool)
Executes the logic for when DataLoss just changed.
Declaration
private void OnDataLossChanged(bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | value | The new property value that was set. |
Remarks
This method is invoked right after the value of DataLoss is changed.
OnDataLossChanged(bool, bool)
Executes the logic for when DataLoss just changed.
Declaration
private void OnDataLossChanged(bool oldValue, bool newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | oldValue | The previous property value that was replaced. |
| bool | newValue | The new property value that was set. |
Remarks
This method is invoked right after the value of DataLoss is changed.
OnDataLossChanging(bool)
Executes the logic for when DataLoss is changing.
Declaration
private void OnDataLossChanging(bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | value | The new property value being set. |
Remarks
This method is invoked right before the value of DataLoss is changed.
OnDataLossChanging(bool, bool)
Executes the logic for when DataLoss is changing.
Declaration
private void OnDataLossChanging(bool oldValue, bool newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | oldValue | The previous property value that is being replaced. |
| bool | newValue | The new property value being set. |
Remarks
This method is invoked right before the value of DataLoss is changed.
OnDroppedSamplesChanged(long)
Executes the logic for when DroppedSamples just changed.
Declaration
private void OnDroppedSamplesChanged(long value)
Parameters
| Type | Name | Description |
|---|---|---|
| long | value | The new property value that was set. |
Remarks
This method is invoked right after the value of DroppedSamples is changed.
OnDroppedSamplesChanged(long, long)
Executes the logic for when DroppedSamples just changed.
Declaration
private void OnDroppedSamplesChanged(long oldValue, long newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| long | oldValue | The previous property value that was replaced. |
| long | newValue | The new property value that was set. |
Remarks
This method is invoked right after the value of DroppedSamples is changed.
OnDroppedSamplesChanging(long)
Executes the logic for when DroppedSamples is changing.
Declaration
private void OnDroppedSamplesChanging(long value)
Parameters
| Type | Name | Description |
|---|---|---|
| long | value | The new property value being set. |
Remarks
This method is invoked right before the value of DroppedSamples is changed.
OnDroppedSamplesChanging(long, long)
Executes the logic for when DroppedSamples is changing.
Declaration
private void OnDroppedSamplesChanging(long oldValue, long newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| long | oldValue | The previous property value that is being replaced. |
| long | newValue | The new property value being set. |
Remarks
This method is invoked right before the value of DroppedSamples is changed.
OnFramesPublishedChanged(long)
Executes the logic for when FramesPublished just changed.
Declaration
private void OnFramesPublishedChanged(long value)
Parameters
| Type | Name | Description |
|---|---|---|
| long | value | The new property value that was set. |
Remarks
This method is invoked right after the value of FramesPublished is changed.
OnFramesPublishedChanged(long, long)
Executes the logic for when FramesPublished just changed.
Declaration
private void OnFramesPublishedChanged(long oldValue, long newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| long | oldValue | The previous property value that was replaced. |
| long | newValue | The new property value that was set. |
Remarks
This method is invoked right after the value of FramesPublished is changed.
OnFramesPublishedChanging(long)
Executes the logic for when FramesPublished is changing.
Declaration
private void OnFramesPublishedChanging(long value)
Parameters
| Type | Name | Description |
|---|---|---|
| long | value | The new property value being set. |
Remarks
This method is invoked right before the value of FramesPublished is changed.
OnFramesPublishedChanging(long, long)
Executes the logic for when FramesPublished is changing.
Declaration
private void OnFramesPublishedChanging(long oldValue, long newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| long | oldValue | The previous property value that is being replaced. |
| long | newValue | The new property value being set. |
Remarks
This method is invoked right before the value of FramesPublished is changed.
OnIsConnectedChanged(bool)
Executes the logic for when IsConnected just changed.
Declaration
private void OnIsConnectedChanged(bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | value | The new property value that was set. |
Remarks
This method is invoked right after the value of IsConnected is changed.
OnIsConnectedChanged(bool, bool)
Executes the logic for when IsConnected just changed.
Declaration
private void OnIsConnectedChanged(bool oldValue, bool newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | oldValue | The previous property value that was replaced. |
| bool | newValue | The new property value that was set. |
Remarks
This method is invoked right after the value of IsConnected is changed.
OnIsConnectedChanging(bool)
Executes the logic for when IsConnected is changing.
Declaration
private void OnIsConnectedChanging(bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | value | The new property value being set. |
Remarks
This method is invoked right before the value of IsConnected is changed.
OnIsConnectedChanging(bool, bool)
Executes the logic for when IsConnected is changing.
Declaration
private void OnIsConnectedChanging(bool oldValue, bool newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | oldValue | The previous property value that is being replaced. |
| bool | newValue | The new property value being set. |
Remarks
This method is invoked right before the value of IsConnected is changed.
OnIsStreamingChanged(bool)
Executes the logic for when IsStreaming just changed.
Declaration
private void OnIsStreamingChanged(bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | value | The new property value that was set. |
Remarks
This method is invoked right after the value of IsStreaming is changed.
OnIsStreamingChanged(bool, bool)
Executes the logic for when IsStreaming just changed.
Declaration
private void OnIsStreamingChanged(bool oldValue, bool newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | oldValue | The previous property value that was replaced. |
| bool | newValue | The new property value that was set. |
Remarks
This method is invoked right after the value of IsStreaming is changed.
OnIsStreamingChanging(bool)
Executes the logic for when IsStreaming is changing.
Declaration
private void OnIsStreamingChanging(bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | value | The new property value being set. |
Remarks
This method is invoked right before the value of IsStreaming is changed.
OnIsStreamingChanging(bool, bool)
Executes the logic for when IsStreaming is changing.
Declaration
private void OnIsStreamingChanging(bool oldValue, bool newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | oldValue | The previous property value that is being replaced. |
| bool | newValue | The new property value being set. |
Remarks
This method is invoked right before the value of IsStreaming is changed.
OnNominalRateChanged(int)
Executes the logic for when NominalRate just changed.
Declaration
private void OnNominalRateChanged(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 NominalRate is changed.
OnNominalRateChanged(int, int)
Executes the logic for when NominalRate just changed.
Declaration
private void OnNominalRateChanged(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 NominalRate is changed.
OnNominalRateChanging(int)
Executes the logic for when NominalRate is changing.
Declaration
private void OnNominalRateChanging(int value)
Parameters
| Type | Name | Description |
|---|---|---|
| int | value | The new property value being set. |
Remarks
This method is invoked right before the value of NominalRate is changed.
OnNominalRateChanging(int, int)
Executes the logic for when NominalRate is changing.
Declaration
private void OnNominalRateChanging(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 NominalRate is changed.
OnSamplesPerBatchChanged(int)
Executes the logic for when SamplesPerBatch just changed.
Declaration
private void OnSamplesPerBatchChanged(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 SamplesPerBatch is changed.
OnSamplesPerBatchChanged(int, int)
Executes the logic for when SamplesPerBatch just changed.
Declaration
private void OnSamplesPerBatchChanged(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 SamplesPerBatch is changed.
OnSamplesPerBatchChanging(int)
Executes the logic for when SamplesPerBatch is changing.
Declaration
private void OnSamplesPerBatchChanging(int value)
Parameters
| Type | Name | Description |
|---|---|---|
| int | value | The new property value being set. |
Remarks
This method is invoked right before the value of SamplesPerBatch is changed.
OnSamplesPerBatchChanging(int, int)
Executes the logic for when SamplesPerBatch is changing.
Declaration
private void OnSamplesPerBatchChanging(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 SamplesPerBatch is changed.
OnSamplesReceivedChanged(long)
Executes the logic for when SamplesReceived just changed.
Declaration
private void OnSamplesReceivedChanged(long value)
Parameters
| Type | Name | Description |
|---|---|---|
| long | value | The new property value that was set. |
Remarks
This method is invoked right after the value of SamplesReceived is changed.
OnSamplesReceivedChanged(long, long)
Executes the logic for when SamplesReceived just changed.
Declaration
private void OnSamplesReceivedChanged(long oldValue, long newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| long | oldValue | The previous property value that was replaced. |
| long | newValue | The new property value that was set. |
Remarks
This method is invoked right after the value of SamplesReceived is changed.
OnSamplesReceivedChanging(long)
Executes the logic for when SamplesReceived is changing.
Declaration
private void OnSamplesReceivedChanging(long value)
Parameters
| Type | Name | Description |
|---|---|---|
| long | value | The new property value being set. |
Remarks
This method is invoked right before the value of SamplesReceived is changed.
OnSamplesReceivedChanging(long, long)
Executes the logic for when SamplesReceived is changing.
Declaration
private void OnSamplesReceivedChanging(long oldValue, long newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| long | oldValue | The previous property value that is being replaced. |
| long | newValue | The new property value being set. |
Remarks
This method is invoked right before the value of SamplesReceived is changed.
OnSignalChannelCountChanged(int)
Executes the logic for when SignalChannelCount just changed.
Declaration
private void OnSignalChannelCountChanged(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 SignalChannelCount is changed.
OnSignalChannelCountChanged(int, int)
Executes the logic for when SignalChannelCount just changed.
Declaration
private void OnSignalChannelCountChanged(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 SignalChannelCount is changed.
OnSignalChannelCountChanging(int)
Executes the logic for when SignalChannelCount is changing.
Declaration
private void OnSignalChannelCountChanging(int value)
Parameters
| Type | Name | Description |
|---|---|---|
| int | value | The new property value being set. |
Remarks
This method is invoked right before the value of SignalChannelCount is changed.
OnSignalChannelCountChanging(int, int)
Executes the logic for when SignalChannelCount is changing.
Declaration
private void OnSignalChannelCountChanging(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 SignalChannelCount is changed.
OnTotalChannelsChanged(int)
Executes the logic for when TotalChannels just changed.
Declaration
private void OnTotalChannelsChanged(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 TotalChannels is changed.
OnTotalChannelsChanged(int, int)
Executes the logic for when TotalChannels just changed.
Declaration
private void OnTotalChannelsChanged(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 TotalChannels is changed.
OnTotalChannelsChanging(int)
Executes the logic for when TotalChannels is changing.
Declaration
private void OnTotalChannelsChanging(int value)
Parameters
| Type | Name | Description |
|---|---|---|
| int | value | The new property value being set. |
Remarks
This method is invoked right before the value of TotalChannels is changed.
OnTotalChannelsChanging(int, int)
Executes the logic for when TotalChannels is changing.
Declaration
private void OnTotalChannelsChanging(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 TotalChannels is changed.
ResetCounters()
Resets all streaming counters to zero. Called when a new streaming session begins.
Declaration
public void ResetCounters()