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/HumidifierSteamElectric_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_HUMIDIFIERSTEAMELECTRIC_IMPL_HPP
7 #define MODEL_HUMIDIFIERSTEAMELECTRIC_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "StraightComponent_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Schedule;
16
17 namespace detail {
18
19 /** HumidifierSteamElectric_Impl is a StraightComponent_Impl that is the implementation class for HumidifierSteamElectric.*/
20 class MODEL_API HumidifierSteamElectric_Impl : public StraightComponent_Impl
21 {
22 public:
23 /** @name Constructors and Destructors */
24 //@{
25
26 HumidifierSteamElectric_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
27
28 HumidifierSteamElectric_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
29
30 HumidifierSteamElectric_Impl(const HumidifierSteamElectric_Impl& other, Model_Impl* model, bool keepHandle);
31
32 9 virtual ~HumidifierSteamElectric_Impl() override = default;
33
34 //@}
35 /** @name Virtual Methods */
36 //@{
37
38 virtual const std::vector<std::string>& outputVariableNames() const override;
39
40 virtual IddObjectType iddObjectType() const override;
41
42 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
43
44 virtual unsigned inletPort() const override;
45
46 virtual unsigned outletPort() const override;
47
48 virtual ComponentType componentType() const override;
49 virtual std::vector<FuelType> coolingFuelTypes() const override;
50 virtual std::vector<FuelType> heatingFuelTypes() const override;
51 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
52
53 //@}
54 /** @name Getters */
55 //@{
56
57 boost::optional<Schedule> availabilitySchedule() const;
58
59 boost::optional<double> ratedCapacity() const;
60
61 bool isRatedCapacityAutosized() const;
62
63 boost::optional<double> ratedPower() const;
64
65 bool isRatedPowerAutosized() const;
66
67 boost::optional<double> ratedFanPower() const;
68
69 boost::optional<double> standbyPower() const;
70
71 // boost::optional<WaterStorageTank> waterStorageTank() const;
72
73 boost::optional<double> autosizedRatedCapacity() const;
74
75 boost::optional<double> autosizedRatedPower() const;
76
77 virtual void autosize() override;
78
79 virtual void applySizingValues() override;
80
81 //@}
82 /** @name Setters */
83 //@{
84
85 bool setAvailabilitySchedule(Schedule& schedule);
86
87 void resetAvailabilitySchedule();
88
89 bool setRatedCapacity(boost::optional<double> ratedCapacity);
90
91 void autosizeRatedCapacity();
92
93 bool setRatedPower(boost::optional<double> ratedPower);
94
95 void resetRatedPower();
96
97 void autosizeRatedPower();
98
99 bool setRatedFanPower(boost::optional<double> ratedFanPower);
100
101 void resetRatedFanPower();
102
103 bool setStandbyPower(boost::optional<double> standbyPower);
104
105 void resetStandbyPower();
106
107 // bool setWaterStorageTank(const boost::optional<WaterStorageTank>& waterStorageTank);
108
109 // void resetWaterStorageTank();
110
111 //@}
112 /** @name Other */
113 //@{
114
115 //@}
116 protected:
117 private:
118 REGISTER_LOGGER("openstudio.model.HumidifierSteamElectric");
119 };
120
121 } // namespace detail
122
123 } // namespace model
124 } // namespace openstudio
125
126 #endif // MODEL_HUMIDIFIERSTEAMELECTRIC_IMPL_HPP
127