src/model/AirflowNetworkSimulationControl_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_AIRFLOWNETWORKSIMULATIONCONTROL_IMPL_HPP | ||
| 7 | #define MODEL_AIRFLOWNETWORKSIMULATIONCONTROL_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ParentObject_Impl.hpp" | ||
| 10 | #include "ModelObject_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | namespace detail { | ||
| 16 | |||
| 17 | class MODEL_API AirflowNetworkSimulationControl_Impl : public ParentObject_Impl | ||
| 18 | { | ||
| 19 | public: | ||
| 20 | /** @name Constructors and Destructors */ | ||
| 21 | //@{ | ||
| 22 | |||
| 23 | // constructor | ||
| 24 | AirflowNetworkSimulationControl_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 25 | |||
| 26 | // construct from workspace | ||
| 27 | AirflowNetworkSimulationControl_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 28 | |||
| 29 | // copy constructor | ||
| 30 | AirflowNetworkSimulationControl_Impl(const AirflowNetworkSimulationControl_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 31 | |||
| 32 | // virtual destructor | ||
| 33 | 19 | virtual ~AirflowNetworkSimulationControl_Impl() override = default; | |
| 34 | |||
| 35 | //@} | ||
| 36 | /** @name Virtual Methods */ | ||
| 37 | //@{ | ||
| 38 | |||
| 39 | // return the parent object in the hierarchy | ||
| 40 | virtual boost::optional<ParentObject> parent() const override; | ||
| 41 | |||
| 42 | // return any children objects in the hierarchy | ||
| 43 | virtual std::vector<ModelObject> children() const override; | ||
| 44 | |||
| 45 | /// get a vector of allowable children types | ||
| 46 | virtual std::vector<IddObjectType> allowableChildTypes() const override; | ||
| 47 | |||
| 48 | // Get all output variable names that could be associated with this object. | ||
| 49 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 50 | |||
| 51 | virtual IddObjectType iddObjectType() const override; | ||
| 52 | |||
| 53 | //@} | ||
| 54 | /** @name Getters */ | ||
| 55 | //@{ | ||
| 56 | |||
| 57 | boost::optional<std::string> airflowNetworkControl() const; | ||
| 58 | bool isAirflowNetworkControlDefaulted() const; | ||
| 59 | boost::optional<std::string> windPressureCoefficientType() const; | ||
| 60 | bool isWindPressureCoefficientTypeDefaulted() const; | ||
| 61 | boost::optional<std::string> heightSelectionforLocalWindPressureCalculation() const; | ||
| 62 | bool isHeightSelectionforLocalWindPressureCalculationDefaulted() const; | ||
| 63 | boost::optional<std::string> buildingType() const; | ||
| 64 | bool isBuildingTypeDefaulted() const; | ||
| 65 | boost::optional<int> maximumNumberofIterations() const; | ||
| 66 | bool isMaximumNumberofIterationsDefaulted() const; | ||
| 67 | boost::optional<std::string> initializationType() const; | ||
| 68 | bool isInitializationTypeDefaulted() const; | ||
| 69 | boost::optional<double> relativeAirflowConvergenceTolerance() const; | ||
| 70 | bool isRelativeAirflowConvergenceToleranceDefaulted() const; | ||
| 71 | boost::optional<double> absoluteAirflowConvergenceTolerance() const; | ||
| 72 | bool isAbsoluteAirflowConvergenceToleranceDefaulted() const; | ||
| 73 | boost::optional<double> convergenceAccelerationLimit() const; | ||
| 74 | bool isConvergenceAccelerationLimitDefaulted() const; | ||
| 75 | boost::optional<double> azimuthAngleofLongAxisofBuilding() const; | ||
| 76 | bool isAzimuthAngleofLongAxisofBuildingDefaulted() const; | ||
| 77 | boost::optional<double> buildingAspectRatio() const; | ||
| 78 | bool isBuildingAspectRatioDefaulted() const; | ||
| 79 | bool heightDependenceofExternalNodeTemperature() const; | ||
| 80 | bool isHeightDependenceofExternalNodeTemperatureDefaulted() const; | ||
| 81 | std::string solver() const; | ||
| 82 | bool isSolverDefaulted() const; | ||
| 83 | bool allowUnsupportedZoneEquipment() const; | ||
| 84 | bool isAllowUnsupportedZoneEquipmentDefaulted() const; | ||
| 85 | |||
| 86 | //@} | ||
| 87 | /** @name Setters */ | ||
| 88 | //@{ | ||
| 89 | |||
| 90 | bool setAirflowNetworkControl(const std::string& airflowNetworkControl); | ||
| 91 | void resetAirflowNetworkControl(); | ||
| 92 | bool setWindPressureCoefficientType(const std::string& type); | ||
| 93 | void resetWindPressureCoefficientType(); | ||
| 94 | bool setHeightSelectionforLocalWindPressureCalculation(const std::string& height); | ||
| 95 | void resetHeightSelectionforLocalWindPressureCalculation(); | ||
| 96 | bool setBuildingType(const std::string& type); | ||
| 97 | void resetBuildingType(); | ||
| 98 | bool setMaximumNumberofIterations(int number); | ||
| 99 | void resetMaximumNumberofIterations(); | ||
| 100 | bool setInitializationType(const std::string& type); | ||
| 101 | void resetInitializationType(); | ||
| 102 | bool setRelativeAirflowConvergenceTolerance(double tolerance); | ||
| 103 | void resetRelativeAirflowConvergenceTolerance(); | ||
| 104 | bool setAbsoluteAirflowConvergenceTolerance(double tolerance); | ||
| 105 | void resetAbsoluteAirflowConvergenceTolerance(); | ||
| 106 | bool setConvergenceAccelerationLimit(double limit); | ||
| 107 | void resetConvergenceAccelerationLimit(); | ||
| 108 | bool setAzimuthAngleofLongAxisofBuilding(double angle); | ||
| 109 | void resetAzimuthAngleofLongAxisofBuilding(); | ||
| 110 | bool setBuildingAspectRatio(double ratio); | ||
| 111 | void resetBuildingAspectRatio(); | ||
| 112 | bool setHeightDependenceofExternalNodeTemperature(bool tf); | ||
| 113 | void resetHeightDependenceofExternalNodeTemperature(); | ||
| 114 | bool setSolver(const std::string& solver); | ||
| 115 | void resetSolver(); | ||
| 116 | bool setAllowUnsupportedZoneEquipment(bool allowUnsupportedZoneEquipment); | ||
| 117 | void resetAllowUnsupportedZoneEquipment(); | ||
| 118 | |||
| 119 | //@} | ||
| 120 | |||
| 121 | private: | ||
| 122 | REGISTER_LOGGER("openstudio.model.AirflowNetworkSimulationControl"); | ||
| 123 | }; | ||
| 124 | |||
| 125 | } // namespace detail | ||
| 126 | |||
| 127 | } // namespace model | ||
| 128 | } // namespace openstudio | ||
| 129 | |||
| 130 | #endif // MODEL_AIRFLOWNETWORKSIMULATIONCONTROL_IMPL_HPP | ||
| 131 |