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/WaterUseEquipment_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_WATERUSEEQUIPMENT_IMPL_HPP
7 #define MODEL_WATERUSEEQUIPMENT_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "SpaceLoadInstance_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Schedule;
16 class ThermalZone;
17 class WaterUseConnections;
18 class WaterUseEquipmentDefinition;
19
20 namespace detail {
21
22 class MODEL_API WaterUseEquipment_Impl : public SpaceLoadInstance_Impl
23 {
24
25 public:
26 WaterUseEquipment_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
27
28 WaterUseEquipment_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
29
30 WaterUseEquipment_Impl(const WaterUseEquipment_Impl& other, Model_Impl* model, bool keepHandle);
31
32 168 virtual ~WaterUseEquipment_Impl() override = default;
33
34 virtual const std::vector<std::string>& outputVariableNames() const override;
35
36 virtual IddObjectType iddObjectType() const override;
37
38 virtual bool hardSize() override;
39
40 virtual bool hardApplySchedules() override;
41
42 virtual double multiplier() const override;
43
44 virtual bool isMultiplierDefaulted() const override;
45
46 virtual bool isAbsolute() const override;
47
48 virtual bool setDefinition(const SpaceLoadDefinition& definition) override;
49
50 virtual std::vector<IdfObject> remove() override;
51
52 std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
53
54 boost::optional<Schedule> flowRateFractionSchedule() const;
55 bool setFlowRateFractionSchedule(Schedule& flowRateFractionSchedule);
56 void resetFlowRateFractionSchedule();
57
58 boost::optional<WaterUseConnections> waterUseConnections() const;
59
60 WaterUseEquipmentDefinition waterUseEquipmentDefinition() const;
61 bool setWaterUseEquipmentDefinition(const WaterUseEquipmentDefinition& definition);
62
63 protected:
64 // index of the space name
65 virtual int spaceIndex() const override;
66
67 // index of the definition name
68 virtual int definitionIndex() const override;
69
70 private:
71 REGISTER_LOGGER("openstudio.model.WaterUseEquipment");
72
73 boost::optional<ModelObject> flowRateFractionScheduleAsModelObject() const;
74
75 bool setFlowRateFractionScheduleAsModelObject(const boost::optional<ModelObject>& modelObject);
76 };
77
78 } // namespace detail
79
80 } // namespace model
81 } // namespace openstudio
82
83 #endif // MODEL_WATERUSEEQUIPMENT_IMPL_HPP
84