diff --git a/rotatingMachine.html b/rotatingMachine.html index 6d54b66..e2a0a69 100644 --- a/rotatingMachine.html +++ b/rotatingMachine.html @@ -25,6 +25,7 @@ shutdown: { value: 0 }, cooldown: { value: 0 }, machineCurve : { value: {}}, + flowNumber : { value: 1, required: true }, //define asset properties uuid: { value: "" }, @@ -127,6 +128,10 @@ +
+ + +
diff --git a/src/specificClass.js b/src/specificClass.js index f1d8123..1579611 100644 --- a/src/specificClass.js +++ b/src/specificClass.js @@ -523,7 +523,8 @@ class Machine { } _updateConnectedReactor() { - this.downstreamReactor.setInfluent = this.upstreamReactor.getEffluent[1]; + // Handles flow according to the configured "flow number" + this.downstreamReactor.setInfluent = this.upstreamReactor.getEffluent[this.config.flowNumber]; } // Helper method for operational state check