GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 1 / 0 / 1
Functions: 100.0% 1 / 0 / 1
Branches: -% 0 / 0 / 0

src/model/PlantComponentTemperatureSource_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_PLANTCOMPONENTTEMPERATURESOURCE_IMPL_HPP
7 #define MODEL_PLANTCOMPONENTTEMPERATURESOURCE_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "StraightComponent_Impl.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class Schedule;
17
18 namespace detail {
19
20 /** PlantComponentTemperatureSource_Impl is a StraightComponent_Impl that is the implementation class for PlantComponentTemperatureSource.*/
21 class MODEL_API PlantComponentTemperatureSource_Impl : public StraightComponent_Impl
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 PlantComponentTemperatureSource_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 PlantComponentTemperatureSource_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 PlantComponentTemperatureSource_Impl(const PlantComponentTemperatureSource_Impl& other, Model_Impl* model, bool keepHandle);
32
33 1 virtual ~PlantComponentTemperatureSource_Impl() override = default;
34
35 //@}
36 /** @name Virtual Methods */
37 //@{
38
39 virtual const std::vector<std::string>& outputVariableNames() const override;
40
41 virtual IddObjectType iddObjectType() const override;
42
43 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
44
45 virtual unsigned inletPort() const override;
46
47 virtual unsigned outletPort() const override;
48
49 // virtual bool addToNode(Node & node) override;
50
51 virtual void autosize() override;
52
53 virtual void applySizingValues() override;
54
55 virtual std::vector<EMSActuatorNames> emsActuatorNames() const override;
56
57 virtual std::vector<std::string> emsInternalVariableNames() const override;
58
59 virtual ComponentType componentType() const override;
60 virtual std::vector<FuelType> coolingFuelTypes() const override;
61 virtual std::vector<FuelType> heatingFuelTypes() const override;
62 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
63
64 //@}
65 /** @name Getters */
66 //@{
67
68 boost::optional<double> designVolumeFlowRate() const;
69
70 bool isDesignVolumeFlowRateAutosized() const;
71
72 std::string temperatureSpecificationType() const;
73
74 boost::optional<double> sourceTemperature() const;
75
76 boost::optional<Schedule> sourceTemperatureSchedule() const;
77
78 boost::optional<double> autosizedDesignVolumeFlowRate() const;
79
80 //@}
81 /** @name Setters */
82 //@{
83
84 bool setDesignVolumeFlowRate(boost::optional<double> designVolumeFlowRate);
85
86 void autosizeDesignVolumeFlowRate();
87
88 bool setTemperatureSpecificationType(const std::string& temperatureSpecificationType);
89
90 bool setSourceTemperature(boost::optional<double> sourceTemperature);
91
92 void resetSourceTemperature();
93
94 bool setSourceTemperatureSchedule(Schedule& schedule);
95
96 void resetSourceTemperatureSchedule();
97
98 //@}
99 /** @name Other */
100 //@{
101
102 //@}
103 protected:
104 private:
105 REGISTER_LOGGER("openstudio.model.PlantComponentTemperatureSource");
106
107 // Optional getters for use by methods like children() so can remove() if the constructor fails.
108 // There are other ways for the public versions of these getters to fail--perhaps all required
109 // objects should be returned as boost::optionals
110 };
111
112 } // namespace detail
113
114 } // namespace model
115 } // namespace openstudio
116
117 #endif // MODEL_PLANTCOMPONENTTEMPERATURESOURCE_IMPL_HPP
118