using System;
using Volpe.Cafe.ModelSettings;
using Volpe.Cafe.Reporting.Generators;

namespace Volpe.Cafe.Reporting.ModelingReports
{
    /// <summary>
    /// Provides support for generating an <b>annual societal effects summary</b> modeling report.
    /// </summary>
    [Serializable]
    public class AnnualSocietalEffectsSummaryReport : ModelingReport
    {
        /// <inheritdoc cref="ModelingReport(string, bool, Func{string[]})"/>
        public AnnualSocietalEffectsSummaryReport(string path, bool append = false)
            : base(path, append, GetHeaders) { }

        /// <inheritdoc/>
        public override ReportDataGenerator GetDataGenerator(
            Scenario scen, ReportingData data, ModelingSettings settings)
        {
            return new AnnualSocietalEffectsReportDataGenerator(scen, data, settings) {
                Flags = DataGeneratorFlags.Summary
            };
        }

        private static new string[] GetHeaders()
        {
            string[] headersPrefix = { 
                //---- header columns -----
                "Scenario", "Scenario Name", "Calendar Year", "Reg-Class", "Fuel Type",
                
                //----- general effects -----
                "Average Age", "Fleet"
            };

            return ReportUtils.GetSocietalEffectsReportHeaders(headersPrefix);
        }

    }
}
