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/Generator_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_GENERATOR_IMPL_HPP
7 #define MODEL_GENERATOR_IMPL_HPP
8
9 #include "ParentObject_Impl.hpp"
10
11 namespace openstudio {
12 namespace model {
13
14 namespace detail {
15
16 class MODEL_API Generator_Impl : public ParentObject_Impl
17 {
18 public:
19 /** @name Constructors and Destructors */
20 //@{
21
22 Generator_Impl(IddObjectType type, Model_Impl* model);
23
24 Generator_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
25
26 Generator_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
27
28 Generator_Impl(const Generator_Impl& other, Model_Impl* model, bool keepHandles);
29
30 93 virtual ~Generator_Impl() override = default;
31
32 //@}
33 /** @name Virtual Methods */
34 //@{
35
36 /// remove this object from any ElectricLoadCenterDistribution objects then remove from file
37 virtual std::vector<openstudio::IdfObject> remove() override;
38
39 virtual std::string generatorObjectType() const = 0;
40
41 virtual boost::optional<double> ratedElectricPowerOutput() const = 0;
42
43 virtual boost::optional<Schedule> availabilitySchedule() const = 0;
44
45 virtual boost::optional<double> ratedThermaltoElectricalPowerRatio() const = 0;
46
47 //virtual std::vector<EMSActuatorNames> emsActuatorNames() const override;
48
49 //virtual std::vector<std::string> emsInternalVariableNames() const override;
50
51 //@}
52 /** @name Getters */
53 //@{
54
55 boost::optional<ElectricLoadCenterDistribution> electricLoadCenterDistribution() const;
56
57 //@}
58 /** @name Setters */
59 //@{
60
61 //@}
62 /** @name Other */
63 //@{
64
65 //@}
66 private:
67 REGISTER_LOGGER("openstudio.model.Generator");
68 };
69
70 } // namespace detail
71
72 } // namespace model
73 } // namespace openstudio
74
75 #endif // MODEL_GENERATOR_IMPL_HPP
76