Compare commits
1 Commits
d931bead0a
...
297c6713de
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
297c6713de |
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user