@ekamjotsingh.ek/energy-management-system
Version:
A smart campus energy management system
30 lines (29 loc) • 893 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Class representing a smart HVAC system.
*/
class HVACSystem {
/**
* Create an HVACSystem instance.
* @param hvacID - Unique identifier for the HVAC system.
* @param buildingID - Identifier for the building where the HVAC system is installed.
*/
constructor(hvacID, buildingID) {
this.hvacID = hvacID;
this.buildingID = buildingID;
}
/**
* Simulate controlling the temperature.
*/
controlTemperature() {
console.log(`Controlling temperature with HVAC system ${this.hvacID} in building ${this.buildingID}.`);
}
/**
* Simulate scheduling maintenance for the HVAC system.
*/
scheduleMaintenance() {
console.log(`Scheduling maintenance for HVAC system ${this.hvacID}.`);
}
}
exports.default = HVACSystem;