Class TradeReportRunner
- java.lang.Object
-
- com.opengamma.strata.report.trade.TradeReportRunner
-
- All Implemented Interfaces:
ReportRunner<TradeReportTemplate>
public final class TradeReportRunner extends Object implements ReportRunner<TradeReportTemplate>
Report runner for trade reports.Trade reports are driven by a trade report template. The resulting report is a table containing one row per trade, and the requested columns each showing a value for that trade.
-
-
Field Summary
Fields Modifier and Type Field Description static TradeReportRunner
INSTANCE
The single shared instance of this report runner.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReportRequirements
requirements(TradeReportTemplate reportTemplate)
Gets a description of the requirements to run a report for the given template.TradeReport
runReport(ReportCalculationResults results, TradeReportTemplate reportTemplate)
Runs a report from a set of calculation results.
-
-
-
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 interfaceReportRunner<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 interfaceReportRunner<TradeReportTemplate>
- Parameters:
results
- the calculation resultsreportTemplate
- the report template- Returns:
- the report
-
-