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 boolean
equals(Object obj)
ImmutableList<CalculationResult>
getCells()
Gets the calculated cells.CalculationTarget
getTarget()
Gets the target of the calculation, often a trade.int
hashCode()
static org.joda.beans.TypedMetaBean<CalculationResults>
meta()
The meta-bean forCalculationResults
.org.joda.beans.TypedMetaBean<CalculationResults>
metaBean()
static CalculationResults
of(CalculationTarget target, List<CalculationResult> results)
Obtains a calculation result from individual calculations.String
toString()
-
-
-
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:
metaBean
in 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
-
-