src/model/CoilHeatingGasMultiStage_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_COILHEATINGGASMULTISTAGE_IMPL_HPP | ||
| 7 | #define MODEL_COILHEATINGGASMULTISTAGE_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "StraightComponent_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class Schedule; | ||
| 16 | class Curve; | ||
| 17 | class CoilHeatingGasMultiStageStageData; | ||
| 18 | |||
| 19 | namespace detail { | ||
| 20 | |||
| 21 | /** CoilHeatingGasMultiStage_Impl is a StraightComponent_Impl that is the implementation class for CoilHeatingGasMultiStage.*/ | ||
| 22 | class MODEL_API CoilHeatingGasMultiStage_Impl : public StraightComponent_Impl | ||
| 23 | { | ||
| 24 | public: | ||
| 25 | /** @name Constructors and Destructors */ | ||
| 26 | //@{ | ||
| 27 | |||
| 28 | CoilHeatingGasMultiStage_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 29 | |||
| 30 | CoilHeatingGasMultiStage_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 31 | |||
| 32 | CoilHeatingGasMultiStage_Impl(const CoilHeatingGasMultiStage_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 33 | |||
| 34 | 23 | virtual ~CoilHeatingGasMultiStage_Impl() override = default; | |
| 35 | |||
| 36 | //@} | ||
| 37 | /** @name Virtual Methods */ | ||
| 38 | //@{ | ||
| 39 | |||
| 40 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 41 | |||
| 42 | virtual IddObjectType iddObjectType() const override; | ||
| 43 | |||
| 44 | virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override; | ||
| 45 | |||
| 46 | virtual unsigned inletPort() const override; | ||
| 47 | |||
| 48 | virtual unsigned outletPort() const override; | ||
| 49 | |||
| 50 | ModelObject clone(Model model) const override; | ||
| 51 | |||
| 52 | std::vector<ModelObject> children() const override; | ||
| 53 | |||
| 54 | boost::optional<HVACComponent> containingHVACComponent() const override; | ||
| 55 | |||
| 56 | bool addToNode(Node& node) override; | ||
| 57 | |||
| 58 | virtual ComponentType componentType() const override; | ||
| 59 | virtual std::vector<FuelType> coolingFuelTypes() const override; | ||
| 60 | virtual std::vector<FuelType> heatingFuelTypes() const override; | ||
| 61 | virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override; | ||
| 62 | |||
| 63 | //@} | ||
| 64 | /** @name Getters */ | ||
| 65 | //@{ | ||
| 66 | |||
| 67 | Schedule availabilitySchedule() const; | ||
| 68 | |||
| 69 | boost::optional<Curve> partLoadFractionCorrelationCurve() const; | ||
| 70 | |||
| 71 | boost::optional<double> offCycleParasiticGasLoad() const; | ||
| 72 | |||
| 73 | //@} | ||
| 74 | /** @name Setters */ | ||
| 75 | //@{ | ||
| 76 | |||
| 77 | bool setAvailabilitySchedule(Schedule& schedule); | ||
| 78 | |||
| 79 | bool setPartLoadFractionCorrelationCurve(const boost::optional<Curve>& curve); | ||
| 80 | |||
| 81 | void resetPartLoadFractionCorrelationCurve(); | ||
| 82 | |||
| 83 | bool setOffCycleParasiticGasLoad(double offCycleParasiticGasLoad); | ||
| 84 | |||
| 85 | void resetOffCycleParasiticGasLoad(); | ||
| 86 | |||
| 87 | //@} | ||
| 88 | /** @name Other */ | ||
| 89 | //@{ | ||
| 90 | |||
| 91 | std::vector<CoilHeatingGasMultiStageStageData> stages() const; | ||
| 92 | unsigned numberOfStages() const; | ||
| 93 | boost::optional<unsigned> stageIndex(const CoilHeatingGasMultiStageStageData& stage) const; | ||
| 94 | |||
| 95 | bool addStage(const CoilHeatingGasMultiStageStageData& stage); | ||
| 96 | bool addStage(const CoilHeatingGasMultiStageStageData& stage, unsigned index); | ||
| 97 | bool setStageIndex(const CoilHeatingGasMultiStageStageData& stage, unsigned index); | ||
| 98 | bool setStages(const std::vector<CoilHeatingGasMultiStageStageData>& stages); | ||
| 99 | void removeAllStages(); | ||
| 100 | bool removeStage(const CoilHeatingGasMultiStageStageData& stage); | ||
| 101 | bool removeStage(unsigned index); | ||
| 102 | |||
| 103 | //@} | ||
| 104 | protected: | ||
| 105 | private: | ||
| 106 | − | REGISTER_LOGGER("openstudio.model.CoilHeatingGasMultiStage"); | |
| 107 | |||
| 108 | boost::optional<Schedule> optionalAvailabilitySchedule() const; | ||
| 109 | }; | ||
| 110 | |||
| 111 | } // namespace detail | ||
| 112 | |||
| 113 | } // namespace model | ||
| 114 | } // namespace openstudio | ||
| 115 | |||
| 116 | #endif // MODEL_COILHEATINGGASMULTISTAGE_IMPL_HPP | ||
| 117 |