SEMechanicalVentilatorLeak.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/mechanical_ventilator/actions/SEMechanicalVentilatorAction.h"
7
9{
10 friend class PBEquipmentAction;//friend the serialization class
11public:
12
13 SEMechanicalVentilatorLeak(Logger* logger = nullptr);
15
16 static constexpr char const* Name = "Leak";
17 std::string GetName() const override { return Name; }
18
19 void Clear() override;
20 virtual void Copy(const SEMechanicalVentilatorLeak& src, bool /*preserveState*/ = false);
21
22 bool IsValid() const override;
23 bool IsActive() const override;
24 void Deactivate() override;
25
26 virtual bool HasSeverity() const;
27 virtual SEScalar0To1& GetSeverity();
28 virtual double GetSeverity() const;
29
30 const SEScalar* GetScalar(const std::string& name) override;
31
32protected:
33
35};
Definition: Logger.h:71
Definition: PBEquipmentActions.h:41
virtual const SEScalar * GetScalar(const std::string &name)=0
static SEAction * Copy(const SEAction &, const SESubstanceManager &)
Definition: SEAction.cpp:53
void Deactivate() override
Definition: SEEquipmentAction.h:19
bool IsActive() const override
Definition: SEEquipmentAction.h:18
Definition: SEMechanicalVentilatorAction.h:7
bool IsValid() const override
Definition: SEMechanicalVentilatorAction.cpp:22
void Clear() override
Definition: SEMechanicalVentilatorAction.cpp:17
Definition: SEMechanicalVentilator.h:10
Definition: SEMechanicalVentilatorLeak.h:9
std::string GetName() const override
Definition: SEMechanicalVentilatorLeak.h:17
SEScalar0To1 * m_Severity
Definition: SEMechanicalVentilatorLeak.h:34
Definition: SEScalar0To1.h:8
Definition: SEScalar.h:19
Definition: SESubstanceManager.h:9

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.