src/model/WaterUseConnections_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_WATERUSECONNECTIONS_IMPL_HPP | ||
| 7 | #define MODEL_WATERUSECONNECTIONS_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 | class WaterUseEquipment; | ||
| 18 | |||
| 19 | namespace detail { | ||
| 20 | |||
| 21 | /** WaterUseConnections_Impl is a StraightComponent_Impl that is the implementation class for WaterUseConnections.*/ | ||
| 22 | class MODEL_API WaterUseConnections_Impl : public StraightComponent_Impl | ||
| 23 | { | ||
| 24 | |||
| 25 | public: | ||
| 26 | WaterUseConnections_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 27 | |||
| 28 | WaterUseConnections_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 29 | |||
| 30 | WaterUseConnections_Impl(const WaterUseConnections_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 31 | |||
| 32 | 100 | virtual ~WaterUseConnections_Impl() override = default; | |
| 33 | |||
| 34 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 35 | |||
| 36 | virtual IddObjectType iddObjectType() const override; | ||
| 37 | |||
| 38 | virtual ComponentType componentType() const override; | ||
| 39 | virtual std::vector<FuelType> coolingFuelTypes() const override; | ||
| 40 | virtual std::vector<FuelType> heatingFuelTypes() const override; | ||
| 41 | virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override; | ||
| 42 | |||
| 43 | std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override; | ||
| 44 | |||
| 45 | boost::optional<Schedule> hotWaterSupplyTemperatureSchedule() const; | ||
| 46 | |||
| 47 | boost::optional<Schedule> coldWaterSupplyTemperatureSchedule() const; | ||
| 48 | |||
| 49 | bool setHotWaterSupplyTemperatureSchedule(Schedule& hotWaterSupplyTemperatureSchedule); | ||
| 50 | |||
| 51 | void resetHotWaterSupplyTemperatureSchedule(); | ||
| 52 | |||
| 53 | bool setColdWaterSupplyTemperatureSchedule(Schedule& coldWaterSupplyTemperatureSchedule); | ||
| 54 | |||
| 55 | void resetColdWaterSupplyTemperatureSchedule(); | ||
| 56 | |||
| 57 | virtual unsigned inletPort() const override; | ||
| 58 | |||
| 59 | virtual unsigned outletPort() const override; | ||
| 60 | |||
| 61 | std::vector<WaterUseEquipment> waterUseEquipment() const; | ||
| 62 | |||
| 63 | bool addWaterUseEquipment(const WaterUseEquipment& waterUseEquipment); | ||
| 64 | |||
| 65 | bool removeWaterUseEquipment(WaterUseEquipment& waterUseEquipment); | ||
| 66 | |||
| 67 | bool addToNode(Node& node) override; | ||
| 68 | |||
| 69 | std::string drainWaterHeatExchangerType() const; | ||
| 70 | |||
| 71 | bool setDrainWaterHeatExchangerType(const std::string& drainWaterHeatExchangerType); | ||
| 72 | |||
| 73 | std::string drainWaterHeatExchangerDestination() const; | ||
| 74 | |||
| 75 | bool setDrainWaterHeatExchangerDestination(const std::string& drainWaterHeatExchangerDestination); | ||
| 76 | |||
| 77 | boost::optional<double> drainWaterHeatExchangerUFactorTimesArea() const; | ||
| 78 | |||
| 79 | bool setDrainWaterHeatExchangerUFactorTimesArea(double drainWaterHeatExchangerUFactorTimesArea); | ||
| 80 | |||
| 81 | void resetDrainWaterHeatExchangerUFactorTimesArea(); | ||
| 82 | |||
| 83 | protected: | ||
| 84 | private: | ||
| 85 | REGISTER_LOGGER("openstudio.model.WaterUseConnections"); | ||
| 86 | |||
| 87 | boost::optional<ModelObject> hotWaterSupplyTemperatureScheduleAsModelObject() const; | ||
| 88 | boost::optional<ModelObject> coldWaterSupplyTemperatureScheduleAsModelObject() const; | ||
| 89 | |||
| 90 | bool setHotWaterSupplyTemperatureScheduleAsModelObject(const boost::optional<ModelObject>& modelObject); | ||
| 91 | bool setColdWaterSupplyTemperatureScheduleAsModelObject(const boost::optional<ModelObject>& modelObject); | ||
| 92 | }; | ||
| 93 | |||
| 94 | } // namespace detail | ||
| 95 | |||
| 96 | } // namespace model | ||
| 97 | } // namespace openstudio | ||
| 98 | |||
| 99 | #endif // MODEL_WATERUSECONNECTIONS_IMPL_HPP | ||
| 100 |