SEActiveCooling.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 #include <biogears/cdm/system/environment/actions/SEEnvironmentAction.h>
16 #include <biogears/schema/cdm/Environment.hxx>
17 
18 namespace biogears {
19 class SEScalar;
20 class SEScalarFraction;
21 class SEScalarPower;
22 class PowerUnit;
23 class SEScalarArea;
24 class AreaUnit;
25 
26 class BIOGEARS_API SEActiveCooling : public Loggable {
27 public:
28  SEActiveCooling(Logger* logger);
29  virtual ~SEActiveCooling();
30 
31  virtual void Clear();
32  virtual void Reset();
33 
34  virtual bool Load(const CDM::ActiveCoolingData& in);
35  virtual CDM::ActiveCoolingData* Unload() const;
36 
37 protected:
38  virtual void Unload(CDM::ActiveCoolingData& data) const;
39 
40 public:
41  virtual const SEScalar* GetScalar(const char* name);
42  virtual const SEScalar* GetScalar(const std::string& name);
43 
44  virtual bool HasPower() const;
45  virtual SEScalarPower& GetPower();
46  virtual double GetPower(const PowerUnit& unit) const;
47 
48  virtual bool HasSurfaceArea() const;
49  virtual SEScalarArea& GetSurfaceArea();
50  virtual double GetSurfaceArea(const AreaUnit& unit) const;
51 
52  virtual bool HasSurfaceAreaFraction() const;
53  virtual SEScalarFraction& GetSurfaceAreaFraction();
54  virtual double GetSurfaceAreaFraction() const;
55 
56  virtual void ToString(std::ostream& str) const;
57 
58 protected:
62 };
63 }
Class corresponding to the ActiveCoolingData schema type.
Definition: Environment.hxx:2236
Definition: SEScalar.h:33
Definition: SEActiveCooling.h:26
Definition: Logger.h:27
Definition: Logger.h:75
Definition: SEScalarFraction.h:18
SEScalarFraction * m_SurfaceAreaFraction
Definition: SEActiveCooling.h:61
SEScalarPower * m_Power
Definition: SEActiveCooling.h:59
Definition: SEScalarPower.h:38
Definition: SEScalarPower.h:18
Definition: SEScalarArea.h:33
Definition: SEScalarArea.h:18
SEScalarArea * m_SurfaceArea
Definition: SEActiveCooling.h:60
Definition: SEElectricalCircuit.h:18