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/LoadProfilePlant_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_LOADPROFILEPLANT_IMPL_HPP
7 #define MODEL_LOADPROFILEPLANT_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 Node;
17
18 namespace detail {
19
20 /** LoadProfilePlant_Impl is a StraightComponent_Impl that is the implementation class for LoadProfilePlant.*/
21 class MODEL_API LoadProfilePlant_Impl : public StraightComponent_Impl
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 LoadProfilePlant_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 LoadProfilePlant_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 LoadProfilePlant_Impl(const LoadProfilePlant_Impl& other, Model_Impl* model, bool keepHandle);
32
33 4 virtual ~LoadProfilePlant_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 virtual bool addToNode(Node& node) override;
50
51 virtual ComponentType componentType() const override;
52 virtual std::vector<FuelType> coolingFuelTypes() const override;
53 virtual std::vector<FuelType> heatingFuelTypes() const override;
54 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
55
56 //@}
57 /** @name Getters */
58 //@{
59
60 Schedule loadSchedule() const;
61
62 double peakFlowRate() const;
63
64 Schedule flowRateFractionSchedule() const;
65
66 virtual std::vector<EMSActuatorNames> emsActuatorNames() const override;
67
68 virtual std::vector<std::string> emsInternalVariableNames() const override;
69
70 std::string plantLoopFluidType() const;
71
72 double degreeofSubCooling() const;
73
74 double degreeofLoopSubCooling() const;
75
76 //@}
77 /** @name Setters */
78 //@{
79
80 bool setLoadSchedule(Schedule& schedule);
81
82 bool setPeakFlowRate(double peakFlowRate);
83
84 bool setFlowRateFractionSchedule(Schedule& schedule);
85
86 bool setPlantLoopFluidType(const std::string& plantLoopFluidType);
87
88 bool setDegreeofSubCooling(double degreeofSubCooling);
89
90 bool setDegreeofLoopSubCooling(double degreeofLoopSubCooling);
91
92 //@}
93 /** @name Other */
94 //@{
95
96 //@}
97 protected:
98 private:
99 − REGISTER_LOGGER("openstudio.model.LoadProfilePlant");
100
101 // Optional getters for use by methods like children() so can remove() if the constructor fails.
102 // There are other ways for the public versions of these getters to fail--perhaps all required
103 // objects should be returned as boost::optionals
104 boost::optional<Schedule> optionalLoadSchedule() const;
105 boost::optional<Schedule> optionalFlowRateFractionSchedule() const;
106 };
107
108 } // namespace detail
109
110 } // namespace model
111 } // namespace openstudio
112
113 #endif // MODEL_LOADPROFILEPLANT_IMPL_HPP
114