GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 20.0% 1 / 0 / 5
Functions: 20.0% 1 / 0 / 5
Branches: -% 0 / 0 / 0

src/model/AvailabilityManagerScheduled.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_AVAILABILITYMANAGERSCHEDULED_HPP
7 #define MODEL_AVAILABILITYMANAGERSCHEDULED_HPP
8
9 #include "ModelAPI.hpp"
10 #include "AvailabilityManager.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Schedule;
16
17 namespace detail {
18
19 class AvailabilityManagerScheduled_Impl;
20
21 } // namespace detail
22
23 /** AvailabilityManagerScheduled is a AvailabilityManager that wraps the OpenStudio IDD object 'OS:AvailabilityManager:Scheduled'. */
24 class MODEL_API AvailabilityManagerScheduled : public AvailabilityManager
25 {
26 public:
27 /** @name Constructors and Destructors */
28 //@{
29
30 explicit AvailabilityManagerScheduled(const Model& model);
31
32 3 virtual ~AvailabilityManagerScheduled() override = default;
33 // Default the copy and move operators because the virtual dtor is explicit
34 ✗ AvailabilityManagerScheduled(const AvailabilityManagerScheduled& other) = default;
35 ✗ AvailabilityManagerScheduled(AvailabilityManagerScheduled&& other) = default;
36 ✗ AvailabilityManagerScheduled& operator=(const AvailabilityManagerScheduled&) = default;
37 ✗ AvailabilityManagerScheduled& operator=(AvailabilityManagerScheduled&&) = default;
38
39 //@}
40
41 static IddObjectType iddObjectType();
42
43 /** @name Getters */
44 //@{
45
46 Schedule schedule() const;
47
48 //@}
49 /** @name Setters */
50 //@{
51
52 /*
53 * Get the Schedule, if not set, defaults to alwaysOnDiscreteSchedule
54 */
55 bool setSchedule(Schedule& schedule);
56
57 //@}
58 /** @name Other */
59 //@{
60
61 //@}
62 protected:
63 /// @cond
64 using ImplType = detail::AvailabilityManagerScheduled_Impl;
65
66 explicit AvailabilityManagerScheduled(std::shared_ptr<detail::AvailabilityManagerScheduled_Impl> impl);
67
68 friend class detail::AvailabilityManagerScheduled_Impl;
69 friend class Model;
70 friend class IdfObject;
71 friend class openstudio::detail::IdfObject_Impl;
72 /// @endcond
73 private:
74 REGISTER_LOGGER("openstudio.model.AvailabilityManagerScheduled");
75 };
76
77 /** \relates AvailabilityManagerScheduled*/
78 using OptionalAvailabilityManagerScheduled = boost::optional<AvailabilityManagerScheduled>;
79
80 /** \relates AvailabilityManagerScheduled*/
81 using AvailabilityManagerScheduledVector = std::vector<AvailabilityManagerScheduled>;
82
83 } // namespace model
84 } // namespace openstudio
85
86 #endif // MODEL_AVAILABILITYMANAGERSCHEDULED_HPP
87