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