Compare commits
1 Commits
dc1fb500c0
...
078a0d80dc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
078a0d80dc |
@@ -81,7 +81,14 @@ class MachineGroup {
|
|||||||
this.dynamicTotals = this.calcDynamicTotals();
|
this.dynamicTotals = this.calcDynamicTotals();
|
||||||
}
|
}
|
||||||
|
|
||||||
registerOnChildEvents(){}
|
registerChild(child,softwareType) {
|
||||||
|
this.logger.debug('Setting up childs specific for this class');
|
||||||
|
|
||||||
|
if(softwareType == "machine"){
|
||||||
|
// Check if the machine is already registered
|
||||||
|
this.machines[child.config.general.id] === undefined ? this.machines[child.config.general.id] = child : this.logger.warn(`Machine ${child.config.general.id} is already registered.`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
calcAbsoluteTotals() {
|
calcAbsoluteTotals() {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user