diff --git a/src/specificClass.js b/src/specificClass.js index e78572f..bc3d079 100644 --- a/src/specificClass.js +++ b/src/specificClass.js @@ -75,6 +75,16 @@ class Reactor extends BaseDomain { updateState(t) { this.engine.updateState(t); this.notifyOutputChanged(); } + // Engine pass-through — needed so the BaseNodeAdapter tick loop (and + // tests calling reactor.tick(dt) directly) drive the ASM integration. + // Without this the Node-RED tick fires `source.tick?.()`, gets undefined, + // and the kinetics state never advances. + tick(timeStep) { + const result = this.engine.tick(timeStep); + this.notifyOutputChanged(); + return result; + } + get getEffluent() { return this.engine.getEffluent; } get getGridProfile() { return this.engine.getGridProfile; } get temperature() { return this.engine.temperature; }