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</b> modeling report.
    /// </summary>
    [Serializable]
    public class AnnualSocietalEffectsReport : ModelingReport
    {
        /// <inheritdoc cref="ModelingReport(string, bool, Func{string[]})"/>
        public AnnualSocietalEffectsReport(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);
        }

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

            return ReportUtils.GetSocietalEffectsReportHeaders(headersPrefix);
        }

    }
}
