@ekamjotsingh.ek/energy-management-system
Version:
A smart campus energy management system
18 lines (15 loc) • 546 B
text/typescript
// Class to represent a maintenance schedule
export default class MaintenanceSchedule {
scheduleID: string;
date: Date;
equipmentID: string;
constructor(scheduleID: string, date: Date, equipmentID: string) {
this.scheduleID = scheduleID;
this.date = date;
this.equipmentID = equipmentID;
}
// Simulate performing maintenance
performMaintenance(): void {
console.log(`Performing maintenance for schedule ${this.scheduleID} on equipment ${this.equipmentID}.`);
}
}