| 157 | } |
| 158 | |
| 159 | std::vector<IdfObject> AirLoopHVACUnitarySystem_Impl::remove() { |
| 160 | std::vector<IdfObject> result; |
| 161 | |
| 162 | if (boost::optional<HVACComponent> _supplyFan = this->supplyFan()) { |
| 163 | std::vector<IdfObject> removedFans = _supplyFan->remove(); |
| 164 | result.insert(result.end(), removedFans.begin(), removedFans.end()); |
| 165 | } |
| 166 | |
| 167 | if (boost::optional<HVACComponent> _coolingCoil = this->coolingCoil()) { |
| 168 | if (boost::optional<PlantLoop> loop = _coolingCoil->plantLoop()) { |
| 169 | loop->removeDemandBranchWithComponent(*_coolingCoil); |
| 170 | } |
| 171 | std::vector<IdfObject> removedCoolingCoils = _coolingCoil->remove(); |
| 172 | result.insert(result.end(), removedCoolingCoils.begin(), removedCoolingCoils.end()); |
| 173 | } |
| 174 | |
| 175 | if (boost::optional<HVACComponent> _heatingCoil = this->heatingCoil()) { |
| 176 | if (boost::optional<PlantLoop> loop = _heatingCoil->plantLoop()) { |
| 177 | loop->removeDemandBranchWithComponent(*_heatingCoil); |
| 178 | } |
| 179 | std::vector<IdfObject> removedHeatingCoils = _heatingCoil->remove(); |
| 180 | result.insert(result.end(), removedHeatingCoils.begin(), removedHeatingCoils.end()); |
| 181 | } |
| 182 | |
| 183 | if (boost::optional<HVACComponent> _supplementalHeatingCoil = this->supplementalHeatingCoil()) { |
| 184 | if (boost::optional<PlantLoop> loop = _supplementalHeatingCoil->plantLoop()) { |
| 185 | loop->removeDemandBranchWithComponent(*_supplementalHeatingCoil); |
| 186 | } |
| 187 | std::vector<IdfObject> removedSuppHeatingCoils = _supplementalHeatingCoil->remove(); |
| 188 | result.insert(result.end(), removedSuppHeatingCoils.begin(), removedSuppHeatingCoils.end()); |
| 189 | } |
| 190 | |
| 191 | if (auto designSpec = designSpecificationMultispeedObject()) { |
| 192 | auto removed = designSpec->remove(); |
| 193 | result.insert(result.end(), removed.begin(), removed.end()); |
| 194 | } |
| 195 | |
| 196 | std::vector<IdfObject> removedUnitarySystem = ZoneHVACComponent_Impl::remove(); |
| 197 | result.insert(result.end(), removedUnitarySystem.begin(), removedUnitarySystem.end()); |
| 198 | |
| 199 | return result; |
| 200 | } |
| 201 | |
| 202 | bool AirLoopHVACUnitarySystem_Impl::addToNode(Node& node) { |
| 203 | bool result = ZoneHVACComponent_Impl::addToNode(node); |
nothing calls this directly
no test coverage detected