Package cdm.event.common.functions
Class Create_ShapingInstruction
java.lang.Object
cdm.event.common.functions.Create_ShapingInstruction
- All Implemented Interfaces:
com.rosetta.model.lib.functions.RosettaFunction
- Direct Known Subclasses:
Create_ShapingInstruction.Create_ShapingInstructionDefault
public abstract class Create_ShapingInstruction
extends Object
implements com.rosetta.model.lib.functions.RosettaFunction
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Create_ContractFormationInstructionprotected Create_PackageExecutionDetailsprotected Create_TerminationInstructionprotected com.rosetta.model.lib.functions.ModelObjectValidator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract com.rosetta.model.lib.mapper.MapperC<? extends Identifier> componentId(TradeState tradeState, List<? extends TradeLot> tradeLots, Identifier shapeIdentifier) protected abstract PrimitiveInstruction.PrimitiveInstructionBuilderdoEvaluate(TradeState tradeState, List<? extends TradeLot> tradeLots, Identifier shapeIdentifier) evaluate(TradeState tradeState, List<? extends TradeLot> tradeLots, Identifier shapeIdentifier) 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 -
create_ContractFormationInstruction
-
create_PackageExecutionDetails
-
create_TerminationInstruction
-
-
Constructor Details
-
Create_ShapingInstruction
public Create_ShapingInstruction()
-
-
Method Details
-
evaluate
public PrimitiveInstruction evaluate(TradeState tradeState, List<? extends TradeLot> tradeLots, Identifier shapeIdentifier) - Parameters:
tradeState- The original trade to be shaped.tradeLots- The shaped quantities provided as full set of trade lots with price and quantity. Each trade lot also contains an identifier to associate to the corresponding shaped trade. Shaping must result in at least 2 shaped trades.shapeIdentifier- The package ID of the shaped trades.- Returns:
- instruction
-
doEvaluate
protected abstract PrimitiveInstruction.PrimitiveInstructionBuilder doEvaluate(TradeState tradeState, List<? extends TradeLot> tradeLots, Identifier shapeIdentifier) -
componentId
protected abstract com.rosetta.model.lib.mapper.MapperC<? extends Identifier> componentId(TradeState tradeState, List<? extends TradeLot> tradeLots, Identifier shapeIdentifier)
-