GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 0.0% 0 / 0 / 12
Functions: 0.0% 0 / 0 / 1
Branches: 0.0% 0 / 0 / 18

src/energyplus/ForwardTranslator/ForwardTranslateSetpointManagerSingleZoneHumidityMaximum.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 "../ForwardTranslator.hpp"
7 #include "../../model/SetpointManagerSingleZoneHumidityMaximum.hpp"
8 #include "../../model/ThermalZone.hpp"
9 #include "../../model/Node.hpp"
10 #include "../../model/Node_Impl.hpp"
11 #include "../../model/PortList.hpp"
12 #include <utilities/idd/SetpointManager_SingleZone_Humidity_Maximum_FieldEnums.hxx>
13 #include "../../utilities/idd/IddEnums.hpp"
14 #include <utilities/idd/IddEnums.hxx>
15
16 using namespace openstudio::model;
17
18 namespace openstudio {
19
20 namespace energyplus {
21
22 boost::optional<IdfObject>
23 ✗ ForwardTranslator::translateSetpointManagerSingleZoneHumidityMaximum(SetpointManagerSingleZoneHumidityMaximum& modelObject) {
24 ✗ boost::optional<double> d;
25
26 // Name
27 ✗ IdfObject idfObject = createRegisterAndNameIdfObject(openstudio::IddObjectType::SetpointManager_SingleZone_Humidity_Maximum, modelObject);
28
29 // ControlVariable \deprecated
30 // ScheduleName \deprecated
31
32 // ControlZoneAirNodeName
33 ✗ if (boost::optional<ThermalZone> thermalZone = modelObject.controlZone()) {
34 ✗ auto node = thermalZone->zoneAirNode();
35 ✗ idfObject.setString(SetpointManager_SingleZone_Humidity_MaximumFields::ControlZoneAirNodeName, node.name().get());
36 ✗ }
37
38 // Setpoint Node or NodeList Name
39 ✗ if (boost::optional<Node> node = modelObject.setpointNode()) {
40 ✗ idfObject.setString(SetpointManager_SingleZone_Humidity_MaximumFields::SetpointNodeorNodeListName, node->name().get());
41 ✗ }
42
43 ✗ return idfObject;
44 ✗ }
45
46 } // namespace energyplus
47
48 } // namespace openstudio
49