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

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

            return ReportUtils.GetSocietalCostsReportHeaders(headersPrefix);
        }

    }
}
