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/AvailabilityManagerOptimumStart_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_AVAILABILITYMANAGEROPTIMUMSTART_IMPL_HPP
7 #define MODEL_AVAILABILITYMANAGEROPTIMUMSTART_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "AvailabilityManager_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Schedule;
16 class ThermalZone;
17
18 namespace detail {
19
20 /** AvailabilityManagerOptimumStart_Impl is a AvailabilityManager_Impl that is the implementation class for AvailabilityManagerOptimumStart.*/
21 class MODEL_API AvailabilityManagerOptimumStart_Impl : public AvailabilityManager_Impl
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 AvailabilityManagerOptimumStart_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 AvailabilityManagerOptimumStart_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 AvailabilityManagerOptimumStart_Impl(const AvailabilityManagerOptimumStart_Impl& other, Model_Impl* model, bool keepHandle);
32
33 10 virtual ~AvailabilityManagerOptimumStart_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 //@}
46 /** @name Getters */
47 //@{
48
49 Schedule applicabilitySchedule() const;
50
51 std::string controlType() const;
52
53 boost::optional<ThermalZone> controlZone() const;
54
55 double maximumValueforOptimumStartTime() const;
56
57 std::string controlAlgorithm() const;
58
59 double constantTemperatureGradientduringCooling() const;
60
61 double constantTemperatureGradientduringHeating() const;
62
63 double initialTemperatureGradientduringCooling() const;
64
65 double initialTemperatureGradientduringHeating() const;
66
67 double constantStartTime() const;
68
69 int numberofPreviousDays() const;
70
71 //@}
72 /** @name Setters */
73 //@{
74
75 bool setApplicabilitySchedule(Schedule& schedule);
76
77 bool setControlType(const std::string& controlType);
78
79 bool setControlZone(const boost::optional<ThermalZone>& thermalZone);
80
81 void resetControlZone();
82
83 bool setMaximumValueforOptimumStartTime(double maximumValueforOptimumStartTime);
84
85 bool setControlAlgorithm(const std::string& controlAlgorithm);
86
87 bool setConstantTemperatureGradientduringCooling(double constantTemperatureGradientduringCooling);
88
89 bool setConstantTemperatureGradientduringHeating(double constantTemperatureGradientduringHeating);
90
91 bool setInitialTemperatureGradientduringCooling(double initialTemperatureGradientduringCooling);
92
93 bool setInitialTemperatureGradientduringHeating(double initialTemperatureGradientduringHeating);
94
95 bool setConstantStartTime(double constantStartTime);
96
97 bool setNumberofPreviousDays(int numberofPreviousDays);
98
99 //@}
100 /** @name Other */
101 //@{
102
103 //@}
104 protected:
105 private:
106 − REGISTER_LOGGER("openstudio.model.AvailabilityManagerOptimumStart");
107
108 // TODO: Check the return types of these methods.
109 // Optional getters for use by methods like children() so can remove() if the constructor fails.
110 // There are other ways for the public versions of these getters to fail--perhaps all required
111 // objects should be returned as boost::optionals
112 boost::optional<Schedule> optionalApplicabilitySchedule() const;
113 };
114
115 } // namespace detail
116
117 } // namespace model
118 } // namespace openstudio
119
120 #endif // MODEL_AVAILABILITYMANAGEROPTIMUMSTART_IMPL_HPP
121