<
The Pulse Team is excited to announce the Pulse Physiology Engine 4.1.0 release. Upgrade now to get the best in dynamic simulation.
×
SESubstanceInfusion.h
1 /* Distributed under the Apache License, Version 2.0.
2  See accompanying NOTICE file for details.*/
3 
4 #pragma once
5 #include "cdm/patient/actions/SESubstanceAdministration.h"
6 class SESubstance;
7 
8 class CDM_DECL SESubstanceInfusion : public SEPatientAction
9 {
10  friend class PBPatientAction;//friend the serialization class
11 public:
12 
13  SESubstanceInfusion(const SESubstance& substance, Logger* logger=nullptr);
14  virtual ~SESubstanceInfusion();
15 
16  virtual void Clear(); //clear memory
17  virtual void Copy(const SESubstanceInfusion& src, bool /*preserveState*/=false);
18 
19  virtual bool IsValid() const;
20  virtual bool IsActive() const;
21  virtual void Deactivate();
22 
23  virtual bool HasConcentration() const;
24  virtual SEScalarMassPerVolume& GetConcentration();
25  virtual double GetConcentration(const MassPerVolumeUnit& unit) const;
26 
27  virtual bool HasRate() const;
28  virtual SEScalarVolumePerTime& GetRate();
29  virtual double GetRate(const VolumePerTimeUnit& unit) const;
30 
31  virtual bool HasVolume() const;
32  virtual SEScalarVolume& GetVolume();
33  virtual double GetVolume(const VolumeUnit& unit) const;
34 
35  virtual SESubstance& GetSubstance();
36  virtual const SESubstance& GetSubstance() const;
37 
38  virtual void ToString(std::ostream &str) const;
39 
40  virtual const SEScalar* GetScalar(const std::string& name);
41 
42 protected:
47 };
virtual const SEScalar * GetScalar(const std::string &name)=0
Definition: SEPatientAction.h:7
Definition: SEScalar.h:18
Definition: SEScalarVolume.h:7
Definition: SEScalarVolume.h:27
Definition: Logger.h:66
SEScalarMassPerVolume * m_Concentration
Definition: SESubstanceInfusion.h:43
Definition: SEScalarMassPerVolume.h:36
virtual void Clear()
Definition: SEPatientAction.cpp:17
Definition: SEScalarMassPerVolume.h:7
SEScalarVolumePerTime * m_Rate
Definition: SESubstanceInfusion.h:44
Definition: SEScalarVolumePerTime.h:7
SEScalarVolume * m_Volume
Definition: SESubstanceInfusion.h:45
virtual void Deactivate()
Definition: SEAction.h:34
virtual bool IsValid() const
Definition: SEPatientAction.cpp:22
static SEAction * Copy(const SEAction &, const SESubstanceManager &)
Definition: SEAction.cpp:45
Definition: SEScalarVolumePerTime.h:30
virtual bool IsActive() const
Definition: SEAction.h:32
Definition: PBPatientActions.h:46
Definition: SESubstanceInfusion.h:8
virtual void ToString(std::ostream &str) const =0
Definition: SESubstance.h:14
const SESubstance & m_Substance
Definition: SESubstanceInfusion.h:46

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.