UNPKG

@ekamjotsingh.ek/energy-management-system

Version:
30 lines (29 loc) 860 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Class representing a building energy monitor. */ class EnergyMonitor { /** * Create an EnergyMonitor instance. * @param monitorID - Unique identifier for the monitor. * @param buildingID - Identifier for the building where the monitor is installed. */ constructor(monitorID, buildingID) { this.monitorID = monitorID; this.buildingID = buildingID; } /** * Simulate data collection from the monitor. */ collectData() { console.log(`Collecting data from monitor ${this.monitorID} in building ${this.buildingID}.`); } /** * Simulate sending collected data. */ sendData() { console.log(`Sending data from monitor ${this.monitorID}.`); } } exports.default = EnergyMonitor;