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/ScheduleVariableInterval_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_SCHEDULEVARIABLEINTERVAL_IMPL_HPP
7 #define MODEL_SCHEDULEVARIABLEINTERVAL_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ScheduleInterval_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 namespace detail {
16
17 /** ScheduleVariableInterval_Impl is a ScheduleInterval_Impl that is the implementation class for ScheduleVariableInterval.*/
18 class MODEL_API ScheduleVariableInterval_Impl : public ScheduleInterval_Impl
19 {
20
21 public:
22 /** @name Constructors and Destructors */
23 //@{
24
25 ScheduleVariableInterval_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
26
27 ScheduleVariableInterval_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
28
29 ScheduleVariableInterval_Impl(const ScheduleVariableInterval_Impl& other, Model_Impl* model, bool keepHandle);
30
31 10 virtual ~ScheduleVariableInterval_Impl() override = default;
32
33 //@}
34 /** @name Virtual Methods */
35 //@{
36
37 virtual IddObjectType iddObjectType() const override;
38
39 virtual boost::optional<ScheduleTypeLimits> scheduleTypeLimits() const override;
40
41 virtual bool setScheduleTypeLimits(const ScheduleTypeLimits& scheduleTypeLimits) override;
42
43 virtual bool resetScheduleTypeLimits() override;
44
45 virtual openstudio::TimeSeries timeSeries() const override;
46
47 virtual bool setTimeSeries(const openstudio::TimeSeries& timeSeries) override;
48
49 //@}
50 /** @name Getters */
51 //@{
52
53 bool interpolatetoTimestep() const;
54
55 bool isInterpolatetoTimestepDefaulted() const;
56
57 int startMonth() const;
58
59 int startDay() const;
60
61 double fixedIntervalLength() const;
62
63 double outOfRangeValue() const;
64
65 bool isOutOfRangeValueDefaulted() const;
66
67 //@}
68 /** @name Setters */
69 //@{
70
71 bool setInterpolatetoTimestep(bool interpolatetoTimestep, bool driverMethod = true);
72
73 void resetInterpolatetoTimestep(bool driverMethod = true);
74
75 bool setStartMonth(int startMonth, bool driverMethod = true);
76
77 bool setStartDay(int startDay, bool driverMethod = true);
78
79 bool setOutOfRangeValue(double outOfRangeValue, bool driverMethod = true);
80
81 void resetOutOfRangeValue(bool driverMethod = true);
82
83 // ensure that this object does not contain the date 2/29
84 virtual void ensureNoLeapDays() override;
85
86 //@}
87 protected:
88 private:
89 − REGISTER_LOGGER("openstudio.model.ScheduleVariableInterval");
90 };
91
92 } // namespace detail
93
94 } // namespace model
95 } // namespace openstudio
96
97 #endif // MODEL_SCHEDULEVARIABLEINTERVAL_IMPL_HPP
98