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
  • Field Details

  • 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)