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
#pragma once
2
12
class
EstimateMethod
{
13
public
:
14
struct
Output
{
15
Output
(
const
double
annualConsumption) : annualConsumption(annualConsumption) {}
16
17
const
double
annualConsumption;
18
};
19
25
EstimateMethod
(
const
double
operatingTime,
const
double
leakRateEstimate)
26
: operatingTime(operatingTime), leakRateEstimate(leakRateEstimate) {}
27
31
Output
calculate
() {
32
// return {flowRate, (flowRate * operatingTime * numberOfUnits * 60) / 1000 };
33
// return {(leakRateEstimate * operatingTime * 60) / 1000};
34
EstimateMethod::Output
output((leakRateEstimate * operatingTime * 60) / 1000);
35
return
output;
36
}
37
38
private
:
39
double
operatingTime, leakRateEstimate;
40
};
41
EstimateMethod
Definition
EstimateMethod.h:12
EstimateMethod::EstimateMethod
EstimateMethod(const double operatingTime, const double leakRateEstimate)
Definition
EstimateMethod.h:25
EstimateMethod::calculate
Output calculate()
Definition
EstimateMethod.h:31
EstimateMethod::Output
Definition
EstimateMethod.h:14
Generated by
1.9.8