Package cdm.event.common.functions
Class Create_OnDemandRateChangePriceChangeInstruction
java.lang.Object
cdm.event.common.functions.Create_OnDemandRateChangePriceChangeInstruction
- All Implemented Interfaces:
com.rosetta.model.lib.functions.RosettaFunction
- Direct Known Subclasses:
Create_OnDemandRateChangePriceChangeInstruction.Create_OnDemandRateChangePriceChangeInstructionDefault
public abstract class Create_OnDemandRateChangePriceChangeInstruction
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 com.rosetta.model.lib.functions.ModelObjectValidator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract com.rosetta.model.lib.mapper.MapperS<? extends FieldWithMetaPriceSchedule> currentRatePrice(List<? extends PriceQuantity> priceQuantity, BigDecimal newRate) protected abstract QuantityChangeInstruction.QuantityChangeInstructionBuilderdoEvaluate(List<? extends PriceQuantity> priceQuantity, BigDecimal newRate) evaluate(List<? extends PriceQuantity> priceQuantity, BigDecimal newRate) protected abstract com.rosetta.model.lib.mapper.MapperS<? extends Price> newPrice(List<? extends PriceQuantity> priceQuantity, BigDecimal newRate) protected abstract com.rosetta.model.lib.mapper.MapperS<? extends PriceQuantity> newPriceQuantity(List<? extends PriceQuantity> priceQuantity, BigDecimal newRate) 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
-
-
Constructor Details
-
Create_OnDemandRateChangePriceChangeInstruction
public Create_OnDemandRateChangePriceChangeInstruction()
-
-
Method Details
-
evaluate
public QuantityChangeInstruction evaluate(List<? extends PriceQuantity> priceQuantity, BigDecimal newRate) - Parameters:
priceQuantity- The original price / quantity to be modified with the new rate.newRate- The new rate value, provided as a single number.- Returns:
- quantityChangeInstruction
-
doEvaluate
protected abstract QuantityChangeInstruction.QuantityChangeInstructionBuilder doEvaluate(List<? extends PriceQuantity> priceQuantity, BigDecimal newRate) -
currentRatePrice
protected abstract com.rosetta.model.lib.mapper.MapperS<? extends FieldWithMetaPriceSchedule> currentRatePrice(List<? extends PriceQuantity> priceQuantity, BigDecimal newRate) -
newPrice
protected abstract com.rosetta.model.lib.mapper.MapperS<? extends Price> newPrice(List<? extends PriceQuantity> priceQuantity, BigDecimal newRate) -
newPriceQuantity
protected abstract com.rosetta.model.lib.mapper.MapperS<? extends PriceQuantity> newPriceQuantity(List<? extends PriceQuantity> priceQuantity, BigDecimal newRate)
-