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/ExternalInterfaceFunctionalMockupUnitExportToSchedule_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_EXTERNALINTERFACEFUNCTIONALMOCKUPUNITEXPORTTOSCHEDULE_IMPL_HPP
7 #define MODEL_EXTERNALINTERFACEFUNCTIONALMOCKUPUNITEXPORTTOSCHEDULE_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 /** ExternalInterfaceFunctionalMockupUnitExportToSchedule_Impl is a ModelObject_Impl that is the implementation class for ExternalInterfaceFunctionalMockupUnitExportToSchedule.*/
18 class MODEL_API ExternalInterfaceFunctionalMockupUnitExportToSchedule_Impl : public Schedule_Impl
19 {
20 public:
21 /** @name Constructors and Destructors */
22 //@{
23
24 ExternalInterfaceFunctionalMockupUnitExportToSchedule_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
25
26 ExternalInterfaceFunctionalMockupUnitExportToSchedule_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model,
27 bool keepHandle);
28
29 ExternalInterfaceFunctionalMockupUnitExportToSchedule_Impl(const ExternalInterfaceFunctionalMockupUnitExportToSchedule_Impl& other,
30 Model_Impl* model, bool keepHandle);
31
32 5 virtual ~ExternalInterfaceFunctionalMockupUnitExportToSchedule_Impl() override = default;
33
34 //@}
35 /** @name Getters */
36 //@{
37
38 // return the parent object in the hierarchy
39 virtual boost::optional<ParentObject> parent() const override;
40
41 // return any children objects in the hierarchy
42 virtual std::vector<ModelObject> children() const override;
43
44 // Get all output variable names that could be associated with this object.
45 virtual const std::vector<std::string>& outputVariableNames() const override;
46
47 virtual IddObjectType iddObjectType() const override;
48
49 virtual boost::optional<ScheduleTypeLimits> scheduleTypeLimits() const override;
50
51 virtual std::vector<double> values() const override;
52
53 std::string fMUVariableName() const;
54
55 boost::optional<double> initialValue() 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 setFMUVariableName(const std::string& fMUVariableName);
66
67 bool setInitialValue(double initialValue);
68
69 // ensure that this object does not contain the date 2/29
70 virtual void ensureNoLeapDays() override;
71
72 //@}
73 /** @name Other */
74 //@{
75
76 //@}
77 protected:
78 private:
79 − REGISTER_LOGGER("openstudio.model.ExternalInterfaceFunctionalMockupUnitExportToSchedule");
80 };
81
82 } // namespace detail
83
84 } // namespace model
85 } // namespace openstudio
86
87 #endif // MODEL_EXTERNALINTERFACEFUNCTIONALMOCKUPUNITEXPORTTOSCHEDULE_IMPL_HPP
88