|
| PhysiologyEngine (Logger *logger=nullptr) |
|
virtual | ~PhysiologyEngine ()=default |
|
virtual std::string | GetTypeName () const =0 |
| Returns the engine type, such as "Human Adult Whole Body". More...
|
|
virtual bool | SerializeFromFile (const std::string &file)=0 |
| Reset engine and set it to the state in the provided file. The file may contain json or binary. Anything but an extension of .json will be interpreted as binary. 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 | SerializeToFile (const std::string &filename) const =0 |
| Save the current state of the engine to provided filename. Using a .json extension will save a json/ascii file. Anything else will save as binary. More...
|
|
virtual bool | SerializeFromString (const std::string &state, eSerializationFormat m)=0 |
| Reset engine and set it to the state in the provided string. The string can contain JSON or binary. Note that a string of bytes are binary, not text; we only use the string class as a convenient container. 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 | SerializeToString (std::string &state, eSerializationFormat m) const =0 |
| Save the current state of the engine. The state can be saved as JSON or bytes in the given string. Note that the bytes are binary, not text; we only use the string class as a convenient container. More...
|
|
virtual bool | InitializeEngine (const std::string &patient_configuration, eSerializationFormat m)=0 |
| Initialize an engine based on the engines initialization structure. More...
|
|
virtual bool | InitializeEngine (const SEPatientConfiguration &patient_configuration)=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 eEngineInitializationState | GetInitializationState () const =0 |
| Get a bit more detail as to how initialization went. More...
|
|
virtual void | Clear ()=0 |
| Closes out any files and resets state. More...
|
|
virtual const SEConditionManager & | GetConditionManager () const =0 |
| Get the Condition Manager. Allows a user to check the state of active conditions. More...
|
|
virtual bool | SetConfigurationOverride (const SEEngineConfiguration *config)=0 |
| Engines can have a configuration for allowing a user to set certain internal parameters Engines with configurations will have all configuration parameters defaulted, This allows you to change one or more or those parameters. The parameters provided will be applied during SerializeFrom* and InitializeEngine methods. Use with caution! (Use nullptr to revert back to using all engine defaults) More...
|
|
virtual const SEEngineConfiguration * | GetConfiguration () const =0 |
| returns the engine configuration. More...
|
|
virtual SEEngineTracker * | GetEngineTracker () const =0 |
| Retrieve the SEEngineTracker associated with tracking data from this engine to a file The SEEngineTracker is a class set up to pull data requested from the engine (via SEDataRequest's) and provide access to the data easily (ex. to easily write data to csv files) More...
|
|
virtual double | GetTimeStep (const TimeUnit &unit) const =0 |
| returns the engine time step that is used when advancing time. More...
|
|
virtual double | GetSimulationTime (const TimeUnit &unit) const =0 |
| returns the current time of the simulation. More...
|
|
virtual double | GetStabilizationTime (const TimeUnit &unit) const =0 |
| returns the stabilization time of the simulation (if stabilized) More...
|
|
virtual void | SetSimulationTime (const SEScalarTime &time)=0 |
| Set the current time of the simulation. Engine Simulation time will be advanced from this time point. More...
|
|
virtual bool | AdvanceModelTime ()=0 |
| executes one pass through the time loop of the engine at the fixed timestep More...
|
|
virtual bool | AdvanceModelTime (double time, const TimeUnit &unit)=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 void | SetAdvanceHandler (SEAdvanceHandler *handler)=0 |
| Add a callback object that will be called after each 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 const SEActionManager & | GetActionManager () const =0 |
| Get the Action Manager. Allows a user to check the state of active actions. More...
|
|
virtual const SESubstanceManager & | GetSubstanceManager () const =0 |
| Retrieves the associated substance manager. More...
|
|
virtual const SEEventManager & | GetEventManager () const =0 |
| Retrieves the associated event manager. More...
|
|
virtual const SEPatient & | GetPatient () const =0 |
| Returns the patient object used by the engine. More...
|
|
virtual const SEPatient & | GetInitialPatient () const =0 |
| Returns the initial simulation patient object used by the engine. More...
|
|
virtual bool | GetPatientAssessment (SEPatientAssessment &assessment) const =0 |
| Determines the assessment type and fills the data object with current data. More...
|
|
virtual const SEEnvironment * | GetEnvironment () const =0 |
| Returns the environment object used by the engine. More...
|
|
virtual const SEBloodChemistrySystem * | GetBloodChemistrySystem () const =0 |
| Returns the current state of the Blood Chemistry System. More...
|
|
virtual const SECardiovascularSystem * | GetCardiovascularSystem () const =0 |
| Returns the current state of the Cardiovascular System. More...
|
|
virtual const SEDrugSystem * | GetDrugSystem () const =0 |
| Returns the current state of the drug system. More...
|
|
virtual const SEEndocrineSystem * | GetEndocrineSystem () const =0 |
| Returns the current state of the Endocrine System. More...
|
|
virtual const SEEnergySystem * | GetEnergySystem () const =0 |
| Returns the current state of the Energy System. More...
|
|
virtual const SEGastrointestinalSystem * | GetGastrointestinalSystem () const =0 |
| Returns the current state of the Gastrointestinal System. More...
|
|
virtual const SEHepaticSystem * | GetHepaticSystem () const =0 |
| Returns the current state of the Hepatic System. More...
|
|
virtual const SENervousSystem * | GetNervousSystem () const =0 |
| Returns the current state of the Nervous System. More...
|
|
virtual const SERenalSystem * | GetRenalSystem () const =0 |
| Returns the current state of the Renal System. More...
|
|
virtual const SERespiratorySystem * | GetRespiratorySystem () const =0 |
| Returns the current state of the Respiratory System. More...
|
|
virtual const SETissueSystem * | GetTissueSystem () const =0 |
| Returns the current state of the tissue system. More...
|
|
virtual const SEAnesthesiaMachine * | GetAnesthesiaMachine () const =0 |
| Returns the current state of the Anesthesia machine. More...
|
|
virtual const SEBagValveMask * | GetBagValveMask () const =0 |
| Returns the current state of the Bag Valve Mask. More...
|
|
virtual const SEECMO * | GetECMO () const =0 |
| Returns the current state of the ECMO machine. More...
|
|
virtual const SEElectroCardioGram * | GetElectroCardioGram () const =0 |
| Returns the current state of the Electrocardiogram machine. More...
|
|
virtual const SEInhaler * | GetInhaler () const =0 |
| Returns the current state of the Inhaler. More...
|
|
virtual const SEMechanicalVentilator * | GetMechanicalVentilator () const =0 |
| Returns the current state of the Mechanical ventilator. More...
|
|
virtual const SECompartmentManager & | GetCompartments () const =0 |
| Retrieves the engine compartments, providing such data as: flows, pressure, volume as well as substance volumes and volume fractions. More...
|
|
virtual SEBlackBoxManager & | GetBlackBoxes () const =0 |
| Retrieves the engine black box manager Black boxes allow users to inject or retrieve flows, pressure, volume as well as substance volumes and volume fractions into the engine, use with caution. These are intended to allow integration between Pulse and other systems at a low level. More...
|
|
| Loggable (Logger *logger=nullptr) |
|
| Loggable (std::string const &logfile) |
|
virtual | ~Loggable () |
|
virtual Logger * | GetLogger () const |
|
virtual void | SetLogger (Logger &logger) |
|
virtual void | Debug (std::string const &msg) const |
|
virtual void | Debug (std::stringstream &msg) const |
|
virtual void | Debug (std::ostream &msg) const |
|
virtual void | Info (std::string const &msg) const |
|
virtual void | Info (std::stringstream &msg) const |
|
virtual void | Info (const std::stringstream &msg) const |
|
virtual void | Info (std::ostream &msg) const |
|
virtual void | Warning (std::string const &msg) const |
|
virtual void | Warning (std::stringstream &msg) const |
|
virtual void | Warning (std::ostream &msg) const |
|
virtual void | Error (std::string const &msg) const |
|
virtual void | Error (std::stringstream &msg) const |
|
virtual void | Error (std::ostream &msg) const |
|
virtual void | Fatal (std::string const &msg) const |
|
virtual void | Fatal (std::stringstream &msg) const |
|
virtual void | Fatal (std::ostream &msg) const |
|