| 413 | } |
| 414 | |
| 415 | bool ChillerAbsorption_Impl::addToTertiaryNode(Node& node) { |
| 416 | auto _model = node.model(); |
| 417 | auto t_plantLoop = node.plantLoop(); |
| 418 | |
| 419 | // Only accept adding to a node that is on a demand side of a plant loop |
| 420 | // Since tertiary here = generator loop (heating) |
| 421 | if (t_plantLoop) { |
| 422 | if (t_plantLoop->demandComponent(node.handle())) { |
| 423 | // Call base class method which accepts both supply and demand |
| 424 | bool ok = WaterToWaterComponent_Impl::addToTertiaryNode(node); |
| 425 | if (ok) { |
| 426 | LOG(Info, "Setting Generator Heat Source Type to 'HotWater' for " << briefDescription()); |
| 427 | this->setGeneratorHeatSourceType("HotWater"); |
| 428 | return true; |
| 429 | } |
| 430 | } else { |
| 431 | LOG(Info, |
| 432 | "Tertiary Loop (Generator Loop) connections can only be placed on the Demand side (of a Heating Loop), for " << briefDescription()); |
| 433 | } |
| 434 | } |
| 435 | return false; |
| 436 | } |
| 437 | |
| 438 | bool ChillerAbsorption_Impl::removeFromTertiaryPlantLoop() { |
| 439 | // Disconnect the component |