GCC Code Coverage Report


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

src/model/CoilHeatingElectricMultiStage_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_COILHEATINGELECTRICMULTISTAGE_IMPL_HPP
7 #define MODEL_COILHEATINGELECTRICMULTISTAGE_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "StraightComponent_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Schedule;
16 class CoilHeatingElectricMultiStageStageData;
17
18 namespace detail {
19
20 /** CoilHeatingElectricMultiStage_Impl is a StraightComponent_Impl that is the implementation class for CoilHeatingElectricMultiStage.*/
21 class MODEL_API CoilHeatingElectricMultiStage_Impl : public StraightComponent_Impl
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 CoilHeatingElectricMultiStage_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 CoilHeatingElectricMultiStage_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 CoilHeatingElectricMultiStage_Impl(const CoilHeatingElectricMultiStage_Impl& other, Model_Impl* model, bool keepHandle);
32
33 32 virtual ~CoilHeatingElectricMultiStage_Impl() override = default;
34
35 //@}
36 /** @name Virtual Methods */
37 //@{
38
39 virtual const std::vector<std::string>& outputVariableNames() const override;
40
41 virtual IddObjectType iddObjectType() const override;
42
43 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
44
45 virtual unsigned inletPort() const override;
46
47 virtual unsigned outletPort() const override;
48
49 ModelObject clone(Model model) const override;
50
51 std::vector<ModelObject> children() const override;
52
53 boost::optional<HVACComponent> containingHVACComponent() const override;
54
55 bool addToNode(Node& node) override;
56
57 virtual ComponentType componentType() const override;
58 virtual std::vector<FuelType> coolingFuelTypes() const override;
59 virtual std::vector<FuelType> heatingFuelTypes() const override;
60 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
61
62 //@}
63 /** @name Getters */
64 //@{
65
66 Schedule availabilitySchedule() const;
67
68 //@}
69 /** @name Setters */
70 //@{
71
72 bool setAvailabilitySchedule(Schedule& schedule);
73
74 //@}
75 /** @name Other */
76 //@{
77
78 std::vector<CoilHeatingElectricMultiStageStageData> stages() const;
79 unsigned numberOfStages() const;
80 boost::optional<unsigned> stageIndex(const CoilHeatingElectricMultiStageStageData& stage) const;
81
82 bool addStage(const CoilHeatingElectricMultiStageStageData& stage);
83 bool addStage(const CoilHeatingElectricMultiStageStageData& stage, unsigned index);
84 bool setStageIndex(const CoilHeatingElectricMultiStageStageData& stage, unsigned index);
85 bool setStages(const std::vector<CoilHeatingElectricMultiStageStageData>& stages);
86 void removeAllStages();
87 bool removeStage(const CoilHeatingElectricMultiStageStageData& stage);
88 bool removeStage(unsigned index);
89
90 //@}
91 protected:
92 private:
93 − REGISTER_LOGGER("openstudio.model.CoilHeatingElectricMultiStage");
94
95 boost::optional<Schedule> optionalAvailabilitySchedule() const;
96 };
97
98 } // namespace detail
99
100 } // namespace model
101 } // namespace openstudio
102
103 #endif // MODEL_COILHEATINGELECTRICMULTISTAGE_IMPL_HPP
104