src/model/AvailabilityManagerAssignmentList_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_AVAILABILITYMANAGERASSIGNMENTLIST_IMPL_HPP | ||
| 7 | #define MODEL_AVAILABILITYMANAGERASSIGNMENTLIST_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ModelObject_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class Model; | ||
| 16 | class AvailabilityManager; | ||
| 17 | class Loop; | ||
| 18 | class AirLoopHVAC; | ||
| 19 | class PlantLoop; | ||
| 20 | class ZoneHVACComponent; | ||
| 21 | |||
| 22 | namespace detail { | ||
| 23 | |||
| 24 | /** AvailabilityManagerAssignmentList_Impl is a ModelObject_Impl that is the implementation class for AvailabilityManagerAssignmentList.*/ | ||
| 25 | class MODEL_API AvailabilityManagerAssignmentList_Impl : public ModelObject_Impl | ||
| 26 | { | ||
| 27 | public: | ||
| 28 | /** @name Constructors and Destructors */ | ||
| 29 | //@{ | ||
| 30 | |||
| 31 | AvailabilityManagerAssignmentList_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | AvailabilityManagerAssignmentList_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 34 | |||
| 35 | AvailabilityManagerAssignmentList_Impl(const AvailabilityManagerAssignmentList_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 36 | |||
| 37 | 1874 | virtual ~AvailabilityManagerAssignmentList_Impl() override = default; | |
| 38 | |||
| 39 | //@} | ||
| 40 | /** @name Virtual Methods */ | ||
| 41 | //@{ | ||
| 42 | |||
| 43 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 44 | |||
| 45 | virtual IddObjectType iddObjectType() const override; | ||
| 46 | |||
| 47 | virtual ModelObject clone(Model model) const override; | ||
| 48 | |||
| 49 | //@} | ||
| 50 | /** @name Getters */ | ||
| 51 | //@{ | ||
| 52 | |||
| 53 | unsigned availabilityManagerPriority(const AvailabilityManager& avm) const; | ||
| 54 | |||
| 55 | std::vector<AvailabilityManager> availabilityManagers() const; | ||
| 56 | |||
| 57 | boost::optional<Loop> loop() const; | ||
| 58 | boost::optional<AirLoopHVAC> airLoopHVAC() const; | ||
| 59 | boost::optional<PlantLoop> plantLoop() const; | ||
| 60 | boost::optional<ZoneHVACComponent> containingZoneHVACComponent() const; | ||
| 61 | |||
| 62 | //@} | ||
| 63 | /** @name Setters */ | ||
| 64 | //@{ | ||
| 65 | |||
| 66 | bool setAvailabilityManagers(const std::vector<AvailabilityManager>& avms); | ||
| 67 | void resetAvailabilityManagers(); | ||
| 68 | |||
| 69 | bool addAvailabilityManager(const AvailabilityManager& avm); | ||
| 70 | bool addAvailabilityManager(const AvailabilityManager& avm, unsigned priority); | ||
| 71 | |||
| 72 | bool removeAvailabilityManager(const AvailabilityManager& avm); | ||
| 73 | bool removeAvailabilityManager(unsigned priority); | ||
| 74 | |||
| 75 | bool setAvailabilityManagerPriority(const AvailabilityManager& avm, unsigned priority); | ||
| 76 | |||
| 77 | //@} | ||
| 78 | /** @name Other */ | ||
| 79 | //@{ | ||
| 80 | |||
| 81 | //@} | ||
| 82 | protected: | ||
| 83 | private: | ||
| 84 | − | REGISTER_LOGGER("openstudio.model.AvailabilityManagerAssignmentList"); | |
| 85 | }; | ||
| 86 | |||
| 87 | } // namespace detail | ||
| 88 | |||
| 89 | } // namespace model | ||
| 90 | } // namespace openstudio | ||
| 91 | |||
| 92 | #endif // MODEL_AVAILABILITYMANAGERASSIGNMENTLIST_IMPL_HPP | ||
| 93 |