Package cdm.event.common.functions
Class Create_QuantityChange
java.lang.Object
cdm.event.common.functions.Create_QuantityChange
- All Implemented Interfaces:
com.rosetta.model.lib.functions.RosettaFunction
- Direct Known Subclasses:
Create_QuantityChange.Create_QuantityChangeDefault
public abstract class Create_QuantityChange
extends Object
implements com.rosetta.model.lib.functions.RosettaFunction
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AddTradeLotprotected com.rosetta.model.lib.functions.ConditionValidatorprotected FilterTradeLotprotected com.rosetta.model.lib.functions.ModelObjectValidatorprotected ReplaceTradeLotprotected UpdateAmountForEachMatchingQuantity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract TradeState.TradeStateBuilderdoEvaluate(QuantityChangeInstruction instruction, TradeState tradeState) evaluate(QuantityChangeInstruction instruction, TradeState tradeState) protected abstract com.rosetta.model.lib.mapper.MapperC<? extends PriceQuantity> newPriceQuantity(QuantityChangeInstruction instruction, TradeState tradeState) protected abstract com.rosetta.model.lib.mapper.MapperC<? extends TradeLot> newTradeLots(QuantityChangeInstruction instruction, TradeState tradeState) protected abstract com.rosetta.model.lib.mapper.MapperS<? extends TradableProduct> tradableProduct(QuantityChangeInstruction instruction, TradeState tradeState) protected abstract com.rosetta.model.lib.mapper.MapperC<? extends TradeLot> tradeLot(QuantityChangeInstruction instruction, TradeState tradeState) protected abstract com.rosetta.model.lib.mapper.MapperS<Boolean> tradeLotExists(QuantityChangeInstruction instruction, TradeState tradeState) 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 -
addTradeLot
-
filterTradeLot
-
replaceTradeLot
-
updateAmountForEachMatchingQuantity
-
-
Constructor Details
-
Create_QuantityChange
public Create_QuantityChange()
-
-
Method Details
-
evaluate
- Parameters:
instruction-tradeState-- Returns:
- quantityChange
-
doEvaluate
protected abstract TradeState.TradeStateBuilder doEvaluate(QuantityChangeInstruction instruction, TradeState tradeState) -
tradableProduct
protected abstract com.rosetta.model.lib.mapper.MapperS<? extends TradableProduct> tradableProduct(QuantityChangeInstruction instruction, TradeState tradeState) -
tradeLotExists
protected abstract com.rosetta.model.lib.mapper.MapperS<Boolean> tradeLotExists(QuantityChangeInstruction instruction, TradeState tradeState) -
tradeLot
protected abstract com.rosetta.model.lib.mapper.MapperC<? extends TradeLot> tradeLot(QuantityChangeInstruction instruction, TradeState tradeState) -
newPriceQuantity
protected abstract com.rosetta.model.lib.mapper.MapperC<? extends PriceQuantity> newPriceQuantity(QuantityChangeInstruction instruction, TradeState tradeState) -
newTradeLots
protected abstract com.rosetta.model.lib.mapper.MapperC<? extends TradeLot> newTradeLots(QuantityChangeInstruction instruction, TradeState tradeState)
-