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/ScheduleCompact_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_SCHEDULECOMPACT_IMPL_HPP
7 #define MODEL_SCHEDULECOMPACT_IMPL_HPP
8
9 #include "Schedule_Impl.hpp"
10
11 namespace openstudio {
12 namespace model {
13
14 namespace detail {
15
16 class MODEL_API ScheduleCompact_Impl : public Schedule_Impl
17 {
18 public:
19 /** @name Constructors and Destructors */
20 //@{
21
22 // constructor
23 ScheduleCompact_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
24
25 // construct from workspace
26 ScheduleCompact_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
27
28 ScheduleCompact_Impl(const ScheduleCompact_Impl& other, Model_Impl* model, bool keepHandle);
29
30 // virtual destructor
31 1172 virtual ~ScheduleCompact_Impl() override = default;
32
33 //@}
34 /** @name Getters */
35 //@{
36
37 // return the parent object in the hierarchy
38 virtual boost::optional<ParentObject> parent() const override;
39
40 // return any children objects in the hierarchy
41 virtual std::vector<ModelObject> children() const override;
42
43 // Get all output variable names that could be associated with this object.
44 virtual const std::vector<std::string>& outputVariableNames() const override;
45
46 virtual IddObjectType iddObjectType() const override;
47
48 virtual std::vector<double> values() const override;
49
50 virtual boost::optional<ScheduleTypeLimits> scheduleTypeLimits() const override;
51
52 virtual std::vector<EMSActuatorNames> emsActuatorNames() const override;
53
54 virtual std::vector<std::string> emsInternalVariableNames() const override;
55
56 //@}
57 /** @name Setters */
58 //@{
59
60 virtual bool setScheduleTypeLimits(const ScheduleTypeLimits& scheduleTypeLimits) override;
61
62 virtual bool resetScheduleTypeLimits() override;
63
64 bool setToConstantValue(double value);
65
66 // ensure that this object does not contain the date 2/29
67 virtual void ensureNoLeapDays() override;
68
69 //@}
70 /** @name Queries */
71 //@{
72
73 bool isConstantValue() const;
74
75 boost::optional<double> constantValue() const;
76
77 //@}
78 private:
79 − REGISTER_LOGGER("openstudio.model.ScheduleCompact");
80 };
81
82 } // namespace detail
83
84 } // namespace model
85 } // namespace openstudio
86
87 #endif // MODEL_SCHEDULECOMPACT_IMPL_HPP
88