UNPKG

@ekamjotsingh.ek/energy-management-system

Version:
18 lines (15 loc) 546 B
// 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}.`); } }