Refactor variable declarations in specificClass and nodeClass for consistency; update generalFunctions dependency to specific commit.
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -9,12 +9,12 @@
|
|||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"license": "SEE LICENSE",
|
"license": "SEE LICENSE",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"generalFunctions": "git+https://gitea.centraal.wbd-rd.nl/p.vanderwilt/generalFunctions.git"
|
"generalFunctions": "git+https://gitea.centraal.wbd-rd.nl/p.vanderwilt/generalFunctions.git#implement-reactor-child"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/generalFunctions": {
|
"node_modules/generalFunctions": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "git+https://gitea.centraal.wbd-rd.nl/p.vanderwilt/generalFunctions.git#f13ee68938ea9d4b3a17ad90618c72634769c777",
|
"resolved": "git+https://gitea.centraal.wbd-rd.nl/p.vanderwilt/generalFunctions.git#958ec2269c902f3ebb11b13527fbc860ee9381e7",
|
||||||
"license": "SEE LICENSE"
|
"license": "SEE LICENSE"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,6 +22,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"generalFunctions": "git+https://gitea.centraal.wbd-rd.nl/p.vanderwilt/generalFunctions.git"
|
"generalFunctions": "git+https://gitea.centraal.wbd-rd.nl/p.vanderwilt/generalFunctions.git#implement-reactor-child"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -80,8 +80,8 @@ class nodeClass {
|
|||||||
* Execute a single tick and send outputs.
|
* Execute a single tick and send outputs.
|
||||||
*/
|
*/
|
||||||
_tick() {
|
_tick() {
|
||||||
processMsg = this.source.getOutput();
|
let processMsg = this.source.getOutput();
|
||||||
influxMsg = null;
|
let influxMsg = null;
|
||||||
|
|
||||||
// Send only updated outputs on ports 0 & 1
|
// Send only updated outputs on ports 0 & 1
|
||||||
this.node.send([processMsg, influxMsg, null]);
|
this.node.send([processMsg, influxMsg, null]);
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class liquidFlowHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateState(timeStamp) {
|
updateState(timeStamp) {
|
||||||
effluent = this.reactors[1].getEffluent;
|
let effluent = this.reactors[1].getEffluent;
|
||||||
effluent.payload.F = this.debit;
|
effluent.payload.F = this.debit;
|
||||||
this.reactors[0].setInfluent = effluent;
|
this.reactors[0].setInfluent = effluent;
|
||||||
}
|
}
|
||||||
@@ -27,8 +27,8 @@ class liquidFlowHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getOutput() {
|
getOutput() {
|
||||||
mainEffluent = this.reactors[1].getEffluent;
|
let mainEffluent = this.reactors[1].getEffluent;
|
||||||
sideStream = structuredClone(mainEffluent);
|
let sideStream = structuredClone(mainEffluent);
|
||||||
mainEffluent.payload.F -= this.debit;
|
mainEffluent.payload.F -= this.debit;
|
||||||
sideStream.payload.F = this.debit;
|
sideStream.payload.F = this.debit;
|
||||||
sideStream.payload.inlet = 1;
|
sideStream.payload.inlet = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user