Commit 9ffde3e4 authored by fmg005's avatar fmg005

Added a couple of helper methods to the class

parent 02a9fe72
......@@ -3,6 +3,18 @@
my_serial, CLA::LOGGER* logger):m_serial(my_serial), m_logger(logger) {
respondToData = &HardwareSimulator::SetInitalIBP;
void HardwareSimulator::update(std::unique_ptr<PhysiologyEngine>& engine) {
//((this)->*respondToData)(systolic_pressure, diastolic_pressure);
void SetInitalIBP(double syst, double diast){
void updateIBP(double syst, double diast){
......@@ -8,6 +8,8 @@
#include "serial/serial.h"
#include "CLA_Logger.h"
#include "PulsePhysiologyEngine.h"
using namespace std;
......@@ -18,8 +20,11 @@ private:
void Clear();
size_t SendCommand(string);
string GetResponse();
double systolic_pressure;
double diastolic_pressure;
CLA::LOGGER* m_logger;
string mode;
HardwareSimulator(serial::Serial*, CLA::LOGGER*);
......@@ -30,7 +35,11 @@ public:
void SetIBP(int, double, double);
void SetRemoteMode();
void SetLocalMode();
string GetCurrentMode();
string GetCurrentMode();
void SetInitalIBP(double, double);
void updateIBP(double, double);
void (HardwareSimulator::*respondToData)(double, double);
void update(std::unique_ptr<PhysiologyEngine>&);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment