src/model/PipeIndoor_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_PIPEINDOOR_IMPL_HPP | ||
| 7 | #define MODEL_PIPEINDOOR_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "StraightComponent_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class Construction; | ||
| 16 | class Schedule; | ||
| 17 | class ThermalZone; | ||
| 18 | |||
| 19 | namespace detail { | ||
| 20 | |||
| 21 | /** PipeIndoor_Impl is a StraightComponent_Impl that is the implementation class for PipeIndoor.*/ | ||
| 22 | class MODEL_API PipeIndoor_Impl : public StraightComponent_Impl | ||
| 23 | { | ||
| 24 | public: | ||
| 25 | /** @name Constructors and Destructors */ | ||
| 26 | //@{ | ||
| 27 | |||
| 28 | PipeIndoor_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 29 | |||
| 30 | PipeIndoor_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 31 | |||
| 32 | PipeIndoor_Impl(const PipeIndoor_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 33 | |||
| 34 | 6 | virtual ~PipeIndoor_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 | virtual bool addToNode(Node& node) override; | ||
| 51 | |||
| 52 | virtual ComponentType componentType() const override; | ||
| 53 | virtual std::vector<FuelType> coolingFuelTypes() const override; | ||
| 54 | virtual std::vector<FuelType> heatingFuelTypes() const override; | ||
| 55 | virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override; | ||
| 56 | |||
| 57 | //@} | ||
| 58 | /** @name Getters */ | ||
| 59 | //@{ | ||
| 60 | |||
| 61 | boost::optional<Construction> construction() const; | ||
| 62 | |||
| 63 | std::string environmentType() const; | ||
| 64 | |||
| 65 | boost::optional<ThermalZone> ambientTemperatureZone() const; | ||
| 66 | |||
| 67 | boost::optional<Schedule> ambientTemperatureSchedule() const; | ||
| 68 | |||
| 69 | boost::optional<Schedule> ambientAirVelocitySchedule() const; | ||
| 70 | |||
| 71 | double pipeInsideDiameter() const; | ||
| 72 | |||
| 73 | double pipeLength() const; | ||
| 74 | |||
| 75 | //@} | ||
| 76 | /** @name Setters */ | ||
| 77 | //@{ | ||
| 78 | |||
| 79 | bool setConstruction(const boost::optional<Construction>& construction); | ||
| 80 | |||
| 81 | void resetConstruction(); | ||
| 82 | |||
| 83 | bool setEnvironmentType(const std::string& environmentType); | ||
| 84 | |||
| 85 | bool setAmbientTemperatureZone(const boost::optional<ThermalZone>& thermalZone); | ||
| 86 | |||
| 87 | void resetAmbientTemperatureZone(); | ||
| 88 | |||
| 89 | bool setAmbientTemperatureSchedule(Schedule& schedule); | ||
| 90 | |||
| 91 | void resetAmbientTemperatureSchedule(); | ||
| 92 | |||
| 93 | bool setAmbientAirVelocitySchedule(Schedule& schedule); | ||
| 94 | |||
| 95 | void resetAmbientAirVelocitySchedule(); | ||
| 96 | |||
| 97 | bool setPipeInsideDiameter(double pipeInsideDiameter); | ||
| 98 | |||
| 99 | bool setPipeLength(double pipeLength); | ||
| 100 | |||
| 101 | //@} | ||
| 102 | /** @name Other */ | ||
| 103 | //@{ | ||
| 104 | |||
| 105 | //@} | ||
| 106 | protected: | ||
| 107 | private: | ||
| 108 | REGISTER_LOGGER("openstudio.model.PipeIndoor"); | ||
| 109 | }; | ||
| 110 | |||
| 111 | } // namespace detail | ||
| 112 | |||
| 113 | } // namespace model | ||
| 114 | } // namespace openstudio | ||
| 115 | |||
| 116 | #endif // MODEL_PIPEINDOOR_IMPL_HPP | ||
| 117 |