@paulkasram/smart-campus-energy-management-system
Version:
The Smart Campus Energy Management System is designed to optimize energy usage across various buildings and facilities on a university campus.
20 lines (19 loc) • 630 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class EnergyMonitor {
constructor(id, type, data) {
this.id = id;
this.type = type;
this.data = data;
}
collectData(hvacSystem, lightingSystem) {
this.data = hvacSystem.energyConsumption + lightingSystem.energyConsumption;
console.log(`Data has been gathered and ready to be send.`);
console.log(`Sending data. . .`);
console.log(`Consumption energy ${this.sendData()}KW/h`);
}
sendData() {
return this.data;
}
}
exports.default = EnergyMonitor;