@ekamjotsingh.ek/energy-management-system
Version:
A smart campus energy management system
36 lines (35 loc) • 868 B
JavaScript
;
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;