Partial implementation of children handlers

This commit is contained in:
2025-07-24 15:07:00 +02:00
parent bb37354fb0
commit edd37a707b
2 changed files with 20 additions and 18 deletions

View File

@@ -6,8 +6,25 @@ class liquidFlowHandler {
this.config = config;
this.logger = new logger(this.config.general.logging.enabled, this.config.general.logging.logLevel, config.general.name);
this.reactors = Array(2);
this.machines = {};
this.debit = 0;
this.childRegistrationUtils = new childRegistrationUtils(this);
}
updateState(timeStamp) {
effluent = this.reactors[1].getEffluent();
effluent.F = this.debit;
this.reactors[0].setInfluent = effluent;
}
handleChildChange() {
}
handlePressureChange(machine) {
this.debit = machine.measurements.type("flow").variant("predicted").position("downstream").getCurrentValue();
}
}
module.exports = { liquidFlowHandler };