Class TradeReportRunner

    • Field Detail

      • INSTANCE

        public static final TradeReportRunner INSTANCE
        The single shared instance of this report runner.
    • Method Detail

      • requirements

        public ReportRequirements requirements​(TradeReportTemplate reportTemplate)
        Description copied from interface: ReportRunner
        Gets a description of the requirements to run a report for the given template. Requirements include trade-level measures.

        The report may be run on calculation results including at least these requirements.

        Specified by:
        requirements in interface ReportRunner<TradeReportTemplate>
        Parameters:
        reportTemplate - the report template
        Returns:
        the requirements to run the report
      • runReport

        public TradeReport runReport​(ReportCalculationResults results,
                                     TradeReportTemplate reportTemplate)
        Description copied from interface: ReportRunner
        Runs a report from a set of calculation results. The contents of the report are dictated by the template provided. The calculation results may be substantially more complete than the template requires.
        Specified by:
        runReport in interface ReportRunner<TradeReportTemplate>
        Parameters:
        results - the calculation results
        reportTemplate - the report template
        Returns:
        the report