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 costs</b> modeling report.
    /// </summary>
    [Serializable]
    public class AnnualSocietalCostsReport : ModelingReport
    {
        /// <inheritdoc cref="ModelingReport(string, bool, Func{string[]})"/>
        public AnnualSocietalCostsReport(string path, bool append = false)
            : base(path, append, GetHeaders) { }

        /// <inheritdoc/>
        public override ReportDataGenerator GetDataGenerator(
            Scenario scen, ReportingData data, ModelingSettings settings)
        {
            return new AnnualSocietalCostsReportDataGenerator(scen, data, settings);
        }

        private static new string[] GetHeaders()
        {
            string[] headersPrefix = { "Scenario", "Scenario Name", "Model Year", "Age", "Calendar Year" };

            return ReportUtils.GetSocietalCostsReportHeaders(headersPrefix);
        }

    }
}
