Package cdm.event.common
Interface QuantityChangeInstruction
- All Superinterfaces:
com.rosetta.model.lib.RosettaModelObject
- All Known Subinterfaces:
QuantityChangeInstruction.QuantityChangeInstructionBuilder
- All Known Implementing Classes:
QuantityChangeInstruction.QuantityChangeInstructionBuilderImpl,QuantityChangeInstruction.QuantityChangeInstructionImpl
@RosettaDataType(value="QuantityChangeInstruction",
builder=QuantityChangeInstructionBuilderImpl.class,
version="5.30.0")
@RuneDataType(value="QuantityChangeInstruction",
model="cdm",
builder=QuantityChangeInstructionBuilderImpl.class,
version="5.30.0")
public interface QuantityChangeInstruction
extends com.rosetta.model.lib.RosettaModelObject
Instructions required to create a Quantity Change Primitive Event, which can be either an increase, a decrease or a replacement. An increase adds a new trade lot to the original trade, whereas a decrease subtracts from an existing trade lot's quantity. A replacement updates the quantity of an existing trade lot to the new value.
- Version:
- 5.30.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder Interfacestatic classBuilder Implementation of QuantityChangeInstructionstatic classImmutable Implementation of QuantityChangeInstruction -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build Methodsbuilder()List<? extends PriceQuantity> Quantity by which the trade is being increased, decreased or replaced, and the price at which such quantity change is agreed.Direction of the quantity change specified as either an increase, decrease or replacement.List<? extends Identifier> Identifier for the new lot (in case of increase) or for the existing lot to be changed(in case of decrease or replacement).default Class<? extends QuantityChangeInstruction> getType()default com.rosetta.model.lib.meta.RosettaMetaData<? extends QuantityChangeInstruction> metaData()Utility Methodsdefault voidprocess(com.rosetta.model.lib.path.RosettaPath path, com.rosetta.model.lib.process.Processor processor) Methods inherited from interface com.rosetta.model.lib.RosettaModelObject
processRosetta, processRosetta
-
Field Details
-
metaData
-
-
Method Details
-
getChange
List<? extends PriceQuantity> getChange()Quantity by which the trade is being increased, decreased or replaced, and the price at which such quantity change is agreed. The quantity change should always be specified as a positive number, with the direction (increase/decrease/replacement) being specified by the direction enumeration. A fee can also be associated to the quantity change by specifying a Price component of type CashPrice, including the corresponding settlement date and direction. -
getDirection
QuantityChangeDirectionEnum getDirection()Direction of the quantity change specified as either an increase, decrease or replacement. -
getLotIdentifier
List<? extends Identifier> getLotIdentifier()Identifier for the new lot (in case of increase) or for the existing lot to be changed(in case of decrease or replacement). This optional attribute is mandatory in case of a decrease or replacement if the initial trade state contains multiple trade lots. -
build
QuantityChangeInstruction build()Build Methods- Specified by:
buildin interfacecom.rosetta.model.lib.RosettaModelObject
-
toBuilder
- Specified by:
toBuilderin interfacecom.rosetta.model.lib.RosettaModelObject
-
builder
-
metaData
Utility Methods- Specified by:
metaDatain interfacecom.rosetta.model.lib.RosettaModelObject
-
getType
- Specified by:
getTypein interfacecom.rosetta.model.lib.RosettaModelObject
-
process
default void process(com.rosetta.model.lib.path.RosettaPath path, com.rosetta.model.lib.process.Processor processor) - Specified by:
processin interfacecom.rosetta.model.lib.RosettaModelObject
-