GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 60.0% 3 / 0 / 5
Functions: 60.0% 3 / 0 / 5
Branches: -% 0 / 0 / 0

src/model/DesignSpecificationOutdoorAir.hpp
Line Branch Exec Source
1 /***********************************************************************************************************************
2 * OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC.
3 * See also https://openstudio.net/license
4 ***********************************************************************************************************************/
5
6 #ifndef MODEL_DESIGNSPECIFICATIONOUTDOORAIR_HPP
7 #define MODEL_DESIGNSPECIFICATIONOUTDOORAIR_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ResourceObject.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Schedule;
16
17 namespace detail {
18
19 class DesignSpecificationOutdoorAir_Impl;
20
21 } // namespace detail
22
23 /** DesignSpecificationOutdoorAir is a ModelObject that wraps the OpenStudio IDD
24 * object 'OS:DesignSpecification:OutdoorAir'. */
25 class MODEL_API DesignSpecificationOutdoorAir : public ResourceObject
26 {
27 public:
28 /** @name Constructors and Destructors */
29 //@{
30
31 explicit DesignSpecificationOutdoorAir(const Model& model);
32
33 1420 virtual ~DesignSpecificationOutdoorAir() override = default;
34 // Default the copy and move operators because the virtual dtor is explicit
35 24 DesignSpecificationOutdoorAir(const DesignSpecificationOutdoorAir& other) = default;
36 907 DesignSpecificationOutdoorAir(DesignSpecificationOutdoorAir&& other) = default;
37 ✗ DesignSpecificationOutdoorAir& operator=(const DesignSpecificationOutdoorAir&) = default;
38 ✗ DesignSpecificationOutdoorAir& operator=(DesignSpecificationOutdoorAir&&) = default;
39
40 //@}
41
42 static IddObjectType iddObjectType();
43
44 static std::vector<std::string> outdoorAirMethodValues();
45
46 /** \deprecated */
47 static std::vector<std::string> validOutdoorAirMethodValues();
48
49 /** @name Getters */
50 //@{
51
52 std::string outdoorAirMethod() const;
53
54 bool isOutdoorAirMethodDefaulted() const;
55
56 double outdoorAirFlowperPerson() const;
57
58 bool isOutdoorAirFlowperPersonDefaulted() const;
59
60 double outdoorAirFlowperFloorArea() const;
61
62 bool isOutdoorAirFlowperFloorAreaDefaulted() const;
63
64 double outdoorAirFlowRate() const;
65
66 bool isOutdoorAirFlowRateDefaulted() const;
67
68 double outdoorAirFlowAirChangesperHour() const;
69
70 bool isOutdoorAirFlowAirChangesperHourDefaulted() const;
71
72 /** In EnergyPlus 8.7.0 and above this field maps to the EnergyPlus field named "Outdoor Air Schedule Name" **/
73 boost::optional<Schedule> outdoorAirFlowRateFractionSchedule() const;
74
75 //@}
76 /** @name Setters */
77 //@{
78
79 bool setOutdoorAirMethod(const std::string& outdoorAirMethod);
80
81 void resetOutdoorAirMethod();
82
83 bool setOutdoorAirFlowperPerson(double outdoorAirFlowperPerson);
84
85 void resetOutdoorAirFlowperPerson();
86
87 bool setOutdoorAirFlowperFloorArea(double outdoorAirFlowperFloorArea);
88
89 void resetOutdoorAirFlowperFloorArea();
90
91 bool setOutdoorAirFlowRate(double outdoorAirFlowRate);
92
93 void resetOutdoorAirFlowRate();
94
95 bool setOutdoorAirFlowAirChangesperHour(double outdoorAirFlowAirChangesperHour);
96
97 void resetOutdoorAirFlowAirChangesperHour();
98
99 /** In EnergyPlus 8.7.0 and above this field maps to the EnergyPlus field named "Outdoor Air Schedule Name" **/
100 bool setOutdoorAirFlowRateFractionSchedule(Schedule& schedule);
101
102 void resetOutdoorAirFlowRateFractionSchedule();
103
104 //@}
105 protected:
106 /// @cond
107 using ImplType = detail::DesignSpecificationOutdoorAir_Impl;
108
109 explicit DesignSpecificationOutdoorAir(std::shared_ptr<detail::DesignSpecificationOutdoorAir_Impl> impl);
110
111 friend class detail::DesignSpecificationOutdoorAir_Impl;
112
113 friend class Model;
114
115 friend class IdfObject;
116
117 friend class openstudio::detail::IdfObject_Impl;
118 /// @endcond
119 private:
120 REGISTER_LOGGER("openstudio.model.DesignSpecificationOutdoorAir");
121 };
122
123 /** \relates DesignSpecificationOutdoorAir*/
124 using OptionalDesignSpecificationOutdoorAir = boost::optional<DesignSpecificationOutdoorAir>;
125
126 /** \relates DesignSpecificationOutdoorAir*/
127 using DesignSpecificationOutdoorAirVector = std::vector<DesignSpecificationOutdoorAir>;
128
129 } // namespace model
130 } // namespace openstudio
131
132 #endif // MODEL_DESIGNSPECIFICATIONOUTDOORAIR_HPP
133