Class 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.
    • 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 calculations
        targets - the targets for which the results were calculated
        columns - the columns in the results
        calculationResults - 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 calculations
        targets - the targets for which the results were calculated
        columns - the columns in the results
        calculationResults - the results of the calculations
        calculationFunctions - the calculation functions that were used
        refData - the reference data used in the calculation
        Returns:
        the results
      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object