Package com.opengamma.strata.report
Class ReportCalculationResults
- java.lang.Object
-
- com.opengamma.strata.report.ReportCalculationResults
-
- All Implemented Interfaces:
org.joda.beans.Bean
,org.joda.beans.ImmutableBean
public final class ReportCalculationResults extends Object implements org.joda.beans.ImmutableBean
Stores a set of engine calculation results along with the context required to run reports.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ReportCalculationResults.Meta
The meta-bean forReportCalculationResults
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
CalculationFunctions
getCalculationFunctions()
Gets the calculation functions.Results
getCalculationResults()
Gets the calculation results.List<Column>
getColumns()
Gets the columns contained in the results.ReferenceData
getReferenceData()
Gets the reference data.List<CalculationTarget>
getTargets()
Gets the targets on which the results are calculated.LocalDate
getValuationDate()
Gets the valuation date.int
hashCode()
static ReportCalculationResults.Meta
meta()
The meta-bean forReportCalculationResults
.ReportCalculationResults.Meta
metaBean()
static ReportCalculationResults
of(LocalDate valuationDate, List<? extends CalculationTarget> targets, List<Column> columns, Results calculationResults)
Obtains an instance from the valuation date, trades, columns and results.static ReportCalculationResults
of(LocalDate valuationDate, List<? extends CalculationTarget> targets, List<Column> columns, Results calculationResults, CalculationFunctions calculationFunctions, ReferenceData refData)
Obtains an instance from the valuation date, trades, columns, results and reference data.String
toString()
-
-
-
Method Detail
-
of
public static ReportCalculationResults of(LocalDate valuationDate, List<? extends CalculationTarget> targets, List<Column> columns, Results calculationResults)
Obtains an instance from the valuation date, trades, columns and results.This uses standard reference data.
- Parameters:
valuationDate
- the valuation date used in the calculationstargets
- the targets for which the results were calculatedcolumns
- the columns in the resultscalculationResults
- the results of the calculations- Returns:
- the results
-
of
public static ReportCalculationResults of(LocalDate valuationDate, List<? extends CalculationTarget> targets, List<Column> columns, Results calculationResults, CalculationFunctions calculationFunctions, ReferenceData refData)
Obtains an instance from the valuation date, trades, columns, results and reference data.- Parameters:
valuationDate
- the valuation date used in the calculationstargets
- the targets for which the results were calculatedcolumns
- the columns in the resultscalculationResults
- the results of the calculationscalculationFunctions
- the calculation functions that were usedrefData
- the reference data used in the calculation- Returns:
- the results
-
meta
public static ReportCalculationResults.Meta meta()
The meta-bean forReportCalculationResults
.- Returns:
- the meta-bean, not null
-
metaBean
public ReportCalculationResults.Meta metaBean()
- Specified by:
metaBean
in interfaceorg.joda.beans.Bean
-
getValuationDate
public LocalDate getValuationDate()
Gets the valuation date.- Returns:
- the value of the property, not null
-
getTargets
public List<CalculationTarget> getTargets()
Gets the targets on which the results are calculated.- Returns:
- the value of the property, not null
-
getColumns
public List<Column> getColumns()
Gets the columns contained in the results.- Returns:
- the value of the property, not null
-
getCalculationResults
public Results getCalculationResults()
Gets the calculation results.- Returns:
- the value of the property, not null
-
getCalculationFunctions
public CalculationFunctions getCalculationFunctions()
Gets the calculation functions.- Returns:
- the value of the property, not null
-
getReferenceData
public ReferenceData getReferenceData()
Gets the reference data. This is used to resolve trade or security information if necessary.- Returns:
- the value of the property, not null
-
-