MEASUR-Tools-Suite v1.0.11
The MEASUR Tools Suite is a collection of industrial efficiency calculations written in C++ and with bindings for compilation to WebAssembly.
Loading...
Searching...
No Matches
lighting_data.h
1#pragma once
2
10#include <string>
11
13public:
28 LightingData(std::string category, std::string type,
29 int lamps_per_fixture, double lamp_wattage, int lamp_output, int lamp_life, int lamp_cri,
30 double coefficient_of_utilization, double ballast_factor, double lumen_degradation_factor) :
31 category_(category), type_(type),
32 lamps_per_fixture_(lamps_per_fixture), lamp_wattage_(lamp_wattage), lamp_output_(lamp_output), lamp_life_(lamp_life), lamp_cri_(lamp_cri),
33 coefficient_of_utilization_(coefficient_of_utilization), ballast_factor_(ballast_factor), lumen_degradation_factor_(lumen_degradation_factor) {}
34
40 void setID(int id) { this->id_ = id; }
41
46 int ID() const { return this->id_; }
47
52 std::string category() const { return this->category_; }
53
58 std::string type() const { return this->type_; }
59
64 int lampsPerFixture() const { return this->lamps_per_fixture_; }
65
70 double lampWattage() const { return this->lamp_wattage_; }
71
76 int lampOutput() const { return this->lamp_output_; }
77
82 int lampLife() const { return this->lamp_life_; }
83
88 int lampCRI() const { return this->lamp_cri_; }
89
94 double coefficientOfUtilization() const { return this->coefficient_of_utilization_; }
95
100 double ballastFactor() const { return this->ballast_factor_; }
101
106 double lumenDegradationFactor() const { return this->lumen_degradation_factor_; }
107
108private:
109 int id_;
110
111 std::string category_;
112 std::string type_;
113 int lamps_per_fixture_;
114 double lamp_wattage_;
115 int lamp_output_;
116 int lamp_life_;
117 int lamp_cri_;
118 double coefficient_of_utilization_;
119 double ballast_factor_;
120 double lumen_degradation_factor_;
121
122 friend class DefaultData;
123};
124
std::string type() const
Gets the Type of the lighting.
int lampsPerFixture() const
Gets the Lamps per Fixture of the lighting system.
double ballastFactor() const
Gets the Ballast Factor of the lighting system.
int lampLife() const
Gets the Lamp Life of the lighting system.
LightingData(std::string category, std::string type, int lamps_per_fixture, double lamp_wattage, int lamp_output, int lamp_life, int lamp_cri, double coefficient_of_utilization, double ballast_factor, double lumen_degradation_factor)
Constructs a Lighting's data record with specified parameters.
int lampCRI() const
Gets the Lamp CRI of the lighting system.
std::string category() const
Gets the Category of the lighting.
void setID(int id)
Sequential ID of the lighting default data.
double lampWattage() const
Gets the Lamp Wattage of the lighting system.
int ID() const
Gets the data sequential ID of the lighting default data.
double coefficientOfUtilization() const
Gets the Coefficient of Utilization of the lighting system.
int lampOutput() const
Gets the Lamp Output of the lighting system.
double lumenDegradationFactor() const
Gets the Lumen Degradation Factor of the lighting system.