Class SimulatedVitalSignsMonitor
java.lang.Object
org.episteme.core.device.AbstractDevice
org.episteme.core.device.sim.AbstractSimulatedDevice
org.episteme.natural.device.sim.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:
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractDevice
AbstractDevice.RecordNested classes/interfaces inherited from interface Device
Device.Record, Device.Status -
Field Summary
Fields inherited from class AbstractSimulatedDevice
supportFields inherited from class AbstractDevice
accuracy, calibrationHistory, currentValue, displayUnit, firmware, history, identification, lastCalibration, locationDescription, manufacturer, maxRange, minRange, model, precisionDescription, resolution, sensitivity, status -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintGets the number of data channels provided by this monitor.double[]Gets the ECG (Electrocardiogram) waveform data.double[]Gets the SpO2 (Plethysmograph) waveform data.doubleGets the sample rate for waveforms.getValue()Returns the current primary value of the device (e.g. sensor reading).Gets the current vital signs readings.booleanChecks if the monitor is currently alarming.voidsetBaseHeartRate(int baseHeartRate) voidsetBaseSpO2(int baseSpO2) Methods inherited from class AbstractSimulatedDevice
addCustomReadings, close, connect, disconnect, getCapabilities, getDriverClass, getErrorCode, getFormattedInfo, getReadings, getStatus, getUptimeSeconds, isConnected, isPowerOn, setCapability, setDriverClass, setErrorCode, setPowerOnMethods inherited from class AbstractDevice
calibrate, getAccuracy, getCalibrationHistory, getDeviceStatus, getDisplayUnit, getFirmware, getHistory, getId, getLastCalibration, getLocationDescription, getManufacturer, getMaxRange, getMeasurableQuantities, getMinRange, getModel, getPrecisionDescription, getResolution, getSensitivity, getTrait, getTraitOptional, getTraits, isEnabled, measure, needsCalibration, performCalibration, recordMeasurement, setAccuracy, setCurrentValue, setDisplayUnit, setEnabled, setFirmware, setLastCalibration, setLocationDescription, setManufacturer, setMaxRange, setMinRange, setModel, setPrecisionDescription, setResolution, setSensitivity, setStatusMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AutoCloseable
closeMethods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, getTraits, setName, setTraitMethods inherited from interface Device
calibrate, calibrate, connect, disconnect, getAccuracy, getCalibrationHistory, getCapabilities, getDeviceStatus, getDisplayUnit, getFirmware, getHistory, getId, getLastCalibration, getLocationDescription, getManufacturer, getMaxRange, getMeasurableQuantities, getMinRange, getModel, getPrecisionDescription, getReadings, getResolution, getSensitivity, getStatus, isConnected, isEnabled, measure, needsCalibration, setDisplayUnit, setEnabled
-
Constructor Details
-
SimulatedVitalSignsMonitor
-
-
Method Details
-
getBaseHeartRate
public int getBaseHeartRate() -
setBaseHeartRate
public void setBaseHeartRate(int baseHeartRate) -
getBaseSpO2
public int getBaseSpO2() -
setBaseSpO2
public void setBaseSpO2(int baseSpO2) -
getVitalSigns
Description copied from interface:VitalSignsMonitorGets the current vital signs readings.- Specified by:
getVitalSignsin interfaceVitalSignsMonitor- Returns:
- current vital signs
-
getECGWaveform
public double[] getECGWaveform()Description copied from interface:VitalSignsMonitorGets the ECG (Electrocardiogram) waveform data.- Specified by:
getECGWaveformin interfaceVitalSignsMonitor- Returns:
- array of ECG amplitude values
-
getPlethWaveform
public double[] getPlethWaveform()Description copied from interface:VitalSignsMonitorGets the SpO2 (Plethysmograph) waveform data.- Specified by:
getPlethWaveformin interfaceVitalSignsMonitor- Returns:
- array of pleth amplitude values
-
getChannelCount
public int getChannelCount()Description copied from interface:VitalSignsMonitorGets the number of data channels provided by this monitor.- Specified by:
getChannelCountin interfaceVitalSignsMonitor- Returns:
- channel count
-
isAlarming
public boolean isAlarming()Description copied from interface:VitalSignsMonitorChecks if the monitor is currently alarming.- Specified by:
isAlarmingin interfaceVitalSignsMonitor- Returns:
- true if an alert condition is active
-
getSampleRate
public double getSampleRate()Description copied from interface:VitalSignsMonitorGets the sample rate for waveforms.- Specified by:
getSampleRatein interfaceVitalSignsMonitor- Returns:
- samples per second in Hz
-
getValue
-