| 111 | } |
| 112 | |
| 113 | OptionalModelObject Loop_Impl::component(openstudio::Handle handle) const { |
| 114 | boost::optional<ModelObject> supplyComp = this->supplyComponent(handle); |
| 115 | if (supplyComp) { |
| 116 | return supplyComp; |
| 117 | } |
| 118 | return this->demandComponent(handle); |
| 119 | } |
| 120 | |
| 121 | boost::optional<ModelObject> Loop_Impl::demandComponent(openstudio::Handle handle) const { |
| 122 | auto comps = demandComponents(); |