FirstModulAR 0.1.0
Loading...
Searching...
No Matches
FMAR.Comms.Vitals.VitalsObserver Class Reference

Observes and processes vital signs data from the Pulse engine. More...

Inheritance diagram for FMAR.Comms.Vitals.VitalsObserver:
OpenPulseDataConsumer PulseDataConsumer

Public Member Functions

VitalsObserver Init (PulseEngineDriver driver, int index, Action< float[], float[]> action)
 Initializes the VitalsObserver with the specified Pulse engine driver, data field index, and action to perform on data update.
 

Protected Member Functions

override void OpenUpdateFromPulse (DoubleList times, DoubleList values)
 Called when the Pulse engine updates the data. Processes the latest values and invokes the action with the updated data.
 
- Protected Member Functions inherited from OpenPulseDataConsumer
void OpenUpdateFromPulse (DoubleList times, DoubleList values)
 
- Protected Member Functions inherited from PulseDataConsumer
virtual void LateUpdate ()
 

Additional Inherited Members

- Public Attributes inherited from PulseDataConsumer
PulseDataSource source
 
int dataFieldIndex
 
- Package Functions inherited from OpenPulseDataConsumer
- Package Functions inherited from PulseDataConsumer

Detailed Description

Observes and processes vital signs data from the Pulse engine.

Member Function Documentation

◆ Init()

VitalsObserver FMAR.Comms.Vitals.VitalsObserver.Init ( PulseEngineDriver driver,
int index,
Action< float[], float[]> action )
inline

Initializes the VitalsObserver with the specified Pulse engine driver, data field index, and action to perform on data update.

Parameters
driverThe Pulse engine driver.
indexThe index of the data field to observe.
actionThe action to perform when data is updated.
Returns
The initialized VitalsObserver instance.

◆ OpenUpdateFromPulse()

override void FMAR.Comms.Vitals.VitalsObserver.OpenUpdateFromPulse ( DoubleList times,
DoubleList values )
inlineprotected

Called when the Pulse engine updates the data. Processes the latest values and invokes the action with the updated data.

Parameters
timesThe list of time points.
valuesThe list of values corresponding to the time points.

The documentation for this class was generated from the following file: