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
include
compressedAir
EstimateMethod.h
Go to the documentation of this file.
1
10
#ifndef TOOLS_SUITE_ESTIMATEMETHOD_H
11
#define TOOLS_SUITE_ESTIMATEMETHOD_H
12
13
class
EstimateMethod
{
14
public
:
15
struct
Output
{
16
Output
(
const
double
annualConsumption) : annualConsumption(annualConsumption) {}
17
18
const
double
annualConsumption;
19
};
20
26
EstimateMethod
(
const
double
operatingTime,
const
double
leakRateEstimate)
27
: operatingTime(operatingTime), leakRateEstimate(leakRateEstimate) {}
28
32
Output
calculate
() {
33
// return {flowRate, (flowRate * operatingTime * numberOfUnits * 60) / 1000 };
34
// return {(leakRateEstimate * operatingTime * 60) / 1000};
35
EstimateMethod::Output
output((leakRateEstimate * operatingTime * 60) / 1000);
36
return
output;
37
}
38
39
private
:
40
double
operatingTime, leakRateEstimate;
41
};
42
43
#endif
EstimateMethod
Definition
EstimateMethod.h:13
EstimateMethod::EstimateMethod
EstimateMethod(const double operatingTime, const double leakRateEstimate)
Definition
EstimateMethod.h:26
EstimateMethod::calculate
Output calculate()
Definition
EstimateMethod.h:32
EstimateMethod::Output
Definition
EstimateMethod.h:15
Generated by
1.9.8