src/model/ConstructionWithInternalSource_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_CONSTRUCTIONWITHINTERNALSOURCE_IMPL_HPP | ||
| 7 | #define MODEL_CONSTRUCTIONWITHINTERNALSOURCE_IMPL_HPP | ||
| 8 | |||
| 9 | #include "LayeredConstruction_Impl.hpp" | ||
| 10 | |||
| 11 | namespace openstudio { | ||
| 12 | namespace model { | ||
| 13 | namespace detail { | ||
| 14 | |||
| 15 | class MODEL_API ConstructionWithInternalSource_Impl : public LayeredConstruction_Impl | ||
| 16 | { | ||
| 17 | |||
| 18 | public: | ||
| 19 | // constructor | ||
| 20 | ConstructionWithInternalSource_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 21 | |||
| 22 | // construct from workspace | ||
| 23 | ConstructionWithInternalSource_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 24 | |||
| 25 | ConstructionWithInternalSource_Impl(const ConstructionWithInternalSource_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 26 | |||
| 27 | // virtual destructor | ||
| 28 | 31 | virtual ~ConstructionWithInternalSource_Impl() override = default; | |
| 29 | |||
| 30 | /** Get all output variables names that could be associated with this object. These variables | ||
| 31 | * may or may not be available for each simulation, need to check report variable dictionary | ||
| 32 | * to see if the variable is available. Each concrete class should override this method.*/ | ||
| 33 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 34 | |||
| 35 | virtual IddObjectType iddObjectType() const override; | ||
| 36 | |||
| 37 | virtual int renderingColorIndex() const override; | ||
| 38 | |||
| 39 | virtual bool eraseLayer(unsigned layerIndex) override; | ||
| 40 | |||
| 41 | virtual bool setLayers(const std::vector<Material>& materials) override; | ||
| 42 | |||
| 43 | virtual bool setLayer(const ModelPartitionMaterial& modelPartitionMaterial) override; | ||
| 44 | |||
| 45 | /// Returns sourcePresentAfterLayerNumber. | ||
| 46 | int sourcePresentAfterLayerNumber() const; | ||
| 47 | bool setSourcePresentAfterLayerNumber(int sourcePresentAfterLayerNumber); | ||
| 48 | |||
| 49 | /// Returns temperatureCalculationRequestedAfterLayerNumber. | ||
| 50 | int temperatureCalculationRequestedAfterLayerNumber() const; | ||
| 51 | bool setTemperatureCalculationRequestedAfterLayerNumber(int temperatureCalculationRequestedAfterLayerNumber); | ||
| 52 | |||
| 53 | /// Returns dimensionsForTheCTFCalculation. | ||
| 54 | int dimensionsForTheCTFCalculation() const; | ||
| 55 | bool setDimensionsForTheCTFCalculation(int dimensionsForTheCTFCalculation); | ||
| 56 | |||
| 57 | /// Returns tubeSpacing. | ||
| 58 | double tubeSpacing() const; | ||
| 59 | bool setTubeSpacing(double tubeSpacing); | ||
| 60 | |||
| 61 | /// Returns twoDimensionalTemperatureCalculationPosition. | ||
| 62 | double twoDimensionalTemperatureCalculationPosition() const; | ||
| 63 | bool setTwoDimensionalTemperatureCalculationPosition(double twoDimensionalTemperatureCalculationPosition); | ||
| 64 | |||
| 65 | ConstructionWithInternalSource reverseConstructionWithInternalSource() const; | ||
| 66 | |||
| 67 | private: | ||
| 68 | REGISTER_LOGGER("openstudio.model.ConstructionWithInternalSource"); | ||
| 69 | |||
| 70 | void onNumLayersChanged(); | ||
| 71 | }; | ||
| 72 | |||
| 73 | } // namespace detail | ||
| 74 | } // namespace model | ||
| 75 | } // namespace openstudio | ||
| 76 | |||
| 77 | #endif // MODEL_CONSTRUCTIONWITHINTERNALSOURCE_IMPL_HPP | ||
| 78 |