Class SimulatedVitalSignsMonitor

All Implemented Interfaces:
Serializable, AutoCloseable, Device, Commented, ComprehensiveIdentification, Identified<Identification>, Named, VitalSignsMonitor

public class SimulatedVitalSignsMonitor extends AbstractSimulatedDevice implements VitalSignsMonitor
Simulated vital signs monitor producing realistic medical data.
See Also:
  • Constructor Details

    • SimulatedVitalSignsMonitor

      public SimulatedVitalSignsMonitor(Identification id)
  • Method Details

    • getBaseHeartRate

      public int getBaseHeartRate()
    • setBaseHeartRate

      public void setBaseHeartRate(int baseHeartRate)
    • getBaseSpO2

      public int getBaseSpO2()
    • setBaseSpO2

      public void setBaseSpO2(int baseSpO2)
    • getVitalSigns

      public VitalSigns getVitalSigns()
      Description copied from interface: VitalSignsMonitor
      Gets the current vital signs readings.
      Specified by:
      getVitalSigns in interface VitalSignsMonitor
      Returns:
      current vital signs
    • getECGWaveform

      public double[] getECGWaveform()
      Description copied from interface: VitalSignsMonitor
      Gets the ECG (Electrocardiogram) waveform data.
      Specified by:
      getECGWaveform in interface VitalSignsMonitor
      Returns:
      array of ECG amplitude values
    • getPlethWaveform

      public double[] getPlethWaveform()
      Description copied from interface: VitalSignsMonitor
      Gets the SpO2 (Plethysmograph) waveform data.
      Specified by:
      getPlethWaveform in interface VitalSignsMonitor
      Returns:
      array of pleth amplitude values
    • getChannelCount

      public int getChannelCount()
      Description copied from interface: VitalSignsMonitor
      Gets the number of data channels provided by this monitor.
      Specified by:
      getChannelCount in interface VitalSignsMonitor
      Returns:
      channel count
    • isAlarming

      public boolean isAlarming()
      Description copied from interface: VitalSignsMonitor
      Checks if the monitor is currently alarming.
      Specified by:
      isAlarming in interface VitalSignsMonitor
      Returns:
      true if an alert condition is active
    • getSampleRate

      public double getSampleRate()
      Description copied from interface: VitalSignsMonitor
      Gets the sample rate for waveforms.
      Specified by:
      getSampleRate in interface VitalSignsMonitor
      Returns:
      samples per second in Hz
    • getValue

      public Optional<Quantity<?>> getValue()
      Description copied from interface: Device
      Returns the current primary value of the device (e.g. sensor reading).
      Specified by:
      getValue in interface Device
      Overrides:
      getValue in class AbstractDevice
      Returns:
      the current value