#include <PhysiologyEngine.h>

Public Member Functions | |
virtual | ~PhysiologyEngine () |
virtual bool | LoadState (const char *file, const SEScalarTime *simTime=nullptr)=0 |
Reset engine and set it to the state in the provided file. You may provided a Simulation Time to be used if desired. It will be reflected in the GetSimulationTime method. Return value indicates engine was able to load provided state file. Engine will be in a cleared state if this method fails.More... | |
virtual bool | LoadState (const std::string &file, const SEScalarTime *simTime=nullptr)=0 |
virtual bool | LoadState (const CDM::PhysiologyEngineStateData &state, const SEScalarTime *simTime=nullptr)=0 |
Reset engine and set it to the state in the provided file. You may provided a Simulation Time to be used if desired. It will be reflected in the GetSimulationTime method. Return value indicates engine was able to load provided state file. Engine will be in a cleared state if this method fails.More... | |
virtual std::unique_ptr< CDM::PhysiologyEngineStateData > | SaveState (const char *file="")=0 |
Save the current state of the engine. State will be written to a file if provided. State object will be returned. Engine will be in a cleared state if this method fails.More... | |
virtual std::unique_ptr< CDM::PhysiologyEngineStateData > | SaveState (const std::string &file="")=0 |
virtual bool | InitializeEngine (const char *patientFile, const std::vector< const SECondition * > *conditions=nullptr, const PhysiologyEngineConfiguration *config=nullptr)=0 |
locates the xml patient file and reads in the values. More... | |
virtual bool | InitializeEngine (const std::string &patientFile, const std::vector< const SECondition * > *conditions=nullptr, const PhysiologyEngineConfiguration *config=nullptr)=0 |
virtual bool | InitializeEngine (const SEPatient &patient, const std::vector< const SECondition * > *conditions=nullptr, const PhysiologyEngineConfiguration *config=nullptr)=0 |
This will create an engine that you can send instructions (patient,actions,conditions) to dynamically. The return value will indicate success failure of the creation of the engine. Some combinations of patients and conditions may prevent the engine from stabilizing. More... | |
virtual Logger * | GetLogger ()=0 |
Retrieve the Logger associated with this engineMore... | |
virtual PhysiologyEngineTrack * | GetEngineTrack ()=0 |
Retrieve the PhysiologyEngineTrack associated with tracking data from this engine to a fileMore... | |
virtual const PhysiologyEngineConfiguration * | GetConfiguration ()=0 |
returns the engine configuration.More... | |
virtual double | GetTimeStep (const TimeUnit &unit)=0 |
returns the engine time step that is used when advancing time. More... | |
virtual double | GetSimulationTime (const TimeUnit &unit)=0 |
returns the current time of the simulation.More... | |
virtual void | AdvanceModelTime (bool appendDataTrack=false)=0 |
executes one pass through the time loop of the engine at the fixed timestep More... | |
virtual void | AdvanceModelTime (double time, const TimeUnit &unit=TimeUnit::s, bool appendDataTrack=false)=0 |
executes time loop of the engine beginning at the current time and running for the duration specified in the call at the fixed timestep More... | |
virtual bool | ProcessAction (const SEAction &action)=0 |
Execute the provided action. true will be returned if the engine supports the action false will be returned if the engine does not support the action. More... | |
virtual SESubstanceManager & | GetSubstanceManager ()=0 |
Retrieves the associated substance manager. More... | |
virtual void | SetEventHandler (SEEventHandler *handler)=0 |
Add a callback object that will be called whenever a pateint or anesthesia machine event changes stateMore... | |
virtual const SEPatient & | GetPatient ()=0 |
Returns the patient object used by the engine. More... | |
virtual bool | GetPatientAssessment (SEPatientAssessment &assessment)=0 |
Determines the assessment type and fills the data object with current data. More... | |
virtual const SEEnvironment * | GetEnvironment ()=0 |
Returns the environment object used by the engine. More... | |
virtual const SEBloodChemistrySystem * | GetBloodChemistrySystem ()=0 |
Returns the current state of the Blood Chemistry System. More... | |
virtual const SECardiovascularSystem * | GetCardiovascularSystem ()=0 |
Returns the current state of the Cardiovascular System. More... | |
virtual const SEDrugSystem * | GetDrugSystem ()=0 |
Returns the current state of the drug system. More... | |
virtual const SEEndocrineSystem * | GetEndocrineSystem ()=0 |
Returns the current state of the Endocrine System. More... | |
virtual const SEEnergySystem * | GetEnergySystem ()=0 |
Returns the current state of the Energy System. More... | |
virtual const SEGastrointestinalSystem * | GetGastrointestinalSystem ()=0 |
Returns the current state of the Gastrointestinal System. More... | |
virtual const SEHepaticSystem * | GetHepaticSystem ()=0 |
Returns the current state of the Hepatic System. More... | |
virtual const SENervousSystem * | GetNervousSystem ()=0 |
Returns the current state of the Nervous System. More... | |
virtual const SERenalSystem * | GetRenalSystem ()=0 |
Returns the current state of the Renal System. More... | |
virtual const SERespiratorySystem * | GetRespiratorySystem ()=0 |
Returns the current state of the Respiratory System. More... | |
virtual const SETissueSystem * | GetTissueSystem ()=0 |
Returns the current state of the tissue system. More... | |
virtual const SEAnesthesiaMachine * | GetAnesthesiaMachine ()=0 |
Returns the current state of the Anesthesia machine. More... | |
virtual const SEElectroCardioGram * | GetElectroCardioGram ()=0 |
Returns the current state of the Electrocardiogram machine. More... | |
virtual const SEInhaler * | GetInhaler ()=0 |
Returns the current state of the Inhaler. More... | |
virtual const SECompartmentManager & | GetCompartments ()=0 |
Retrieves the engine compartments, providing such data as: flows, pressure, volume as well as substance volumes and volume fractions. More... | |
virtual Tree< const char * > | GetDataRequestGraph () const =0 |
Return a Graph of DataRequest that the current PhysiologyEngine Supports.More... | |
virtual bool | IsAutoTracking () const =0 |
Returns the current state of the AutoTracking Property. True implies for each time advance All DataRequest will be tracked if the current simulation time is a multiple of GetDataRequestManager().GetSamplesPerSecond();More... | |
virtual void | SetAutoTrackFlag (bool flag)=0 |
Return Allows the toggling of the SetAutoTrackFlag to On/OffMore... | |
virtual bool | IsTrackingStabilization () const =0 |
Returns the current state of the Track Stabilization Property. When true the user expects the Results file to include engine values during stabilization routines When false the user expects the 0 time index to be the first engine readout post stabilization.More... | |
virtual void | SetTrackStabilizationFlag (bool flag)=0 |
Return Allows the toggling of the SetAutoTrackFlag to On/OffMore... | |
Constructor & Destructor Documentation
|
inlinevirtual |
Member Function Documentation
|
pure virtual |
executes one pass through the time loop of the engine at the fixed timestep
Events, errors, and warning as are logged to file not errors are returned through the API at this time.
Implemented in biogears::BioGearsEngine.
|
pure virtual |
executes time loop of the engine beginning at the current time and running for the duration specified in the call at the fixed timestep
Events, errors, and warning as are logged to file not errors are returned through the API at this time.
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Returns the current state of the Anesthesia machine.
----------------------------------------------------------------------------------------------—
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Returns the current state of the Blood Chemistry System.
----------------------------------------------------------------------------------------------—
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Returns the current state of the Cardiovascular System.
----------------------------------------------------------------------------------------------—
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Retrieves the engine compartments, providing such data as: flows, pressure, volume as well as substance volumes and volume fractions.
----------------------------------------------------------------------------------------------—
Implemented in biogears::BioGearsEngine.
|
pure virtual |
|
pure virtual |
Return a Graph of DataRequest that the current PhysiologyEngine Supports.
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Returns the current state of the drug system.
----------------------------------------------------------------------------------------------—
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Returns the current state of the Electrocardiogram machine.
----------------------------------------------------------------------------------------------—
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Returns the current state of the Endocrine System.
----------------------------------------------------------------------------------------------—
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Returns the current state of the Energy System.
----------------------------------------------------------------------------------------------—
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Retrieve the PhysiologyEngineTrack associated with tracking data from this engine to a file
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Returns the environment object used by the engine.
----------------------------------------------------------------------------------------------—
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Returns the current state of the Gastrointestinal System.
----------------------------------------------------------------------------------------------—
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Returns the current state of the Hepatic System.
----------------------------------------------------------------------------------------------—
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Returns the current state of the Inhaler.
----------------------------------------------------------------------------------------------—
Implemented in biogears::BioGearsEngine.
|
pure virtual |
|
pure virtual |
Returns the current state of the Nervous System.
----------------------------------------------------------------------------------------------—
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Returns the patient object used by the engine.
----------------------------------------------------------------------------------------------—
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Determines the assessment type and fills the data object with current data.
Assessments can be queried at any point in the calculation and as many times are desired.
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Returns the current state of the Renal System.
----------------------------------------------------------------------------------------------—
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Returns the current state of the Respiratory System.
----------------------------------------------------------------------------------------------—
Implemented in biogears::BioGearsEngine.
|
pure virtual |
|
pure virtual |
Retrieves the associated substance manager.
----------------------------------------------------------------------------------------------—
Implemented in biogears::BioGearsEngine.
|
pure virtual |
returns the engine time step that is used when advancing time.
----------------------------------------------------------------------------------------------—
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Returns the current state of the tissue system.
----------------------------------------------------------------------------------------------—
Implemented in biogears::BioGearsEngine.
|
pure virtual |
locates the xml patient file and reads in the values.
This will create an engine that you can send instructions (patient,actions,conditions) to dynamically. The return value will indicate success failure of the creation of the engine. Some combinations of patients and conditions may prevent the engine from stabilizing
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Implemented in biogears::BioGearsEngine.
|
pure virtual |
This will create an engine that you can send instructions (patient,actions,conditions) to dynamically. The return value will indicate success failure of the creation of the engine. Some combinations of patients and conditions may prevent the engine from stabilizing.
----------------------------------------------------------------------------------------------—
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Returns the current state of the AutoTracking Property. True implies for each time advance All DataRequest will be tracked if the current simulation time is a multiple of
GetDataRequestManager().GetSamplesPerSecond();
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Returns the current state of the Track Stabilization Property. When true the user expects the Results file to include engine values during stabilization routines
When false the user expects the 0 time index to be the first engine readout post stabilization.
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Reset engine and set it to the state in the provided file. You may provided a Simulation Time to be used if desired. It will be reflected in the GetSimulationTime method. Return value indicates engine was able to load provided state file.
Engine will be in a cleared state if this method fails.
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Reset engine and set it to the state in the provided file. You may provided a Simulation Time to be used if desired. It will be reflected in the GetSimulationTime method. Return value indicates engine was able to load provided state file.
Engine will be in a cleared state if this method fails.
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Execute the provided action. true will be returned if the engine supports the action false will be returned if the engine does not support the action.
----------------------------------------------------------------------------------------------—
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Save the current state of the engine. State will be written to a file if provided. State object will be returned.
Engine will be in a cleared state if this method fails.
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Return Allows the toggling of the SetAutoTrackFlag to On/Off
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Add a callback object that will be called whenever a pateint or anesthesia machine event changes state
Implemented in biogears::BioGearsEngine.
|
pure virtual |
Return Allows the toggling of the SetAutoTrackFlag to On/Off
Implemented in biogears::BioGearsEngine.