Package com.opengamma.strata.calc.runner
Class CalculationResults
- java.lang.Object
-
- com.opengamma.strata.calc.runner.CalculationResults
-
- All Implemented Interfaces:
Serializable,org.joda.beans.Bean,org.joda.beans.ImmutableBean
public final class CalculationResults extends Object implements org.joda.beans.ImmutableBean, Serializable
A set of related calculation results for a single calculation target.This contains a list of
CalculationResult, produced by a singleCalculationTask. Each individual result relates to a single cell in the output grid.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)ImmutableList<CalculationResult>getCells()Gets the calculated cells.CalculationTargetgetTarget()Gets the target of the calculation, often a trade.inthashCode()static org.joda.beans.TypedMetaBean<CalculationResults>meta()The meta-bean forCalculationResults.org.joda.beans.TypedMetaBean<CalculationResults>metaBean()static CalculationResultsof(CalculationTarget target, List<CalculationResult> results)Obtains a calculation result from individual calculations.StringtoString()
-
-
-
Method Detail
-
of
public static CalculationResults of(CalculationTarget target, List<CalculationResult> results)
Obtains a calculation result from individual calculations.- Parameters:
target- the calculation target, such as a traderesults- the results of the calculation- Returns:
- the calculation result
-
meta
public static org.joda.beans.TypedMetaBean<CalculationResults> meta()
The meta-bean forCalculationResults.- Returns:
- the meta-bean, not null
-
metaBean
public org.joda.beans.TypedMetaBean<CalculationResults> metaBean()
- Specified by:
metaBeanin interfaceorg.joda.beans.Bean
-
getTarget
public CalculationTarget getTarget()
Gets the target of the calculation, often a trade.- Returns:
- the value of the property, not null
-
getCells
public ImmutableList<CalculationResult> getCells()
Gets the calculated cells. Each entry contains a calculation result for a single cell.- Returns:
- the value of the property, not null
-
-