public final class ResultsListener extends AggregatingCalculationListener<Results>
Results.| Constructor and Description |
|---|
ResultsListener()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
calculationsStarted(List<CalculationTarget> targets,
List<Column> columns)
Invoked when the calculations start; guaranteed to be invoked
before
CalculationListener.resultReceived(CalculationTarget, CalculationResult) and
CalculationListener.calculationsComplete(). |
protected Results |
createAggregateResult()
Invoked to create the aggregate result when the individual calculations are complete.
|
void |
resultReceived(CalculationTarget target,
CalculationResult result)
Invoked when a calculation completes.
|
calculationsComplete, getFuture, resultpublic void calculationsStarted(List<CalculationTarget> targets, List<Column> columns)
CalculationListenerCalculationListener.resultReceived(CalculationTarget, CalculationResult) and
CalculationListener.calculationsComplete().targets - the targets for which values are being calculated; these are often tradescolumns - the columns for which values are being calculatedpublic void resultReceived(CalculationTarget target, CalculationResult result)
CalculationListener
It is guaranteed that CalculationListener.calculationsStarted(List, List) will be called before
this method and that this method will never be called after CalculationListener.calculationsComplete().
It is possible that this method will never be called. This can happen if an empty list of targets is passed to the calculation runner.
resultReceived in interface CalculationListenerresultReceived in class AggregatingCalculationListener<Results>target - the calculation target, such as a traderesult - the result of the calculationprotected Results createAggregateResult()
AggregatingCalculationListener
This is guaranteed to be invoked after all results have been passed to AggregatingCalculationListener.resultReceived(com.opengamma.strata.basics.CalculationTarget, com.opengamma.strata.calc.runner.CalculationResult).
createAggregateResult in class AggregatingCalculationListener<Results>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.