std::vector<ModelObject> ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::children() const { std::vector<ModelObject> result; result.push_back(supplyAirFan()); result.push_back(coolingCoil()); result.push_back(heatingCoil()); return result; }
ModelObject ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::clone(Model & model) const { ModelObject terminalClone = ZoneHVACComponent_Impl::clone(model); HVACComponent fanClone = supplyAirFan().clone(model).cast<HVACComponent>(); CoilCoolingDXVariableRefrigerantFlow coolingCoilClone = coolingCoil().clone(model).cast<CoilCoolingDXVariableRefrigerantFlow>(); CoilHeatingDXVariableRefrigerantFlow heatingCoilClone = heatingCoil().clone(model).cast<CoilHeatingDXVariableRefrigerantFlow>(); terminalClone.getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setSupplyAirFan(fanClone); terminalClone.getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setCoolingCoil(coolingCoilClone); terminalClone.getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setHeatingCoil(heatingCoilClone); return terminalClone; }
ModelObject ZoneHVACEnergyRecoveryVentilator_Impl::clone(Model model) const { auto cloneObject = ZoneHVACComponent_Impl::clone(model).cast<ZoneHVACEnergyRecoveryVentilator>(); auto const supplyFanClone = supplyAirFan().clone(model).cast<HVACComponent>(); cloneObject.setSupplyAirFan(supplyFanClone); auto const exhaustFanClone = exhaustAirFan().clone(model).cast<HVACComponent>(); cloneObject.setExhaustAirFan(exhaustFanClone); auto const heatExchangerClone = heatExchanger().clone(model).cast<HVACComponent>(); cloneObject.setHeatExchanger(heatExchangerClone); if (auto const controllerObj = controller()) { auto const controllerClone = controllerObj->clone(model).cast<ZoneHVACEnergyRecoveryVentilatorController>(); cloneObject.setController(controllerClone); } return cloneObject; }
ModelObject ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl::clone(Model model) const { ModelObject terminalClone = ZoneHVACComponent_Impl::clone(model); HVACComponent fanClone = supplyAirFan().clone(model).cast<HVACComponent>(); CoilCoolingDXVariableRefrigerantFlow coolingCoilClone = coolingCoil().clone(model).cast<CoilCoolingDXVariableRefrigerantFlow>(); CoilHeatingDXVariableRefrigerantFlow heatingCoilClone = heatingCoil().clone(model).cast<CoilHeatingDXVariableRefrigerantFlow>(); terminalClone.getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setSupplyAirFan(fanClone); terminalClone.getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setCoolingCoil(coolingCoilClone); terminalClone.getImpl<detail::ZoneHVACTerminalUnitVariableRefrigerantFlow_Impl>()->setHeatingCoil(heatingCoilClone); // TODO Move this into base clase terminalClone.setString(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::TerminalUnitAirInletNode,""); terminalClone.setString(OS_ZoneHVAC_TerminalUnit_VariableRefrigerantFlowFields::TerminalUnitAirOutletNode,""); return terminalClone; }
boost::optional<ModelObject> ZoneHVACUnitHeater_Impl::supplyAirFanAsModelObject() const { OptionalModelObject result = supplyAirFan(); return result; }