#include <PulseEngineJNI.h>

Inherits LoggerForward, SEAdvanceHandler, and SEEventHandler.

Public Member Functions

 PulseEngineJNI (const std::string &logFile)
 
 ~PulseEngineJNI ()
 
void Reset ()
 
void ForwardDebug (const std::string &msg, const std::string &origin)
 
void ForwardInfo (const std::string &msg, const std::string &origin)
 
void ForwardWarning (const std::string &msg, const std::string &origin)
 
void ForwardError (const std::string &msg, const std::string &origin)
 
void ForwardFatal (const std::string &msg, const std::string &origin)
 
void PushData (double time_s)
 
void OnAdvance (double time_s, const PhysiologyEngine &engine)
 
void HandlePatientEvent (ePatient_Event type, bool active, const SEScalarTime *time=nullptr)
 
void HandleAnesthesiaMachineEvent (eAnesthesiaMachine_Event type, bool active, const SEScalarTime *time=nullptr)
 
- Public Member Functions inherited from SEAdvanceHandler
 SEAdvanceHandler ()
 
 SEAdvanceHandler (bool on_stabilization)
 
virtual ~SEAdvanceHandler ()
 
bool OnForStabilization ()
 
virtual void SetStabilizationCallback (bool b)
 
- Public Member Functions inherited from SEEventHandler
 SEEventHandler ()
 
virtual ~SEEventHandler ()
 

Public Attributes

JNIEnv * jniEnv
 
jobject jniObj
 
DataTracktrk
 
PulseScenarioExecexec
 
bool firstUpdate
 
int update_cnt
 
int updateFrequency_cnt
 
std::unique_ptr< PulseEngineeng
 
jmethodID jniDebugMethodID
 
jmethodID jniInfoMethodID
 
jmethodID jniWarnMethodID
 
jmethodID jniErrorMethodID
 
jmethodID jniFatalMethodID
 

Additional Inherited Members

- Protected Attributes inherited from SEAdvanceHandler
bool m_OnStabilization
 

Constructor & Destructor Documentation

◆ PulseEngineJNI()

PulseEngineJNI::PulseEngineJNI ( const std::string &  logFile)

◆ ~PulseEngineJNI()

PulseEngineJNI::~PulseEngineJNI ( )

Member Function Documentation

◆ ForwardDebug()

void PulseEngineJNI::ForwardDebug ( const std::string &  msg,
const std::string &  origin 
)
virtual

Reimplemented from LoggerForward.

◆ ForwardError()

void PulseEngineJNI::ForwardError ( const std::string &  msg,
const std::string &  origin 
)
virtual

Reimplemented from LoggerForward.

◆ ForwardFatal()

void PulseEngineJNI::ForwardFatal ( const std::string &  msg,
const std::string &  origin 
)
virtual

Reimplemented from LoggerForward.

◆ ForwardInfo()

void PulseEngineJNI::ForwardInfo ( const std::string &  msg,
const std::string &  origin 
)
virtual

Reimplemented from LoggerForward.

◆ ForwardWarning()

void PulseEngineJNI::ForwardWarning ( const std::string &  msg,
const std::string &  origin 
)
virtual

Reimplemented from LoggerForward.

◆ HandleAnesthesiaMachineEvent()

void PulseEngineJNI::HandleAnesthesiaMachineEvent ( eAnesthesiaMachine_Event  type,
bool  active,
const SEScalarTime time = nullptr 
)
virtual

Implements SEEventHandler.

◆ HandlePatientEvent()

void PulseEngineJNI::HandlePatientEvent ( ePatient_Event  type,
bool  active,
const SEScalarTime time = nullptr 
)
virtual

Implements SEEventHandler.

◆ OnAdvance()

void PulseEngineJNI::OnAdvance ( double  time_s,
const PhysiologyEngine engine 
)
virtual

Implements SEAdvanceHandler.

◆ PushData()

void PulseEngineJNI::PushData ( double  time_s)

◆ Reset()

void PulseEngineJNI::Reset ( )

Member Data Documentation

◆ eng

std::unique_ptr<PulseEngine> PulseEngineJNI::eng

◆ exec

PulseScenarioExec* PulseEngineJNI::exec

◆ firstUpdate

bool PulseEngineJNI::firstUpdate

◆ jniDebugMethodID

jmethodID PulseEngineJNI::jniDebugMethodID

◆ jniEnv

JNIEnv* PulseEngineJNI::jniEnv

◆ jniErrorMethodID

jmethodID PulseEngineJNI::jniErrorMethodID

◆ jniFatalMethodID

jmethodID PulseEngineJNI::jniFatalMethodID

◆ jniInfoMethodID

jmethodID PulseEngineJNI::jniInfoMethodID

◆ jniObj

jobject PulseEngineJNI::jniObj

◆ jniWarnMethodID

jmethodID PulseEngineJNI::jniWarnMethodID

◆ trk

DataTrack* PulseEngineJNI::trk

◆ update_cnt

int PulseEngineJNI::update_cnt

◆ updateFrequency_cnt

int PulseEngineJNI::updateFrequency_cnt