UNPKG

@ekamjotsingh.ek/energy-management-system

Version:
36 lines (35 loc) 868 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Class representing an energy report. */ class EnergyReport { /** * Create an EnergyReport instance. * @param reportID - Unique identifier for the report. * @param date - Date of the report. */ constructor(reportID, date) { this.reportID = reportID; this.date = date; } /** * Simulate generating the report. */ generate() { console.log(`Generating report ${this.reportID} for ${this.date.toDateString()}.`); } /** * Simulate viewing the report. */ view() { console.log(`Viewing report ${this.reportID}.`); } /** * Simulate exporting the report. */ export() { console.log(`Exporting report ${this.reportID}.`); } } exports.default = EnergyReport;