src/model/AirTerminalSingleDuctConstantVolumeNoReheat.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_HPP | ||
| 7 | #define MODEL_AIRTERMINALSINGLEDUCTCONSTANTVOLUMENOREHEAT_HPP | ||
| 8 | |||
| 9 | #include "ModelObject.hpp" | ||
| 10 | #include "StraightComponent.hpp" | ||
| 11 | #include "Connection.hpp" | ||
| 12 | #include "ModelAPI.hpp" | ||
| 13 | |||
| 14 | namespace openstudio { | ||
| 15 | |||
| 16 | namespace model { | ||
| 17 | |||
| 18 | class Schedule; | ||
| 19 | |||
| 20 | namespace detail { | ||
| 21 | |||
| 22 | class AirTerminalSingleDuctConstantVolumeNoReheat_Impl; | ||
| 23 | |||
| 24 | } // namespace detail | ||
| 25 | |||
| 26 | /** AirTerminalSingleDuctConstantVolumeNoReheat is an interface to the EnergyPlus IDD object | ||
| 27 | * named "AirTerminal:SingleDuct:ConstantVolume:NoReheat" | ||
| 28 | * | ||
| 29 | * The purpose of this class is to simplify the construction and manipulation | ||
| 30 | * AirTerminal:SingleDuct:ConstantVolume:NoReheat objects in energyplus. | ||
| 31 | */ | ||
| 32 | class MODEL_API AirTerminalSingleDuctConstantVolumeNoReheat : public StraightComponent | ||
| 33 | { | ||
| 34 | |||
| 35 | public: | ||
| 36 | /** @name Constructors and Destructors */ | ||
| 37 | //@{ | ||
| 38 | |||
| 39 | /** Constructs a new AirTerminalSingleDuctConstantVolumeNoReheat object and places it inside the | ||
| 40 | * model. The object is fully initialized with all companion objects. */ | ||
| 41 | AirTerminalSingleDuctConstantVolumeNoReheat(const Model& model, Schedule& availabilitySchedule); | ||
| 42 | |||
| 43 | 555 | virtual ~AirTerminalSingleDuctConstantVolumeNoReheat() override = default; | |
| 44 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 45 | ✗ | AirTerminalSingleDuctConstantVolumeNoReheat(const AirTerminalSingleDuctConstantVolumeNoReheat& other) = default; | |
| 46 | 23 | AirTerminalSingleDuctConstantVolumeNoReheat(AirTerminalSingleDuctConstantVolumeNoReheat&& other) = default; | |
| 47 | ✗ | AirTerminalSingleDuctConstantVolumeNoReheat& operator=(const AirTerminalSingleDuctConstantVolumeNoReheat&) = default; | |
| 48 | ✗ | AirTerminalSingleDuctConstantVolumeNoReheat& operator=(AirTerminalSingleDuctConstantVolumeNoReheat&&) = default; | |
| 49 | |||
| 50 | //@} | ||
| 51 | |||
| 52 | static IddObjectType iddObjectType(); | ||
| 53 | |||
| 54 | /** Returns the Schedule referred to by the AvailabilityScheduleName field. **/ | ||
| 55 | Schedule availabilitySchedule() const; | ||
| 56 | |||
| 57 | /** Sets the Schedule referred to by the AvailabilityScheduleName field. **/ | ||
| 58 | bool setAvailabilitySchedule(Schedule& schedule); | ||
| 59 | |||
| 60 | boost::optional<double> maximumAirFlowRate() const; | ||
| 61 | |||
| 62 | bool isMaximumAirFlowRateAutosized() const; | ||
| 63 | |||
| 64 | bool setMaximumAirFlowRate(double maximumAirFlowRate); | ||
| 65 | |||
| 66 | void autosizeMaximumAirFlowRate(); | ||
| 67 | |||
| 68 | boost::optional<double> autosizedMaximumAirFlowRate() const; | ||
| 69 | |||
| 70 | //@} | ||
| 71 | protected: | ||
| 72 | friend class Model; | ||
| 73 | friend class openstudio::IdfObject; | ||
| 74 | friend class openstudio::detail::IdfObject_Impl; | ||
| 75 | |||
| 76 | /// @cond | ||
| 77 | using ImplType = detail::AirTerminalSingleDuctConstantVolumeNoReheat_Impl; | ||
| 78 | |||
| 79 | explicit AirTerminalSingleDuctConstantVolumeNoReheat(std::shared_ptr<detail::AirTerminalSingleDuctConstantVolumeNoReheat_Impl> impl); | ||
| 80 | |||
| 81 | private: | ||
| 82 | REGISTER_LOGGER("openstudio.model.AirTerminalSingleDuctConstantVolumeNoReheat"); | ||
| 83 | /// @endcond | ||
| 84 | }; | ||
| 85 | |||
| 86 | using OptionalAirTerminalSingleDuctConstantVolumeNoReheat = boost::optional<AirTerminalSingleDuctConstantVolumeNoReheat>; | ||
| 87 | |||
| 88 | using AirTerminalSingleDuctConstantVolumeNoReheatVector = std::vector<AirTerminalSingleDuctConstantVolumeNoReheat>; | ||
| 89 | |||
| 90 | // In E+ 9.0.0, ATU SingleDuctUncontrolled was renamed to SingleDuctConstantVolumeNoReheat | ||
| 91 | // To be more consistent with the naming convention of others ATU. We typedef for backwards compatibility | ||
| 92 | using AirTerminalSingleDuctUncontrolled = AirTerminalSingleDuctConstantVolumeNoReheat; | ||
| 93 | |||
| 94 | } // namespace model | ||
| 95 | |||
| 96 | } // namespace openstudio | ||
| 97 | |||
| 98 | #endif // MODEL_AIRTERMINALSINGLEDUCTCONSTANTVOLUMENOREHEAT_HPP | ||
| 99 |