<
The Pulse Team is excited to announce the Pulse Physiology Engine 4.1.0 release. Upgrade now to get the best in dynamic simulation.
×
SEBagValveMaskInstantaneous.h
1 /* Distributed under the Apache License, Version 2.0.
2  See accompanying NOTICE file for details.*/
3 #pragma once
4 #include "cdm/system/equipment/bag_valve_mask/actions/SEBagValveMaskAction.h"
5 class SEBagValveMask;
7 
9 {
10  friend class PBEquipmentAction;//friend the serialization class
11 public:
12 
13  SEBagValveMaskInstantaneous(Logger* logger=nullptr);
14  virtual ~SEBagValveMaskInstantaneous();
15 
16  virtual void Clear();
17  virtual void Copy(const SEBagValveMaskInstantaneous& src);
18 
19  virtual bool IsValid() const;
20  virtual bool IsActive() const;
21  virtual void Deactivate();
22 
23  virtual bool HasFlow() const;
24  virtual SEScalarVolumePerTime& GetFlow();
25  virtual double GetFlow(const VolumePerTimeUnit& unit) const;
26 
27  virtual bool HasPressure() const;
28  virtual SEScalarPressure& GetPressure();
29  virtual double GetPressure(const PressureUnit& unit) const;
30 
31  virtual void ToString(std::ostream &str) const;
32 
33  virtual const SEScalar* GetScalar(const std::string& name);
34 
35 protected:
36 
39 };
Definition: SESubstanceManager.h:8
virtual const SEScalar * GetScalar(const std::string &name)=0
Definition: SEScalar.h:18
virtual bool IsValid() const
Definition: SEBagValveMaskAction.cpp:22
Definition: SEBagValveMaskAction.h:6
Definition: Logger.h:66
Definition: SEScalarPressure.h:28
Definition: SEBagValveMaskInstantaneous.h:8
SEScalarVolumePerTime * m_Flow
Definition: SEBagValveMaskInstantaneous.h:37
Definition: SEScalarVolumePerTime.h:7
virtual void Deactivate()
Definition: SEAction.h:34
Definition: SEBagValveMask.h:13
Definition: SEScalarPressure.h:7
static SEAction * Copy(const SEAction &, const SESubstanceManager &)
Definition: SEAction.cpp:45
Definition: SEScalarVolumePerTime.h:30
virtual bool IsActive() const
Definition: SEAction.h:32
virtual void ToString(std::ostream &str) const =0
Definition: PBEquipmentActions.h:38
SEScalarPressure * m_Pressure
Definition: SEBagValveMaskInstantaneous.h:38
virtual void Clear()
Definition: SEBagValveMaskAction.cpp:17

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.