Package cdm.event.common.functions
Class Create_OnDemandRateChangePrimitiveInstruction
java.lang.Object
cdm.event.common.functions.Create_OnDemandRateChangePrimitiveInstruction
- All Implemented Interfaces:
com.rosetta.model.lib.functions.RosettaFunction
- Direct Known Subclasses:
Create_OnDemandRateChangePrimitiveInstruction.Create_OnDemandRateChangePrimitiveInstructionDefault
public abstract class Create_OnDemandRateChangePrimitiveInstruction
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_TerminationInstructionprotected com.rosetta.model.lib.functions.ModelObjectValidator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract PrimitiveInstruction.PrimitiveInstructionBuilderdoEvaluate(TradeState tradeState, AdjustableOrRelativeDate effectiveDate, BigDecimal agreedRate) evaluate(TradeState tradeState, AdjustableOrRelativeDate effectiveDate, BigDecimal agreedRate) 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_OnDemandRateChangePriceChangeInstruction
@Inject protected Create_OnDemandRateChangePriceChangeInstruction create_OnDemandRateChangePriceChangeInstruction -
create_OnDemandRateChangeTermsChangeInstruction
@Inject protected Create_OnDemandRateChangeTermsChangeInstruction create_OnDemandRateChangeTermsChangeInstruction -
create_TerminationInstruction
-
-
Constructor Details
-
Create_OnDemandRateChangePrimitiveInstruction
public Create_OnDemandRateChangePrimitiveInstruction()
-
-
Method Details
-
evaluate
public PrimitiveInstruction evaluate(TradeState tradeState, AdjustableOrRelativeDate effectiveDate, BigDecimal agreedRate) - Parameters:
tradeState- The original trade to be modified with new rate.effectiveDate- The date to close and open a new position.agreedRate- The new rate agreed between the parties.- Returns:
- instruction
-
doEvaluate
protected abstract PrimitiveInstruction.PrimitiveInstructionBuilder doEvaluate(TradeState tradeState, AdjustableOrRelativeDate effectiveDate, BigDecimal agreedRate)
-