| 120 | } |
| 121 | |
| 122 | std::vector<IdfObject> AvailabilityManagerNightCycle_Impl::remove() { |
| 123 | std::vector<IdfObject> result; |
| 124 | |
| 125 | // Remove the ModelObjectLists. You have to clear them first, or it'll also remove the ThermalZones contained within. |
| 126 | { |
| 127 | ModelObjectList mo_list = controlThermalZoneList(); |
| 128 | mo_list.removeAllModelObjects(); |
| 129 | std::vector<IdfObject> removedMoList = mo_list.remove(); |
| 130 | result.insert(result.end(), removedMoList.begin(), removedMoList.end()); |
| 131 | } |
| 132 | |
| 133 | { |
| 134 | ModelObjectList mo_list = coolingControlThermalZoneList(); |
| 135 | mo_list.removeAllModelObjects(); |
| 136 | std::vector<IdfObject> removedMoList = mo_list.remove(); |
| 137 | result.insert(result.end(), removedMoList.begin(), removedMoList.end()); |
| 138 | } |
| 139 | |
| 140 | { |
| 141 | ModelObjectList mo_list = heatingControlThermalZoneList(); |
| 142 | mo_list.removeAllModelObjects(); |
| 143 | std::vector<IdfObject> removedMoList = mo_list.remove(); |
| 144 | result.insert(result.end(), removedMoList.begin(), removedMoList.end()); |
| 145 | } |
| 146 | |
| 147 | { |
| 148 | ModelObjectList mo_list = heatingZoneFansOnlyThermalZoneList(); |
| 149 | mo_list.removeAllModelObjects(); |
| 150 | std::vector<IdfObject> removedMoList = mo_list.remove(); |
| 151 | result.insert(result.end(), removedMoList.begin(), removedMoList.end()); |
| 152 | } |
| 153 | |
| 154 | std::vector<IdfObject> AvailabilityManagerNightCycle = ModelObject_Impl::remove(); |
| 155 | result.insert(result.end(), AvailabilityManagerNightCycle.begin(), AvailabilityManagerNightCycle.end()); |
| 156 | |
| 157 | return result; |
| 158 | } |
| 159 | |
| 160 | boost::optional<AirLoopHVAC> AvailabilityManagerNightCycle_Impl::airLoopHVAC() const { |
| 161 | if (boost::optional<Loop> _loop = loop()) { |
nothing calls this directly
no test coverage detected