Class DynamicTenorsAndMaturitiesPostProcessor.EvaluationProcedure
- java.lang.Object
-
- com.activeviam.risk.core.postprocessor.impl.DynamicTenorsAndMaturitiesPostProcessor.EvaluationProcedure
-
- All Implemented Interfaces:
com.quartetfs.biz.pivot.cellset.IPointProcedure
- Enclosing class:
- DynamicTenorsAndMaturitiesPostProcessor
protected class DynamicTenorsAndMaturitiesPostProcessor.EvaluationProcedure extends Object implements com.quartetfs.biz.pivot.cellset.IPointProcedure
Procedure to execute over the evaluation retrieval result.
-
-
Field Summary
Fields Modifier and Type Field Description protected com.quartetfs.biz.pivot.ILocation
inputLocation
The input locationprotected int[]
measureIds
Measures ids in the readResult, aligned with underlyingMeasures, to not re-map the measure at each iterationprotected Object[]
measuresBuffer
Buffer for storing the underlying measures at each point without the need to re-allocate an array each timeprotected com.quartetfs.biz.pivot.cellset.IAggregatesRetrievalResult
result
The shifted location result where aggregates are to be readprotected com.quartetfs.biz.pivot.query.aggregates.IAdvancedAggregatesRetriever
retriever
Aggregate retriever
-
Constructor Summary
Constructors Constructor Description EvaluationProcedure(com.quartetfs.biz.pivot.cellset.IAggregatesRetrievalResult result, com.quartetfs.biz.pivot.query.aggregates.IAdvancedAggregatesRetriever retriever, String[] dynamicSet, MaturityPillarsDTO noBuckets, com.quartetfs.biz.pivot.ILocation inputLocation)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
execute(com.quartetfs.biz.pivot.IPointLocationReader pointReader, int rowId)
protected boolean
execute(com.quartetfs.biz.pivot.IPointLocationReader pointReader, Object[] underlyingMeasures, Set<MaturityPillarsDTO>[] bucketsList, List<Double>[] bucketsDaysList, com.quartetfs.biz.pivot.ILocation inputLocation)
Executes the procedure for one evaluation location given the corresponding shifted underlying measures.
-
-
-
Field Detail
-
result
protected final com.quartetfs.biz.pivot.cellset.IAggregatesRetrievalResult result
The shifted location result where aggregates are to be read
-
retriever
protected final com.quartetfs.biz.pivot.query.aggregates.IAdvancedAggregatesRetriever retriever
Aggregate retriever
-
measureIds
protected final int[] measureIds
Measures ids in the readResult, aligned with underlyingMeasures, to not re-map the measure at each iteration
-
measuresBuffer
protected final Object[] measuresBuffer
Buffer for storing the underlying measures at each point without the need to re-allocate an array each time
-
inputLocation
protected com.quartetfs.biz.pivot.ILocation inputLocation
The input location
-
-
Constructor Detail
-
EvaluationProcedure
public EvaluationProcedure(com.quartetfs.biz.pivot.cellset.IAggregatesRetrievalResult result, com.quartetfs.biz.pivot.query.aggregates.IAdvancedAggregatesRetriever retriever, String[] dynamicSet, MaturityPillarsDTO noBuckets, com.quartetfs.biz.pivot.ILocation inputLocation)
Constructor- Parameters:
result
- The retrieval result of the underlying measuresretriever
- The retriever on which to write the results of the evaluationdynamicSet
- dynamic setnoBuckets
- no bucketsinputLocation
- The input location
-
-
Method Detail
-
execute
public boolean execute(com.quartetfs.biz.pivot.IPointLocationReader pointReader, int rowId)
- Specified by:
execute
in interfacecom.quartetfs.biz.pivot.cellset.IPointProcedure
-
execute
protected boolean execute(com.quartetfs.biz.pivot.IPointLocationReader pointReader, Object[] underlyingMeasures, Set<MaturityPillarsDTO>[] bucketsList, List<Double>[] bucketsDaysList, com.quartetfs.biz.pivot.ILocation inputLocation)
Executes the procedure for one evaluation location given the corresponding shifted underlying measures.- Parameters:
pointReader
- The location reader on which we execute the evaluationunderlyingMeasures
- The underlying measures, at the shifted location corresponding to the unshifted pointReaderbucketsList
- A pair containing the tenor and maturities bucket listsbucketsDaysList
- A pair containing the lists of days for the tenor and maturity bucket setsinputLocation
- The location at which we're writing our results- Returns:
true
-
-