src/model/Node_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_NODE_IMPL_HPP | ||
| 7 | #define MODEL_NODE_IMPL_HPP | ||
| 8 | |||
| 9 | #include "StraightComponent_Impl.hpp" | ||
| 10 | |||
| 11 | namespace openstudio { | ||
| 12 | |||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class Node; | ||
| 16 | class SetpointManagerSingleZoneReheat; | ||
| 17 | class SetpointManagerMixedAir; | ||
| 18 | class SetpointManagerScheduled; | ||
| 19 | class SetpointManagerFollowOutdoorAirTemperature; | ||
| 20 | class SetpointManagerOutdoorAirReset; | ||
| 21 | class SetpointManagerWarmest; | ||
| 22 | class SetpointManager; | ||
| 23 | class AirflowNetworkDistributionNode; | ||
| 24 | |||
| 25 | namespace detail { | ||
| 26 | |||
| 27 | class MODEL_API Node_Impl : public StraightComponent_Impl | ||
| 28 | { | ||
| 29 | public: | ||
| 30 | // constructor | ||
| 31 | Node_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | // construct from workspace | ||
| 34 | Node_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 35 | |||
| 36 | // copy constructor | ||
| 37 | Node_Impl(const Node_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 38 | |||
| 39 | // virtual destructor | ||
| 40 | 22265 | virtual ~Node_Impl() override = default; | |
| 41 | |||
| 42 | // Get all output variable names that could be associated with this object. | ||
| 43 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 44 | |||
| 45 | virtual IddObjectType iddObjectType() const override; | ||
| 46 | |||
| 47 | virtual std::vector<HVACComponent> edges(const boost::optional<HVACComponent>& prev) override; | ||
| 48 | |||
| 49 | virtual unsigned inletPort() const override; | ||
| 50 | |||
| 51 | virtual unsigned outletPort() const override; | ||
| 52 | |||
| 53 | std::vector<SetpointManager> setpointManagers() const; | ||
| 54 | |||
| 55 | void removeSetpointManagers(); | ||
| 56 | |||
| 57 | std::vector<ModelObject> children() const override; | ||
| 58 | |||
| 59 | bool isRemovable() const override; | ||
| 60 | |||
| 61 | std::vector<IdfObject> remove() override; | ||
| 62 | |||
| 63 | bool addToNode(Node& node) override; | ||
| 64 | |||
| 65 | ModelObject clone(Model model) const override; | ||
| 66 | |||
| 67 | bool isConnected(const ModelObject& modelObject); | ||
| 68 | |||
| 69 | virtual std::vector<EMSActuatorNames> emsActuatorNames() const override; | ||
| 70 | |||
| 71 | virtual std::vector<std::string> emsInternalVariableNames() const override; | ||
| 72 | |||
| 73 | AirflowNetworkDistributionNode getAirflowNetworkDistributionNode(); | ||
| 74 | |||
| 75 | boost::optional<AirflowNetworkDistributionNode> airflowNetworkDistributionNode() const; | ||
| 76 | |||
| 77 | virtual ComponentType componentType() const override; | ||
| 78 | virtual std::vector<FuelType> coolingFuelTypes() const override; | ||
| 79 | virtual std::vector<FuelType> heatingFuelTypes() const override; | ||
| 80 | virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override; | ||
| 81 | |||
| 82 | private: | ||
| 83 | − | REGISTER_LOGGER("openstudio.model.Node"); | |
| 84 | }; | ||
| 85 | |||
| 86 | } // namespace detail | ||
| 87 | |||
| 88 | } // namespace model | ||
| 89 | } // namespace openstudio | ||
| 90 | |||
| 91 | #endif // MODEL_NODE_IMPL_HPP | ||
| 92 |