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/AirTerminalSingleDuctConstantVolumeNoReheat_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_AIRTERMINALSINGLEDUCTCONSTANTVOLUMENOREHEAT_IMPL_HPP
7 #define MODEL_AIRTERMINALSINGLEDUCTCONSTANTVOLUMENOREHEAT_IMPL_HPP
8
9 #include "StraightComponent_Impl.hpp"
10
11 namespace openstudio {
12 namespace model {
13
14 namespace detail {
15
16 class MODEL_API AirTerminalSingleDuctConstantVolumeNoReheat_Impl : public StraightComponent_Impl
17 {
18
19 public:
20 /** @name Constructors and Destructors */
21 //@{
22
23 // constructor
24 AirTerminalSingleDuctConstantVolumeNoReheat_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
25
26 // construct from workspace
27 AirTerminalSingleDuctConstantVolumeNoReheat_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
28
29 // copy constructor
30 AirTerminalSingleDuctConstantVolumeNoReheat_Impl(const AirTerminalSingleDuctConstantVolumeNoReheat_Impl& other, Model_Impl* model,
31 bool keepHandle);
32
33 // virtual destructor
34 556 virtual ~AirTerminalSingleDuctConstantVolumeNoReheat_Impl() override = default;
35
36 //@}
37 /** @name Virtual Methods */
38 //@{
39
40 virtual std::vector<openstudio::IdfObject> remove() override;
41
42 virtual bool isRemovable() 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 std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
50
51 virtual unsigned inletPort() const override;
52
53 virtual unsigned outletPort() const override;
54
55 virtual bool addToNode(Node& node) override;
56
57 virtual ComponentType componentType() const override;
58 virtual std::vector<FuelType> coolingFuelTypes() const override;
59 virtual std::vector<FuelType> heatingFuelTypes() const override;
60 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
61
62 //@}
63
64 /** Returns the Schedule referred to by the AvailabilityScheduleName field. **/
65 Schedule availabilitySchedule() const;
66
67 /** Sets the Schedule referred to by the AvailabilityScheduleName field. **/
68 bool setAvailabilitySchedule(Schedule& schedule);
69
70 boost::optional<double> maximumAirFlowRate() const;
71
72 bool isMaximumAirFlowRateAutosized() const;
73
74 bool setMaximumAirFlowRate(boost::optional<double> maximumAirFlowRate);
75
76 void autosizeMaximumAirFlowRate();
77
78 boost::optional<double> autosizedMaximumAirFlowRate() const;
79
80 virtual void autosize() override;
81
82 virtual void applySizingValues() override;
83
84 virtual std::vector<EMSActuatorNames> emsActuatorNames() const override;
85
86 virtual std::vector<std::string> emsInternalVariableNames() const override;
87
88 private:
89 − REGISTER_LOGGER("openstudio.model.AirTerminalSingleDuctConstantVolumeNoReheat");
90
91 // Optional getters for use by methods like children() so can remove() if the constructor fails.
92 // There are other ways for the public versions of these getters to fail--perhaps all required
93 // objects should be returned as boost::optionals
94 boost::optional<Schedule> optionalAvailabilitySchedule() const;
95
96 boost::optional<ModelObject> availabilityScheduleAsModelObject() const;
97
98 bool setAvailabilityScheduleAsModelObject(const boost::optional<ModelObject>& modelObject);
99 };
100
101 } // namespace detail
102
103 } // namespace model
104 } // namespace openstudio
105
106 #endif // MODEL_AIRTERMINALSINGLEDUCTCONSTANTVOLUMENOREHEAT_IMPL_HPP
107