UNPKG

@ekamjotsingh.ek/energy-management-system

Version:
34 lines (29 loc) 949 B
/** * Class representing a lighting management system. */ class LightingSystem { lightingID: string; buildingID: string; /** * 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: string, buildingID: string) { this.lightingID = lightingID; this.buildingID = buildingID; } /** * Simulate controlling lighting. */ controlLighting(): void { console.log(`Controlling lighting with system ${this.lightingID} in building ${this.buildingID}.`); } /** * Simulate adjusting the brightness of the lighting. */ adjustBrightness(): void { console.log(`Adjusting brightness with system ${this.lightingID}.`); } } export default LightingSystem;