@ekamjotsingh.ek/energy-management-system
Version:
A smart campus energy management system
30 lines (29 loc) • 788 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Class representing a staff member.
*/
class Staff {
/**
* Create a Staff instance.
* @param staffID - Unique identifier for the staff member.
* @param name - Name of the staff member.
*/
constructor(staffID, name) {
this.staffID = staffID;
this.name = name;
}
/**
* Simulate viewing personal energy usage.
*/
viewPersonalUsage() {
console.log(`Staff ${this.name} is viewing personal energy usage.`);
}
/**
* Simulate participating in energy-saving programs.
*/
participateInPrograms() {
console.log(`Staff ${this.name} is participating in energy-saving programs.`);
}
}
exports.default = Staff;