GCC Code Coverage Report


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

src/model/DesignSpecificationOutdoorAir_Impl.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_IMPL_HPP
7 #define MODEL_DESIGNSPECIFICATIONOUTDOORAIR_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ResourceObject_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Schedule;
16
17 namespace detail {
18
19 /** DesignSpecificationOutdoorAir_Impl is a ModelObject_Impl that is the
20 * implementation class for DesignSpecificationOutdoorAir.*/
21 class MODEL_API DesignSpecificationOutdoorAir_Impl : public ResourceObject_Impl
22 {
23
24 public:
25 /** @name Constructors and Destructors */
26 //@{
27
28 DesignSpecificationOutdoorAir_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
29
30 DesignSpecificationOutdoorAir_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
31
32 DesignSpecificationOutdoorAir_Impl(const DesignSpecificationOutdoorAir_Impl& other, Model_Impl* model, bool keepHandle);
33
34 3004 virtual ~DesignSpecificationOutdoorAir_Impl() override = default;
35
36 //@}
37 /** @name Virtual Methods */
38 //@{
39
40 virtual const std::vector<std::string>& outputVariableNames() const override;
41
42 virtual IddObjectType iddObjectType() const override;
43
44 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
45
46 //@}
47 /** @name Getters */
48 //@{
49
50 std::string outdoorAirMethod() const;
51
52 bool isOutdoorAirMethodDefaulted() const;
53
54 double outdoorAirFlowperPerson() const;
55
56 bool isOutdoorAirFlowperPersonDefaulted() const;
57
58 double outdoorAirFlowperFloorArea() const;
59
60 bool isOutdoorAirFlowperFloorAreaDefaulted() const;
61
62 double outdoorAirFlowRate() const;
63
64 bool isOutdoorAirFlowRateDefaulted() const;
65
66 double outdoorAirFlowAirChangesperHour() const;
67
68 bool isOutdoorAirFlowAirChangesperHourDefaulted() const;
69
70 boost::optional<Schedule> outdoorAirFlowRateFractionSchedule() const;
71
72 //@}
73 /** @name Setters */
74 //@{
75
76 bool setOutdoorAirMethod(const std::string& outdoorAirMethod);
77
78 void resetOutdoorAirMethod();
79
80 bool setOutdoorAirFlowperPerson(double outdoorAirFlowperPerson);
81
82 void resetOutdoorAirFlowperPerson();
83
84 bool setOutdoorAirFlowperFloorArea(double outdoorAirFlowperFloorArea);
85
86 void resetOutdoorAirFlowperFloorArea();
87
88 bool setOutdoorAirFlowRate(double outdoorAirFlowRate);
89
90 void resetOutdoorAirFlowRate();
91
92 bool setOutdoorAirFlowAirChangesperHour(double outdoorAirFlowAirChangesperHour);
93
94 void resetOutdoorAirFlowAirChangesperHour();
95
96 bool setOutdoorAirFlowRateFractionSchedule(Schedule& schedule);
97
98 void resetOutdoorAirFlowRateFractionSchedule();
99
100 //@}
101 /** @name Other */
102 //@{
103
104 //@}
105 protected:
106 private:
107 REGISTER_LOGGER("openstudio.model.DesignSpecificationOutdoorAir");
108
109 std::vector<std::string> outdoorAirMethodValues() const;
110 boost::optional<ModelObject> outdoorAirFlowRateFractionScheduleAsModelObject() const;
111
112 bool setOutdoorAirFlowRateFractionScheduleAsModelObject(const boost::optional<ModelObject>& modelObject);
113 };
114
115 } // namespace detail
116
117 } // namespace model
118 } // namespace openstudio
119
120 #endif // MODEL_DESIGNSPECIFICATIONOUTDOORAIR_IMPL_HPP
121