Package cdm.event.common.functions
Class Create_SubstitutionPrimitiveInstruction
java.lang.Object
cdm.event.common.functions.Create_SubstitutionPrimitiveInstruction
- All Implemented Interfaces:
com.rosetta.model.lib.functions.RosettaFunction
- Direct Known Subclasses:
Create_SubstitutionPrimitiveInstruction.Create_SubstitutionPrimitiveInstructionDefault
public abstract class Create_SubstitutionPrimitiveInstruction
extends Object
implements com.rosetta.model.lib.functions.RosettaFunction
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.rosetta.model.lib.functions.ConditionValidatorprotected Create_SubstitutionInstructionprotected com.rosetta.model.lib.functions.ModelObjectValidator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract PrimitiveInstruction.PrimitiveInstructionBuilderdoEvaluate(TradeState tradeState, AdjustableOrRelativeDate effectiveDate, CollateralPortfolio newCollateralPortfolio, List<? extends PriceQuantity> priceQuantity) evaluate(TradeState tradeState, AdjustableOrRelativeDate effectiveDate, CollateralPortfolio newCollateralPortfolio, List<? extends PriceQuantity> priceQuantity) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.rosetta.model.lib.functions.RosettaFunction
toBuilder, toBuilder, toBuilder
-
Field Details
-
conditionValidator
@Inject protected com.rosetta.model.lib.functions.ConditionValidator conditionValidator -
objectValidator
@Inject protected com.rosetta.model.lib.functions.ModelObjectValidator objectValidator -
create_SubstitutionInstruction
-
-
Constructor Details
-
Create_SubstitutionPrimitiveInstruction
public Create_SubstitutionPrimitiveInstruction()
-
-
Method Details
-
evaluate
public PrimitiveInstruction evaluate(TradeState tradeState, AdjustableOrRelativeDate effectiveDate, CollateralPortfolio newCollateralPortfolio, List<? extends PriceQuantity> priceQuantity) - Parameters:
tradeState- The original trade to be for substitution of collateral.effectiveDate- The date to close and open a new trade with new collateral.newCollateralPortfolio- New collateral portfolio to subtitute for the original collateral.priceQuantity- The price and quantity of the substituted product.- Returns:
- instruction
-
doEvaluate
protected abstract PrimitiveInstruction.PrimitiveInstructionBuilder doEvaluate(TradeState tradeState, AdjustableOrRelativeDate effectiveDate, CollateralPortfolio newCollateralPortfolio, List<? extends PriceQuantity> priceQuantity)
-