src/model/AvailabilityManagerNightCycle_Impl.hpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /*********************************************************************************************************************** | ||
| 2 | * OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC. | ||
| 3 | * See also https://openstudio.net/license | ||
| 4 | ***********************************************************************************************************************/ | ||
| 5 | |||
| 6 | #ifndef MODEL_AVAILABILITYMANAGERNIGHTCYCLE_IMPL_HPP | ||
| 7 | #define MODEL_AVAILABILITYMANAGERNIGHTCYCLE_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "AvailabilityManager_Impl.hpp" | ||
| 11 | #include "ModelObjectList.hpp" | ||
| 12 | |||
| 13 | namespace openstudio { | ||
| 14 | namespace model { | ||
| 15 | |||
| 16 | class Schedule; | ||
| 17 | class ThermalZone; | ||
| 18 | class AirLoopHVAC; | ||
| 19 | |||
| 20 | namespace detail { | ||
| 21 | |||
| 22 | /** AvailabilityManagerNightCycle_Impl is a ModelObject_Impl that is the implementation class for AvailabilityManagerNightCycle.*/ | ||
| 23 | class MODEL_API AvailabilityManagerNightCycle_Impl : public AvailabilityManager_Impl | ||
| 24 | { | ||
| 25 | |||
| 26 | public: | ||
| 27 | AvailabilityManagerNightCycle_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 28 | |||
| 29 | AvailabilityManagerNightCycle_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 30 | |||
| 31 | AvailabilityManagerNightCycle_Impl(const AvailabilityManagerNightCycle_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | 32 | virtual ~AvailabilityManagerNightCycle_Impl() override = default; | |
| 34 | |||
| 35 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 36 | |||
| 37 | virtual IddObjectType iddObjectType() const override; | ||
| 38 | |||
| 39 | virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override; | ||
| 40 | |||
| 41 | // Cloning should ensure we do have modelObjectLists for control zones, but they should be empty | ||
| 42 | // as it is not connected to an AirLoopHVAC (yet) and it wouldn't make sense to have zones there | ||
| 43 | virtual ModelObject clone(Model model) const override; | ||
| 44 | |||
| 45 | // Clears the ModelObjectLists, then remove them | ||
| 46 | virtual std::vector<IdfObject> remove() override; | ||
| 47 | |||
| 48 | boost::optional<AirLoopHVAC> airLoopHVAC() const; | ||
| 49 | |||
| 50 | Schedule applicabilitySchedule() const; | ||
| 51 | bool setApplicabilitySchedule(Schedule& schedule); | ||
| 52 | |||
| 53 | boost::optional<Schedule> fanSchedule() const; | ||
| 54 | // Not implemented, it uses AirLoopHVAC::availabilitySchedule | ||
| 55 | // bool setFanSchedule(Schedule& schedule); | ||
| 56 | |||
| 57 | std::string controlType() const; | ||
| 58 | bool isControlTypeDefaulted() const; | ||
| 59 | bool setControlType(const std::string& controlType); | ||
| 60 | void resetControlType(); | ||
| 61 | |||
| 62 | double thermostatTolerance() const; | ||
| 63 | bool isThermostatToleranceDefaulted() const; | ||
| 64 | bool setThermostatTolerance(double thermostatTolerance); | ||
| 65 | void resetThermostatTolerance(); | ||
| 66 | |||
| 67 | std::string cyclingRunTimeControlType() const; | ||
| 68 | bool isCyclingRunTimeControlTypeDefaulted() const; | ||
| 69 | bool setCyclingRunTimeControlType(const std::string& cyclingRunTimeControlType); | ||
| 70 | void resetCyclingRunTimeControlType(); | ||
| 71 | |||
| 72 | double cyclingRunTime() const; | ||
| 73 | bool isCyclingRunTimeDefaulted() const; | ||
| 74 | bool setCyclingRunTime(double cyclingRunTime); | ||
| 75 | void resetCyclingRunTime(); | ||
| 76 | |||
| 77 | std::vector<ThermalZone> controlThermalZones() const; | ||
| 78 | bool setControlThermalZones(const std::vector<ThermalZone>& thermalZones); | ||
| 79 | void resetControlThermalZones(); | ||
| 80 | |||
| 81 | std::vector<ThermalZone> coolingControlThermalZones() const; | ||
| 82 | bool setCoolingControlThermalZones(const std::vector<ThermalZone>& thermalZones); | ||
| 83 | void resetCoolingControlThermalZones(); | ||
| 84 | |||
| 85 | std::vector<ThermalZone> heatingControlThermalZones() const; | ||
| 86 | bool setHeatingControlThermalZones(const std::vector<ThermalZone>& thermalZones); | ||
| 87 | void resetHeatingControlThermalZones(); | ||
| 88 | |||
| 89 | std::vector<ThermalZone> heatingZoneFansOnlyThermalZones() const; | ||
| 90 | bool setHeatingZoneFansOnlyThermalZones(const std::vector<ThermalZone>& thermalZones); | ||
| 91 | void resetHeatingZoneFansOnlyThermalZones(); | ||
| 92 | |||
| 93 | private: | ||
| 94 | − | REGISTER_LOGGER("openstudio.model.AvailabilityManagerNightCycle"); | |
| 95 | |||
| 96 | boost::optional<Schedule> optionalApplicabilitySchedule() const; | ||
| 97 | |||
| 98 | std::vector<std::string> controlTypeValues() const; | ||
| 99 | std::vector<std::string> cyclingRunTimeControlTypeValues() const; | ||
| 100 | |||
| 101 | ModelObjectList controlThermalZoneList() const; | ||
| 102 | void clearControlThermalZoneList(); | ||
| 103 | |||
| 104 | ModelObjectList coolingControlThermalZoneList() const; | ||
| 105 | void clearCoolingControlThermalZoneList(); | ||
| 106 | |||
| 107 | ModelObjectList heatingControlThermalZoneList() const; | ||
| 108 | void clearHeatingControlThermalZoneList(); | ||
| 109 | |||
| 110 | ModelObjectList heatingZoneFansOnlyThermalZoneList() const; | ||
| 111 | void clearHeatingZoneFansOnlyThermalZoneList(); | ||
| 112 | }; | ||
| 113 | |||
| 114 | } // namespace detail | ||
| 115 | |||
| 116 | } // namespace model | ||
| 117 | } // namespace openstudio | ||
| 118 | |||
| 119 | #endif // MODEL_AVAILABILITYMANAGERNIGHTCYCLE_IMPL_HPP | ||
| 120 |