Update temperature handling in Reactor class and remove redundant setter

This commit is contained in:
2025-07-11 12:27:06 +02:00
parent 24de5a4c9f
commit 6227bbe256

View File

@@ -44,7 +44,7 @@ class Reactor {
this.logger.debug(`---------------------- updating ${subType} ------------------ `);
switch (subType) {
case "temperature":
this.logger.debug(`no nothing`);
this.temperature = value;
break;
default:
this.logger.error(`Type '${subType}' not recognized for measured update.`);
@@ -70,14 +70,6 @@ class Reactor {
this.OTR = input.payload;
}
/**
* Setter for temperature.
* @param {object} input - Input object (msg) containing payload with temperature value [C].
*/
set setTemperature(input) {
this.temperature = input.payload;
}
/**
* Calculate the oxygen transfer rate (OTR) based on the dissolved oxygen concentration and temperature.
* @param {number} S_O - Dissolved oxygen concentration [g O2 m-3].