GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 6.5% 2 / 0 / 31
Functions: 10.0% 1 / 0 / 10
Branches: 4.8% 1 / 0 / 21

src/model/PlantEquipmentOperationOutdoorRelativeHumidity.cpp
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 #include "PlantEquipmentOperationOutdoorRelativeHumidity.hpp"
7 #include "PlantEquipmentOperationOutdoorRelativeHumidity_Impl.hpp"
8 #include <utilities/idd/OS_PlantEquipmentOperation_OutdoorRelativeHumidity_FieldEnums.hxx>
9 #include <utilities/idd/IddEnums.hxx>
10 #include "../utilities/core/Assert.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 namespace detail {
16
17 ✗ PlantEquipmentOperationOutdoorRelativeHumidity_Impl::PlantEquipmentOperationOutdoorRelativeHumidity_Impl(const IdfObject& idfObject,
18 ✗ Model_Impl* model, bool keepHandle)
19 ✗ : PlantEquipmentOperationRangeBasedScheme_Impl(idfObject, model, keepHandle) {
20 ✗ OS_ASSERT(idfObject.iddObject().type() == PlantEquipmentOperationOutdoorRelativeHumidity::iddObjectType());
21 ✗ }
22
23 ✗ PlantEquipmentOperationOutdoorRelativeHumidity_Impl::PlantEquipmentOperationOutdoorRelativeHumidity_Impl(
24 ✗ const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle)
25 ✗ : PlantEquipmentOperationRangeBasedScheme_Impl(other, model, keepHandle) {
26 ✗ OS_ASSERT(other.iddObject().type() == PlantEquipmentOperationOutdoorRelativeHumidity::iddObjectType());
27 ✗ }
28
29 ✗ PlantEquipmentOperationOutdoorRelativeHumidity_Impl::PlantEquipmentOperationOutdoorRelativeHumidity_Impl(
30 ✗ const PlantEquipmentOperationOutdoorRelativeHumidity_Impl& other, Model_Impl* model, bool keepHandle)
31 ✗ : PlantEquipmentOperationRangeBasedScheme_Impl(other, model, keepHandle) {}
32
33 ✗ const std::vector<std::string>& PlantEquipmentOperationOutdoorRelativeHumidity_Impl::outputVariableNames() const {
34 ✗ static const std::vector<std::string> result;
35 ✗ return result;
36 }
37
38 ✗ IddObjectType PlantEquipmentOperationOutdoorRelativeHumidity_Impl::iddObjectType() const {
39 ✗ return PlantEquipmentOperationOutdoorRelativeHumidity::iddObjectType();
40 }
41
42 ✗ double PlantEquipmentOperationOutdoorRelativeHumidity_Impl::maximumUpperLimit() const {
43 ✗ return 100.0;
44 }
45
46 ✗ double PlantEquipmentOperationOutdoorRelativeHumidity_Impl::minimumLowerLimit() const {
47 ✗ return 0.0;
48 }
49
50 } // namespace detail
51
52 ✗ PlantEquipmentOperationOutdoorRelativeHumidity::PlantEquipmentOperationOutdoorRelativeHumidity(const Model& model)
53 ✗ : PlantEquipmentOperationRangeBasedScheme(PlantEquipmentOperationOutdoorRelativeHumidity::iddObjectType(), model) {
54 ✗ OS_ASSERT(getImpl<detail::PlantEquipmentOperationOutdoorRelativeHumidity_Impl>());
55 ✗ }
56
57 7728 IddObjectType PlantEquipmentOperationOutdoorRelativeHumidity::iddObjectType() {
58
1/1
✓ Branch 1 taken 7728 times.
7728 return {IddObjectType::OS_PlantEquipmentOperation_OutdoorRelativeHumidity};
59 }
60
61 /// @cond
62 ✗ PlantEquipmentOperationOutdoorRelativeHumidity::PlantEquipmentOperationOutdoorRelativeHumidity(
63 ✗ std::shared_ptr<detail::PlantEquipmentOperationOutdoorRelativeHumidity_Impl> impl)
64 ✗ : PlantEquipmentOperationRangeBasedScheme(std::move(impl)) {}
65 /// @endcond
66
67 } // namespace model
68 } // namespace openstudio
69