| 170 | } |
| 171 | |
| 172 | bool CentralHeatPumpSystem_Impl::addToTertiaryNode(Node& node) { |
| 173 | auto _model = node.model(); |
| 174 | auto t_plantLoop = node.plantLoop(); |
| 175 | |
| 176 | // Only accept adding to a node that is on a supply side of a plant loop |
| 177 | // Since tertiary here = heating loop |
| 178 | if (t_plantLoop) { |
| 179 | if (t_plantLoop->supplyComponent(node.handle())) { |
| 180 | // Call base class method which accepts both supply and demand |
| 181 | return WaterToWaterComponent_Impl::addToTertiaryNode(node); |
| 182 | } else { |
| 183 | LOG(Info, "Cannot connect the tertiary (=heating) loop to the demand side for " << briefDescription()); |
| 184 | } |
| 185 | } |
| 186 | return false; |
| 187 | } |
| 188 | |
| 189 | boost::optional<ModelObjectList> CentralHeatPumpSystem_Impl::chillerHeaterModuleList() const { |
| 190 | return getObject<ModelObject>().getModelObjectTarget<ModelObjectList>(OS_CentralHeatPumpSystemFields::ChillerHeaterModuleListName); |
no test coverage detected