src/model/DefaultConstructionSet_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_DEFAULTCONSTRUCTIONSET_IMPL_HPP | ||
| 7 | #define MODEL_DEFAULTCONSTRUCTIONSET_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ResourceObject_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class PlanarSurface; | ||
| 16 | class ConstructionBase; | ||
| 17 | class DefaultSubSurfaceConstructions; | ||
| 18 | class DefaultSurfaceConstructions; | ||
| 19 | class DefaultConstructionSet; | ||
| 20 | |||
| 21 | namespace detail { | ||
| 22 | |||
| 23 | /** DefaultConstructionSet_Impl is a ResourceObject_Impl that is the implementation class for DefaultConstructionSet.*/ | ||
| 24 | class MODEL_API DefaultConstructionSet_Impl : public ResourceObject_Impl | ||
| 25 | { | ||
| 26 | |||
| 27 | public: | ||
| 28 | /** @name Constructors and Destructors */ | ||
| 29 | //@{ | ||
| 30 | |||
| 31 | DefaultConstructionSet_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | DefaultConstructionSet_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 34 | |||
| 35 | DefaultConstructionSet_Impl(const DefaultConstructionSet_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 36 | |||
| 37 | 768 | virtual ~DefaultConstructionSet_Impl() override = default; | |
| 38 | |||
| 39 | //@} | ||
| 40 | |||
| 41 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 42 | |||
| 43 | virtual IddObjectType iddObjectType() const override; | ||
| 44 | |||
| 45 | /** @name Getters */ | ||
| 46 | //@{ | ||
| 47 | |||
| 48 | boost::optional<DefaultSurfaceConstructions> defaultExteriorSurfaceConstructions() const; | ||
| 49 | |||
| 50 | boost::optional<DefaultSurfaceConstructions> defaultInteriorSurfaceConstructions() const; | ||
| 51 | |||
| 52 | boost::optional<DefaultSurfaceConstructions> defaultGroundContactSurfaceConstructions() const; | ||
| 53 | |||
| 54 | boost::optional<DefaultSubSurfaceConstructions> defaultExteriorSubSurfaceConstructions() const; | ||
| 55 | |||
| 56 | boost::optional<DefaultSubSurfaceConstructions> defaultInteriorSubSurfaceConstructions() const; | ||
| 57 | |||
| 58 | boost::optional<ConstructionBase> interiorPartitionConstruction() const; | ||
| 59 | |||
| 60 | boost::optional<ConstructionBase> spaceShadingConstruction() const; | ||
| 61 | |||
| 62 | boost::optional<ConstructionBase> buildingShadingConstruction() const; | ||
| 63 | |||
| 64 | boost::optional<ConstructionBase> siteShadingConstruction() const; | ||
| 65 | |||
| 66 | boost::optional<ConstructionBase> adiabaticSurfaceConstruction() const; | ||
| 67 | |||
| 68 | //@} | ||
| 69 | /** @name Setters */ | ||
| 70 | //@{ | ||
| 71 | |||
| 72 | bool setDefaultExteriorSurfaceConstructions(const DefaultSurfaceConstructions& defaultSurfaceConstructions); | ||
| 73 | |||
| 74 | void resetDefaultExteriorSurfaceConstructions(); | ||
| 75 | |||
| 76 | bool setDefaultInteriorSurfaceConstructions(const DefaultSurfaceConstructions& defaultSurfaceConstructions); | ||
| 77 | |||
| 78 | void resetDefaultInteriorSurfaceConstructions(); | ||
| 79 | |||
| 80 | bool setDefaultGroundContactSurfaceConstructions(const DefaultSurfaceConstructions& defaultSurfaceConstructions); | ||
| 81 | |||
| 82 | void resetDefaultGroundContactSurfaceConstructions(); | ||
| 83 | |||
| 84 | bool setDefaultExteriorSubSurfaceConstructions(const DefaultSubSurfaceConstructions& defaultSubSurfaceConstructions); | ||
| 85 | |||
| 86 | void resetDefaultExteriorSubSurfaceConstructions(); | ||
| 87 | |||
| 88 | bool setDefaultInteriorSubSurfaceConstructions(const DefaultSubSurfaceConstructions& defaultSubSurfaceConstructions); | ||
| 89 | |||
| 90 | void resetDefaultInteriorSubSurfaceConstructions(); | ||
| 91 | |||
| 92 | bool setInteriorPartitionConstruction(const ConstructionBase& construction); | ||
| 93 | |||
| 94 | void resetInteriorPartitionConstruction(); | ||
| 95 | |||
| 96 | bool setSpaceShadingConstruction(const ConstructionBase& construction); | ||
| 97 | |||
| 98 | void resetSpaceShadingConstruction(); | ||
| 99 | |||
| 100 | bool setBuildingShadingConstruction(const ConstructionBase& construction); | ||
| 101 | |||
| 102 | void resetBuildingShadingConstruction(); | ||
| 103 | |||
| 104 | bool setSiteShadingConstruction(const ConstructionBase& construction); | ||
| 105 | |||
| 106 | void resetSiteShadingConstruction(); | ||
| 107 | |||
| 108 | bool setAdiabaticSurfaceConstruction(const ConstructionBase& construction); | ||
| 109 | |||
| 110 | void resetAdiabaticSurfaceConstruction(); | ||
| 111 | |||
| 112 | //@} | ||
| 113 | |||
| 114 | /// Returns the default construction for this planar surface if available. | ||
| 115 | boost::optional<ConstructionBase> getDefaultConstruction(const PlanarSurface& planarSurface) const; | ||
| 116 | |||
| 117 | /// Merge this object with other one, keep fields from this object if set otherwise set to value from other. | ||
| 118 | void merge(const DefaultConstructionSet& other); | ||
| 119 | |||
| 120 | protected: | ||
| 121 | private: | ||
| 122 | − | REGISTER_LOGGER("openstudio.model.DefaultConstructionSet"); | |
| 123 | |||
| 124 | boost::optional<ModelObject> defaultExteriorSurfaceConstructionsAsModelObject() const; | ||
| 125 | boost::optional<ModelObject> defaultInteriorSurfaceConstructionsAsModelObject() const; | ||
| 126 | boost::optional<ModelObject> defaultGroundContactSurfaceConstructionsAsModelObject() const; | ||
| 127 | boost::optional<ModelObject> defaultExteriorSubSurfaceConstructionsAsModelObject() const; | ||
| 128 | boost::optional<ModelObject> defaultInteriorSubSurfaceConstructionsAsModelObject() const; | ||
| 129 | boost::optional<ModelObject> interiorPartitionConstructionAsModelObject() const; | ||
| 130 | boost::optional<ModelObject> spaceShadingConstructionAsModelObject() const; | ||
| 131 | boost::optional<ModelObject> buildingShadingConstructionAsModelObject() const; | ||
| 132 | boost::optional<ModelObject> siteShadingConstructionAsModelObject() const; | ||
| 133 | boost::optional<ModelObject> adiabaticSurfaceConstructionAsModelObject() const; | ||
| 134 | |||
| 135 | bool setDefaultExteriorSurfaceConstructionsAsModelObject(const boost::optional<ModelObject>& modelObject); | ||
| 136 | bool setDefaultInteriorSurfaceConstructionsAsModelObject(const boost::optional<ModelObject>& modelObject); | ||
| 137 | bool setDefaultGroundContactSurfaceConstructionsAsModelObject(const boost::optional<ModelObject>& modelObject); | ||
| 138 | bool setDefaultExteriorSubSurfaceConstructionsAsModelObject(const boost::optional<ModelObject>& modelObject); | ||
| 139 | bool setDefaultInteriorSubSurfaceConstructionsAsModelObject(const boost::optional<ModelObject>& modelObject); | ||
| 140 | bool setInteriorPartitionConstructionAsModelObject(const boost::optional<ModelObject>& modelObject); | ||
| 141 | bool setSpaceShadingConstructionAsModelObject(const boost::optional<ModelObject>& modelObject); | ||
| 142 | bool setBuildingShadingConstructionAsModelObject(const boost::optional<ModelObject>& modelObject); | ||
| 143 | bool setSiteShadingConstructionAsModelObject(const boost::optional<ModelObject>& modelObject); | ||
| 144 | bool setAdiabaticSurfaceConstructionAsModelObject(const boost::optional<ModelObject>& modelObject); | ||
| 145 | }; | ||
| 146 | |||
| 147 | } // namespace detail | ||
| 148 | |||
| 149 | } // namespace model | ||
| 150 | } // namespace openstudio | ||
| 151 | |||
| 152 | #endif // MODEL_DEFAULTCONSTRUCTIONSET_IMPL_HPP | ||
| 153 |