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/SizingPlant_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_SIZINGPLANT_IMPL_HPP
7 #define MODEL_SIZINGPLANT_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ModelObject_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class PlantLoop;
16
17 namespace detail {
18
19 /** SizingPlant_Impl is a ModelObject_Impl that is the implementation class for SizingPlant.*/
20 class MODEL_API SizingPlant_Impl : public ModelObject_Impl
21 {
22
23 public:
24 SizingPlant_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
25
26 SizingPlant_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
27
28 SizingPlant_Impl(const SizingPlant_Impl& other, Model_Impl* model, bool keepHandle);
29
30 818 virtual ~SizingPlant_Impl() override = default;
31
32 virtual const std::vector<std::string>& outputVariableNames() const override;
33
34 virtual IddObjectType iddObjectType() const override;
35
36 virtual bool setParent(ParentObject& newParent) override;
37
38 PlantLoop plantLoop() const;
39
40 std::string loopType() const;
41
42 double designLoopExitTemperature() const;
43
44 double loopDesignTemperatureDifference() const;
45
46 std::string sizingOption() const;
47
48 int zoneTimestepsinAveragingWindow() const;
49
50 std::string coincidentSizingFactorMode() const;
51
52 bool setPlantLoop(const PlantLoop& plantLoop);
53
54 bool setLoopType(const std::string& loopType);
55
56 bool setDesignLoopExitTemperature(double designLoopExitTemperature);
57
58 bool setLoopDesignTemperatureDifference(double loopDesignTemperatureDifference);
59
60 bool setSizingOption(const std::string& sizingOption);
61
62 bool setZoneTimestepsinAveragingWindow(int zoneTimestepsinAveragingWindow);
63
64 bool setCoincidentSizingFactorMode(const std::string& coincidentSizingFactorMode);
65
66 protected:
67 private:
68 − REGISTER_LOGGER("openstudio.model.SizingPlant");
69
70 // TODO: Check the return types of these methods.
71 // Optional getters for use by methods like children() so can remove() if the constructor fails.
72 // There are other ways for the public versions of these getters to fail--perhaps all required
73 // objects should be returned as boost::optionals
74 boost::optional<PlantLoop> optionalPlantLoop() const;
75
76 std::vector<std::string> loopTypeValues() const;
77 boost::optional<ModelObject> plantLoopAsModelObject() const;
78
79 bool setPlantLoopAsModelObject(const boost::optional<ModelObject>& modelObject);
80 };
81
82 } // namespace detail
83
84 } // namespace model
85 } // namespace openstudio
86
87 #endif // MODEL_SIZINGPLANT_IMPL_HPP
88