Package cdm.event.common.functions
Class Create_RollTermChangeInstruction
java.lang.Object
cdm.event.common.functions.Create_RollTermChangeInstruction
- All Implemented Interfaces:
com.rosetta.model.lib.functions.RosettaFunction
- Direct Known Subclasses:
Create_RollTermChangeInstruction.Create_RollTermChangeInstructionDefault
public abstract class Create_RollTermChangeInstruction
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.ModelObjectValidator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract TermsChangeInstruction.TermsChangeInstructionBuilderdoEvaluate(ContractualProduct contractualProduct, AdjustableOrRelativeDate effectiveRollDate, AdjustableOrRelativeDate terminationDate) evaluate(ContractualProduct contractualProduct, AdjustableOrRelativeDate effectiveRollDate, AdjustableOrRelativeDate terminationDate) 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
-
objectValidator
@Inject protected com.rosetta.model.lib.functions.ModelObjectValidator objectValidator
-
-
Constructor Details
-
Create_RollTermChangeInstruction
public Create_RollTermChangeInstruction()
-
-
Method Details
-
evaluate
public TermsChangeInstruction evaluate(ContractualProduct contractualProduct, AdjustableOrRelativeDate effectiveRollDate, AdjustableOrRelativeDate terminationDate) - Parameters:
contractualProduct- The original contractual product to be rolled.effectiveRollDate- The date to close and open a new position.terminationDate- The new termination date.- Returns:
- termsChangeInstruction The relevant primitive instruction for the roll, which is a terms change.
-
doEvaluate
protected abstract TermsChangeInstruction.TermsChangeInstructionBuilder doEvaluate(ContractualProduct contractualProduct, AdjustableOrRelativeDate effectiveRollDate, AdjustableOrRelativeDate terminationDate)
-