Partial implementation of children handlers
This commit is contained in:
@@ -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 };
|
||||
Reference in New Issue
Block a user