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