src/model/SurfacePropertyLocalEnvironment_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_SURFACEPROPERTYLOCALENVIRONMENT_IMPL_HPP | ||
| 7 | #define MODEL_SURFACEPROPERTYLOCALENVIRONMENT_IMPL_HPP | ||
| 8 | |||
| 9 | #include <model/ModelAPI.hpp> | ||
| 10 | #include "ModelObject_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class PlanarSurface; | ||
| 16 | class Surface; | ||
| 17 | class SubSurface; | ||
| 18 | class Schedule; | ||
| 19 | class SurfacePropertySurroundingSurfaces; | ||
| 20 | class SurfacePropertyGroundSurfaces; | ||
| 21 | // class OutdoorAirNode; | ||
| 22 | |||
| 23 | namespace detail { | ||
| 24 | |||
| 25 | /** SurfacePropertyLocalEnvironment_Impl is a ModelObject_Impl that is the implementation class for SurfacePropertyLocalEnvironment.*/ | ||
| 26 | class MODEL_API SurfacePropertyLocalEnvironment_Impl : public ModelObject_Impl | ||
| 27 | { | ||
| 28 | public: | ||
| 29 | /** @name Constructors and Destructors */ | ||
| 30 | //@{ | ||
| 31 | |||
| 32 | SurfacePropertyLocalEnvironment_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 33 | |||
| 34 | SurfacePropertyLocalEnvironment_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 35 | |||
| 36 | SurfacePropertyLocalEnvironment_Impl(const SurfacePropertyLocalEnvironment_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 37 | |||
| 38 | 11 | virtual ~SurfacePropertyLocalEnvironment_Impl() override = default; | |
| 39 | |||
| 40 | //@} | ||
| 41 | /** @name Virtual Methods */ | ||
| 42 | //@{ | ||
| 43 | |||
| 44 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 45 | |||
| 46 | virtual IddObjectType iddObjectType() const override; | ||
| 47 | |||
| 48 | virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override; | ||
| 49 | |||
| 50 | //@} | ||
| 51 | /** @name Getters */ | ||
| 52 | //@{ | ||
| 53 | |||
| 54 | PlanarSurface exteriorSurface() const; | ||
| 55 | boost::optional<Surface> exteriorSurfaceAsSurface() const; | ||
| 56 | boost::optional<SubSurface> exteriorSurfaceAsSubSurface() const; | ||
| 57 | |||
| 58 | boost::optional<Schedule> externalShadingFractionSchedule() const; | ||
| 59 | |||
| 60 | boost::optional<SurfacePropertySurroundingSurfaces> surfacePropertySurroundingSurfaces() const; | ||
| 61 | |||
| 62 | boost::optional<SurfacePropertyGroundSurfaces> surfacePropertyGroundSurfaces() const; | ||
| 63 | |||
| 64 | // boost::optional<OutdoorAirNode> outdoorAirNode() const; | ||
| 65 | |||
| 66 | //@} | ||
| 67 | /** @name Setters */ | ||
| 68 | //@{ | ||
| 69 | |||
| 70 | bool setExteriorSurface(const PlanarSurface& surface); | ||
| 71 | |||
| 72 | bool setExternalShadingFractionSchedule(Schedule& schedule); | ||
| 73 | void resetExternalShadingFractionSchedule(); | ||
| 74 | |||
| 75 | bool setSurfacePropertySurroundingSurfaces(const SurfacePropertySurroundingSurfaces& surfacePropertySurroundingSurfaces); | ||
| 76 | void resetSurfacePropertySurroundingSurfaces(); | ||
| 77 | |||
| 78 | bool setSurfacePropertyGroundSurfaces(const SurfacePropertyGroundSurfaces& surfacePropertyGroundSurfaces); | ||
| 79 | void resetSurfacePropertyGroundSurfaces(); | ||
| 80 | |||
| 81 | // bool setOutdoorAirNode(const OutdoorAirNode& outdoorAirNode); | ||
| 82 | // void resetOutdoorAirNode(); | ||
| 83 | |||
| 84 | //@} | ||
| 85 | /** @name Other */ | ||
| 86 | //@{ | ||
| 87 | |||
| 88 | //@} | ||
| 89 | protected: | ||
| 90 | private: | ||
| 91 | − | REGISTER_LOGGER("openstudio.model.SurfacePropertyLocalEnvironment"); | |
| 92 | |||
| 93 | boost::optional<PlanarSurface> optionalExteriorSurface() const; | ||
| 94 | }; | ||
| 95 | |||
| 96 | } // namespace detail | ||
| 97 | |||
| 98 | } // namespace model | ||
| 99 | } // namespace openstudio | ||
| 100 | |||
| 101 | #endif // MODEL_SURFACEPROPERTYLOCALENVIRONMENT_IMPL_HPP | ||
| 102 |