Class ReportCalculationResults

  • All Implemented Interfaces:
    org.joda.beans.Bean, org.joda.beans.ImmutableBean

    public final class ReportCalculationResults
    extends java.lang.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​(java.time.LocalDate valuationDate,
                                                  java.util.List<? extends CalculationTarget> targets,
                                                  java.util.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​(java.time.LocalDate valuationDate,
                                                  java.util.List<? extends CalculationTarget> targets,
                                                  java.util.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 java.time.LocalDate getValuationDate()
        Gets the valuation date.
        Returns:
        the value of the property, not null
      • getTargets

        public java.util.List<CalculationTarget> getTargets()
        Gets the targets on which the results are calculated.
        Returns:
        the value of the property, not null
      • getColumns

        public java.util.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
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object