SEActiveHeating.h
1 /**************************************************************************************
2 Copyright 2015 Applied Research Associates, Inc.
3 Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4 this file except in compliance with the License. You may obtain a copy of the License
5 at:
6 http://www.apache.org/licenses/LICENSE-2.0
7 Unless required by applicable law or agreed to in writing, software distributed under
8 the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9 CONDITIONS OF ANY KIND, either express or implied. See the License for the
10 specific language governing permissions and limitations under the License.
11 **************************************************************************************/
12 #pragma once
13 #include <biogears/cdm/CommonDataModel.h>
14 #include <biogears/exports.h>
15 
16 #include <biogears/cdm/system/environment/actions/SEEnvironmentAction.h>
17 
18 CDM_BIND_DECL(ActiveHeatingData)
19 
20 namespace biogears {
21 class SEScalar;
22 class SEScalarFraction;
23 class SEScalarPower;
24 class PowerUnit;
25 class SEScalarArea;
26 class AreaUnit;
27 
28 class BIOGEARS_API SEActiveHeating : public Loggable {
29 public:
30  SEActiveHeating(Logger* logger);
31  virtual ~SEActiveHeating();
32 
33  virtual void Clear();
34  virtual void Reset();
35 
36  virtual bool Load(const CDM::ActiveHeatingData& in);
37  virtual CDM::ActiveHeatingData* Unload() const;
38 
39 protected:
40  virtual void Unload(CDM::ActiveHeatingData& data) const;
41 
42 public:
43  virtual const SEScalar* GetScalar(const char* name);
44  virtual const SEScalar* GetScalar(const std::string& name);
45 
46  virtual bool HasPower() const;
47  virtual SEScalarPower& GetPower();
48  virtual double GetPower(const PowerUnit& unit) const;
49 
50  virtual bool HasSurfaceArea() const;
51  virtual SEScalarArea& GetSurfaceArea();
52  virtual double GetSurfaceArea(const AreaUnit& unit) const;
53 
54  virtual bool HasSurfaceAreaFraction() const;
55  virtual SEScalarFraction& GetSurfaceAreaFraction();
56  virtual double GetSurfaceAreaFraction() const;
57 
58  virtual void ToString(std::ostream& str) const;
59 
60 protected:
64 };
65 }
Definition: SEScalar.h:33
Definition: Logger.h:27
Definition: Logger.h:75
SEScalarArea * m_SurfaceArea
Definition: SEActiveHeating.h:62
Definition: SEScalarFraction.h:18
Definition: SEScalarPower.h:38
Definition: SEScalarPower.h:18
Definition: SEActiveHeating.h:28
Class corresponding to the ActiveHeatingData schema type.
Definition: Environment.hxx:1912
Definition: SEScalarArea.h:33
SEScalarFraction * m_SurfaceAreaFraction
Definition: SEActiveHeating.h:63
SEScalarPower * m_Power
Definition: SEActiveHeating.h:61
Definition: SEScalarArea.h:18
Definition: SEElectricalCircuit.h:18