Package org.isda.cdm.functions
Class Allocate
- java.lang.Object
-
- org.isda.cdm.functions.Allocate
-
- All Implemented Interfaces:
com.rosetta.model.lib.functions.RosettaFunction
- Direct Known Subclasses:
AllocateImpl
public class Allocate extends java.lang.Object implements com.rosetta.model.lib.functions.RosettaFunction
-
-
Field Summary
Fields Modifier and Type Field Description protected NewAllocationPrimitive
newAllocationPrimitive
protected com.rosetta.model.lib.validation.ModelObjectValidator
objectValidator
-
Constructor Summary
Constructors Constructor Description Allocate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Event.EventBuilder
doEvaluate(Execution execution, AllocationInstructions allocationInstructions, Event previousEvent)
Event
evaluate(Execution execution, AllocationInstructions allocationInstructions, Event previousEvent)
-
-
-
Field Detail
-
objectValidator
@Inject protected com.rosetta.model.lib.validation.ModelObjectValidator objectValidator
-
newAllocationPrimitive
@Inject protected NewAllocationPrimitive newAllocationPrimitive
-
-
Method Detail
-
evaluate
public Event evaluate(Execution execution, AllocationInstructions allocationInstructions, Event previousEvent)
- Parameters:
execution
- Block trade to be allocated.allocationInstructions
- Allocation instructions to be applied.previousEvent
- Previous event for lineage purposes.- Returns:
- allocationEvent Allocation event containing both the original block trade (with the status set to Allocated) and the set of allocated trades.
-
doEvaluate
protected Event.EventBuilder doEvaluate(Execution execution, AllocationInstructions allocationInstructions, Event previousEvent)
-
-