UNPKG

@ekamjotsingh.ek/energy-management-system

Version:
30 lines (29 loc) 916 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Class representing a lighting management system. */ class LightingSystem { /** * Create a LightingSystem instance. * @param lightingID - Unique identifier for the lighting system. * @param buildingID - Identifier for the building where the lighting system is installed. */ constructor(lightingID, buildingID) { this.lightingID = lightingID; this.buildingID = buildingID; } /** * Simulate controlling lighting. */ controlLighting() { console.log(`Controlling lighting with system ${this.lightingID} in building ${this.buildingID}.`); } /** * Simulate adjusting the brightness of the lighting. */ adjustBrightness() { console.log(`Adjusting brightness with system ${this.lightingID}.`); } } exports.default = LightingSystem;