src/model/DistrictHeatingSteam_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_DISTRICTHEATINGSTEAM_IMPL_HPP | ||
| 7 | #define MODEL_DISTRICTHEATINGSTEAM_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "StraightComponent_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | |||
| 14 | namespace model { | ||
| 15 | |||
| 16 | class Schedule; | ||
| 17 | |||
| 18 | namespace detail { | ||
| 19 | |||
| 20 | /** DistrictHeatingSteam_Impl is a StraightComponent_Impl that is the implementation class for DistrictHeatingSteam.*/ | ||
| 21 | |||
| 22 | class MODEL_API DistrictHeatingSteam_Impl : public StraightComponent_Impl | ||
| 23 | { | ||
| 24 | |||
| 25 | public: | ||
| 26 | /** @name Constructors and Destructors */ | ||
| 27 | //@{ | ||
| 28 | |||
| 29 | DistrictHeatingSteam_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 30 | |||
| 31 | DistrictHeatingSteam_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | DistrictHeatingSteam_Impl(const DistrictHeatingSteam_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 34 | |||
| 35 | 10 | virtual ~DistrictHeatingSteam_Impl() override = default; | |
| 36 | |||
| 37 | //@} | ||
| 38 | /** @name Virtual Methods */ | ||
| 39 | //@{ | ||
| 40 | |||
| 41 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 42 | |||
| 43 | virtual IddObjectType iddObjectType() const override; | ||
| 44 | |||
| 45 | virtual unsigned inletPort() const override; | ||
| 46 | |||
| 47 | virtual unsigned outletPort() const override; | ||
| 48 | |||
| 49 | virtual bool addToNode(Node& node) override; | ||
| 50 | |||
| 51 | virtual void autosize() override; | ||
| 52 | |||
| 53 | virtual void applySizingValues() override; | ||
| 54 | |||
| 55 | virtual ComponentType componentType() const override; | ||
| 56 | virtual std::vector<FuelType> coolingFuelTypes() const override; | ||
| 57 | virtual std::vector<FuelType> heatingFuelTypes() const override; | ||
| 58 | virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override; | ||
| 59 | |||
| 60 | virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override; | ||
| 61 | |||
| 62 | //@} | ||
| 63 | /** @name Getters */ | ||
| 64 | //@{ | ||
| 65 | |||
| 66 | boost::optional<double> nominalCapacity() const; | ||
| 67 | |||
| 68 | bool isNominalCapacityAutosized() const; | ||
| 69 | |||
| 70 | Schedule capacityFractionSchedule() const; | ||
| 71 | |||
| 72 | //@} | ||
| 73 | /** @name Setters */ | ||
| 74 | //@{ | ||
| 75 | |||
| 76 | bool setNominalCapacity(double nominalCapacity); | ||
| 77 | |||
| 78 | void autosizeNominalCapacity(); | ||
| 79 | |||
| 80 | bool setCapacityFractionSchedule(Schedule& schedule); | ||
| 81 | |||
| 82 | //@} | ||
| 83 | /** @name Other */ | ||
| 84 | //@{ | ||
| 85 | |||
| 86 | boost::optional<double> autosizedNominalCapacity() const; | ||
| 87 | |||
| 88 | //@} | ||
| 89 | |||
| 90 | protected: | ||
| 91 | private: | ||
| 92 | REGISTER_LOGGER("openstudio.model.DistrictHeatingSteam"); | ||
| 93 | }; | ||
| 94 | |||
| 95 | } // namespace detail | ||
| 96 | |||
| 97 | } // namespace model | ||
| 98 | |||
| 99 | } // namespace openstudio | ||
| 100 | |||
| 101 | #endif // MODEL_DISTRICTHEATINGSTEAM_IMPL_HPP | ||
| 102 |