15 lines
571 B
JavaScript
15 lines
571 B
JavaScript
|
|
const { childRegistrationUtils, logger, MeasurementContainer } = require('generalFunctions');
|
||
|
|
const EventEmitter = require('events');
|
||
|
|
|
||
|
|
class Settler {
|
||
|
|
constructor(config) {
|
||
|
|
this.config = config;
|
||
|
|
// EVOLV stuff
|
||
|
|
this.logger = new logger(this.config.general.logging.enabled, this.config.general.logging.logLevel, config.general.name);
|
||
|
|
this.emitter = new EventEmitter();
|
||
|
|
this.measurements = new MeasurementContainer();
|
||
|
|
this.childRegistrationUtils = new childRegistrationUtils(this); // Child registration utility
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
module.exports = { Settler };
|