SEThermalApplication.h
1/* Distributed under the Apache License, Version 2.0.
2 See accompanying NOTICE file for details.*/
3#pragma once
4#include "cdm/system/environment/actions/SEEnvironmentAction.h"
7
9{
10 friend class PBEnvironmentAction;//friend the serialization class
11public:
12
13 SEThermalApplication(Logger* logger=nullptr);
14 virtual ~SEThermalApplication();
15
16 static constexpr char const* Name = "Thermal Application";
17 std::string GetName() const override { return Name; }
18
19 void Clear() override;
20 virtual void Copy(const SEThermalApplication& src, bool /*preserveState*/=false);
21
22 bool IsValid() const override;
23 bool IsActive() const override;
24 void Deactivate() override;
25
26 virtual bool HasActiveHeating() const;
27 virtual SEActiveConditioning& GetActiveHeating();
28 virtual const SEActiveConditioning* GetActiveHeating() const;
29 virtual void RemoveActiveHeating();
30
31 virtual bool HasActiveCooling() const;
32 virtual SEActiveConditioning& GetActiveCooling();
33 virtual const SEActiveConditioning* GetActiveCooling() const;
34 virtual void RemoveActiveCooling();
35
36 virtual bool HasAppliedTemperature() const;
37 virtual SEAppliedTemperature& GetAppliedTemperature();
38 virtual const SEAppliedTemperature* GetAppliedTemperature() const;
39 virtual void RemoveAppliedTemperature();
40
41 const SEScalar* GetScalar(const std::string& name) override;
42
43protected:
48};
Definition: Logger.h:71
Definition: PBEnvironmentActions.h:12
virtual const SEScalar * GetScalar(const std::string &name)=0
static SEAction * Copy(const SEAction &, const SESubstanceManager &)
Definition: SEAction.cpp:53
Definition: SEActiveConditioning.h:6
Definition: SEAppliedTemperature.h:6
Definition: SEEnvironmentAction.h:7
void Clear() override
Definition: SEEnvironmentAction.h:17
bool IsValid() const override
Definition: SEEnvironmentAction.h:18
void Deactivate() override
Definition: SEEnvironmentAction.h:22
bool IsActive() const override
Definition: SEEnvironmentAction.h:21
Definition: SEScalar.h:19
Definition: SEThermalApplication.h:9
SEActiveConditioning * m_ActiveCooling
Definition: SEThermalApplication.h:46
bool m_ClearContents
Definition: SEThermalApplication.h:44
std::string GetName() const override
Definition: SEThermalApplication.h:17
SEActiveConditioning * m_ActiveHeating
Definition: SEThermalApplication.h:45
SEAppliedTemperature * m_AppliedTemperature
Definition: SEThermalApplication.h:47

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.